Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
MasterTestProjekt
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kai Westerkamp
MasterTestProjekt
Commits
013f4714
Commit
013f4714
authored
Apr 05, 2017
by
Kai Westerkamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
texture
parent
ff75af82
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
Minimal_Default.umap
Content/MobileStarterContent/Maps/Minimal_Default.umap
+0
-0
Minimal_Default_BuiltData.uasset
...obileStarterContent/Maps/Minimal_Default_BuiltData.uasset
+0
-0
ProceduralEntity.cpp
Source/MasterTestProject/ue4-assimp/ProceduralEntity.cpp
+11
-0
No files found.
Content/MobileStarterContent/Maps/Minimal_Default.umap
View file @
013f4714
No preview for this file type
Content/MobileStarterContent/Maps/Minimal_Default_BuiltData.uasset
View file @
013f4714
No preview for this file type
Source/MasterTestProject/ue4-assimp/ProceduralEntity.cpp
View file @
013f4714
...
...
@@ -247,6 +247,17 @@ void AProceduralEntity::processNode(aiNode* node, const aiScene* scene, FMatrix
void
AProceduralEntity
::
loadModel
(
const
uint8
*
RawFileData
,
int32
lenght
)
{
if
(
MasterMaterialRef
==
nullptr
)
{
MasterMaterialRef
=
LoadObject
<
UMaterialInterface
>
(
NULL
,
TEXT
(
"/Game/Materials/TexturedMaterial"
),
NULL
,
LOAD_None
,
NULL
);
//= FindObject<UMaterialInterface>(GetWorld(), TEXT("TexturedMaterial"));
UE_LOG
(
GLTF
,
Error
,
TEXT
(
"Material: %s"
),
*
MasterMaterialRef
->
GetName
());
}
if
(
UniformMaterialRef
==
nullptr
)
{
UniformMaterialRef
=
LoadObject
<
UMaterialInterface
>
(
NULL
,
TEXT
(
"/Game/Materials/TexturedMaterial"
),
NULL
,
LOAD_None
,
NULL
);
//= FindObject<UMaterialInterface>(GetWorld(), TEXT("UniformMaterial"));
}
Assimp
::
Importer
importer
;
const
aiScene
*
scene
=
importer
.
ReadFileFromMemory
(
RawFileData
,
lenght
,
aiProcess_Triangulate
|
aiProcess_FlipUVs
|
aiProcess_GenNormals
,
"glb"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment