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
a01207f1
Commit
a01207f1
authored
Apr 05, 2017
by
wester
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rotation
parent
013f4714
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
3 deletions
+11
-3
Minimal_Default.umap
Content/MobileStarterContent/Maps/Minimal_Default.umap
+0
-0
Minimal_Default_BuiltData.uasset
...obileStarterContent/Maps/Minimal_Default_BuiltData.uasset
+0
-0
Tileset.cpp
Source/MasterTestProject/Tileset.cpp
+5
-2
Tileset.h
Source/MasterTestProject/Tileset.h
+3
-0
ProceduralEntity.cpp
Source/MasterTestProject/ue4-assimp/ProceduralEntity.cpp
+0
-1
tem.txt
tem.txt
+3
-0
No files found.
Content/MobileStarterContent/Maps/Minimal_Default.umap
View file @
a01207f1
No preview for this file type
Content/MobileStarterContent/Maps/Minimal_Default_BuiltData.uasset
View file @
a01207f1
No preview for this file type
Source/MasterTestProject/Tileset.cpp
View file @
a01207f1
...
@@ -84,7 +84,8 @@ void ATilesetActor::parseBatched3DTile(const TArray<uint8> data, FTile * tile)
...
@@ -84,7 +84,8 @@ void ATilesetActor::parseBatched3DTile(const TArray<uint8> data, FTile * tile)
gltf
->
SetFolderPath
(
FName
(
*
(
"SpawnedGLTF/"
+
this
->
GetName
())));
gltf
->
SetFolderPath
(
FName
(
*
(
"SpawnedGLTF/"
+
this
->
GetName
())));
#endif
#endif
gltf
->
AttachToActor
(
this
,
FAttachmentTransformRules
::
KeepWorldTransform
);
gltf
->
AttachToActor
(
this
,
FAttachmentTransformRules
::
KeepWorldTransform
);
gltf
->
SetActorRelativeTransform
(
FTransform
(
*
tile
->
getAbsoluteTransform
()));
FMatrix
leftToRight
(
FVector
(
-
1
,
0
,
0
),
FVector
(
0
,
0
,
1
),
FVector
(
0
,
1
,
0
),
FVector
(
0
,
0
,
0
));
gltf
->
SetActorRelativeTransform
(
FTransform
(
leftToRight
*
*
tile
->
getAbsoluteTransform
()));
int
GLTFstart
=
b3dmheader
->
getGLTFStart
();
int
GLTFstart
=
b3dmheader
->
getGLTFStart
();
gltf
->
loadModel
(
&
data
.
GetData
()[
GLTFstart
],
(
data
.
Num
()
-
GLTFstart
));
gltf
->
loadModel
(
&
data
.
GetData
()[
GLTFstart
],
(
data
.
Num
()
-
GLTFstart
));
...
@@ -138,11 +139,13 @@ void ATilesetActor::parseInstanced3DTile(const TArray<uint8> data, FTile * tile)
...
@@ -138,11 +139,13 @@ void ATilesetActor::parseInstanced3DTile(const TArray<uint8> data, FTile * tile)
FVector
up
(
pos
);
FVector
up
(
pos
);
up
.
Normalize
();
up
.
Normalize
();
FVector
Z
(
0
,
0
,
1
);
FVector
Z
(
0
,
0
,
1
);
FVector
east
=
FVector
::
CrossProduct
(
up
,
Z
);
FVector
east
=
FVector
::
CrossProduct
(
Z
,
up
);
FVector
north
=
FVector
::
CrossProduct
(
east
,
up
);
FVector
north
=
FVector
::
CrossProduct
(
east
,
up
);
FMatrix
NEU
(
north
,
up
,
east
,
pos
);
FMatrix
NEU
(
north
,
up
,
east
,
pos
);
clone
->
SetActorTransform
(
FTransform
(
NEU
));
clone
->
SetActorTransform
(
FTransform
(
NEU
));
}
}
}
}
gltf
->
SetActorTransform
(
FTransform
(
positons
[
0
]));
gltf
->
SetActorTransform
(
FTransform
(
positons
[
0
]));
...
...
Source/MasterTestProject/Tileset.h
View file @
a01207f1
...
@@ -19,6 +19,9 @@ struct FAsset
...
@@ -19,6 +19,9 @@ struct FAsset
UPROPERTY
()
UPROPERTY
()
FString
tilesetVersion
;
FString
tilesetVersion
;
UPROPERTY
()
FString
gltfUpAxis
;
FAsset
()
{
FAsset
()
{
version
=
""
;
version
=
""
;
tilesetVersion
=
""
;
tilesetVersion
=
""
;
...
...
Source/MasterTestProject/ue4-assimp/ProceduralEntity.cpp
View file @
a01207f1
...
@@ -251,7 +251,6 @@ void AProceduralEntity::loadModel(const uint8* RawFileData, int32 lenght) {
...
@@ -251,7 +251,6 @@ void AProceduralEntity::loadModel(const uint8* RawFileData, int32 lenght) {
if
(
MasterMaterialRef
==
nullptr
)
{
if
(
MasterMaterialRef
==
nullptr
)
{
MasterMaterialRef
=
LoadObject
<
UMaterialInterface
>
(
NULL
,
TEXT
(
"/Game/Materials/TexturedMaterial"
),
NULL
,
LOAD_None
,
NULL
);
MasterMaterialRef
=
LoadObject
<
UMaterialInterface
>
(
NULL
,
TEXT
(
"/Game/Materials/TexturedMaterial"
),
NULL
,
LOAD_None
,
NULL
);
//= FindObject<UMaterialInterface>(GetWorld(), TEXT("TexturedMaterial"));
//= FindObject<UMaterialInterface>(GetWorld(), TEXT("TexturedMaterial"));
UE_LOG
(
GLTF
,
Error
,
TEXT
(
"Material: %s"
),
*
MasterMaterialRef
->
GetName
());
}
}
if
(
UniformMaterialRef
==
nullptr
)
{
if
(
UniformMaterialRef
==
nullptr
)
{
UniformMaterialRef
=
LoadObject
<
UMaterialInterface
>
(
NULL
,
TEXT
(
"/Game/Materials/TexturedMaterial"
),
NULL
,
LOAD_None
,
NULL
);
UniformMaterialRef
=
LoadObject
<
UMaterialInterface
>
(
NULL
,
TEXT
(
"/Game/Materials/TexturedMaterial"
),
NULL
,
LOAD_None
,
NULL
);
...
...
tem.txt
0 → 100644
View file @
a01207f1
http://folk.uio.no/inftt/Div/visualization2.pdf
https://wiki.delphigl.com/index.php/Screenspace_Error
\ No newline at end of file
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