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
8495d8c4
Commit
8495d8c4
authored
Feb 17, 2017
by
wester
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timing
parent
f105761f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
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
+9
-1
ProceduralEntity.h
Source/MasterTestProject/ue4-assimp/ProceduralEntity.h
+1
-0
No files found.
Content/MobileStarterContent/Maps/Minimal_Default.umap
View file @
8495d8c4
No preview for this file type
Content/MobileStarterContent/Maps/Minimal_Default_BuiltData.uasset
View file @
8495d8c4
No preview for this file type
Source/MasterTestProject/ue4-assimp/ProceduralEntity.cpp
View file @
8495d8c4
...
...
@@ -176,8 +176,9 @@ void AProceduralEntity::processNode(aiNode* node, const aiScene* scene) {
UE_LOG
(
LogTemp
,
Warning
,
TEXT
(
"Processing a node"
));
// process all the node's meshes
for
(
uint32
i
=
0
;
i
<
node
->
mNumMeshes
;
i
++
)
{
UE_LOG
(
LogTemp
,
Warning
,
TEXT
(
"New mesh in the node"
));
aiMesh
*
mesh
=
scene
->
mMeshes
[
node
->
mMeshes
[
i
]];
UE_LOG
(
LogTemp
,
Warning
,
TEXT
(
"New mesh in the node %i"
),
mesh
->
mNumVertices
);
_numVertecies
+=
mesh
->
mNumVertices
;
processMesh
(
mesh
,
scene
);
++
_meshCurrentlyProcessed
;
}
...
...
@@ -207,7 +208,13 @@ void AProceduralEntity::loadModel(std::string path) {
}
double
start
=
FPlatformTime
::
Seconds
();
_numVertecies
=
0
;
_meshCurrentlyProcessed
=
0
;
processNode
(
scene
->
mRootNode
,
scene
);
double
end
=
FPlatformTime
::
Seconds
();
UE_LOG
(
LogTemp
,
Warning
,
TEXT
(
"Final Number of Vertecies in Scene: %i in %f seconds"
),
_numVertecies
,
end
-
start
);
}
\ No newline at end of file
Source/MasterTestProject/ue4-assimp/ProceduralEntity.h
View file @
8495d8c4
...
...
@@ -43,6 +43,7 @@ private:
bool
_addModifier
;
int
_lastModifiedTime
;
bool
_requiresFullRecreation
;
unsigned
int
_numVertecies
;
TArray
<
TArray
<
FVector
>>
_vertices
;
TArray
<
TArray
<
int32
>>
_indices
;
...
...
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