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
f2b4d537
Commit
f2b4d537
authored
Jun 14, 2017
by
Kai Westerkamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
argh
parent
4785d8d3
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
3 deletions
+29
-3
Minimal_Default.umap
Content/MobileStarterContent/Maps/Minimal_Default.umap
+0
-0
Minimal_Default_BuiltData.uasset
...obileStarterContent/Maps/Minimal_Default_BuiltData.uasset
+0
-0
StaticPointCloudMat.uasset
Content/PointClouds/StaticPointCloudMat.uasset
+0
-0
ColoredTownHi2k.uasset
Content/StaticMeshPointClo/Blueprints/ColoredTownHi2k.uasset
+0
-0
ColoredTownLo2k.uasset
Content/StaticMeshPointClo/Blueprints/ColoredTownLo2k.uasset
+0
-0
ColoredTownRGB2k.uasset
...ent/StaticMeshPointClo/Blueprints/ColoredTownRGB2k.uasset
+0
-0
PointCloudCol.uasset
Content/StaticMeshPointClo/Blueprints/PointCloudCol.uasset
+0
-0
Tileset.cpp
Source/MasterTestProject/Tileset.cpp
+29
-3
No files found.
Content/MobileStarterContent/Maps/Minimal_Default.umap
View file @
f2b4d537
No preview for this file type
Content/MobileStarterContent/Maps/Minimal_Default_BuiltData.uasset
View file @
f2b4d537
No preview for this file type
Content/PointClouds/StaticPointCloudMat.uasset
View file @
f2b4d537
No preview for this file type
Content/StaticMeshPointClo/Blueprints/ColoredTownHi2k.uasset
deleted
100644 → 0
View file @
4785d8d3
File deleted
Content/StaticMeshPointClo/Blueprints/ColoredTownLo2k.uasset
deleted
100644 → 0
View file @
4785d8d3
File deleted
Content/StaticMeshPointClo/Blueprints/ColoredTownRGB2k.uasset
deleted
100644 → 0
View file @
4785d8d3
File deleted
Content/StaticMeshPointClo/Blueprints/PointCloudCol.uasset
deleted
100644 → 0
View file @
4785d8d3
File deleted
Source/MasterTestProject/Tileset.cpp
View file @
f2b4d537
...
...
@@ -364,9 +364,34 @@ void ATilesetActor::parsePointCloudTile(const TArray<uint8> data, FTile * tile)
// creat pooint texture
TArray
<
FLinearColor
>
*
Points
=
new
TArray
<
FLinearColor
>
();
uint8
*
pos
=
start
;
float
minx
,
maxx
,
miny
,
maxy
,
minz
,
maxz
;
minx
=
miny
=
minz
=
TNumericLimits
<
float
>::
Max
();
maxx
=
maxy
=
maxz
=
TNumericLimits
<
float
>::
Min
();
for
(
size_t
i
=
0
;
i
<
instances_length
;
i
+=
1
)
{
Points
->
Add
(
FLinearColor
(
*
((
float
*
)
pos
),
*
((
float
*
)(
pos
+
4
)),
*
((
float
*
)(
pos
+
8
)),
1.0
f
));
float
x
=
*
((
float
*
)
pos
);
float
y
=
*
((
float
*
)(
pos
+
4
));
float
z
=
*
((
float
*
)(
pos
+
8
));
x
=
(
x
+
1.0
)
/
4
;
y
=
(
x
+
1.0
)
/
4
;
z
=
(
x
+
1.0
)
/
4
;
minx
=
FMath
::
Min
(
x
,
minx
);
maxx
=
FMath
::
Max
(
x
,
maxx
);
miny
=
FMath
::
Min
(
y
,
miny
);
maxy
=
FMath
::
Max
(
y
,
maxy
);
minz
=
FMath
::
Min
(
z
,
minz
);
maxz
=
FMath
::
Max
(
z
,
maxz
);
Points
->
Add
(
FLinearColor
(
x
,
y
,
z
,
1.0
f
));
//UE_LOG(TILES, Warning, TEXT("%s"),*Points->Last().ToString());
pos
+=
12
;
...
...
@@ -377,7 +402,9 @@ void ATilesetActor::parsePointCloudTile(const TArray<uint8> data, FTile * tile)
}
UTexture2D
*
Texture
=
UDynamicTextureUtilities
::
CreateTransientDynamicTexture
(
TextureSize
,
TextureSize
,
PF_A32B32G32R32F
);
UDynamicTextureUtilities
::
UpdateDynamicVectorTexture
(
*
Points
,
Texture
);
UE_LOG
(
TILES
,
Warning
,
TEXT
(
"Created Position Texture Number Points %d, TextureSize: %d, Fill: %d, "
),
instances_length
,
TextureSize
,
fill
);
UE_LOG
(
TILES
,
Warning
,
TEXT
(
"Created Position Texture Number Points %d, TextureSize: %d, Fill: %d"
),
instances_length
,
TextureSize
,
fill
);
UE_LOG
(
TILES
,
Error
,
TEXT
(
"Boundig %f Box: Min [%f/%f/%f] Max [%f/%f/%f]"
),
TNumericLimits
<
float
>::
Min
(),
minx
,
miny
,
minz
,
maxx
,
maxy
,
maxz
);
PointCloud
->
setPoints
(
Texture
);
//ass texture to mAterial
...
...
@@ -402,7 +429,6 @@ void ATilesetActor::parsePointCloudTile(const TArray<uint8> data, FTile * tile)
// creat pooint texture
TArray
<
FLinearColor
>
*
ColorRGB
=
new
TArray
<
FLinearColor
>
();
uint8
*
pos
=
start
;
UE_LOG
(
TILES
,
Error
,
TEXT
(
"Start %d Color %s"
),
start
,
*
FLinearColor
((
*
pos
)
/
255.0
,
(
*
(
pos
+
1
))
/
255.0
,
(
*
(
pos
+
2
))
/
255.0
).
ToString
());
for
(
size_t
i
=
0
;
i
<
instances_length
;
i
+=
1
)
{
FLinearColor
temp
=
FLinearColor
((
*
pos
)
/
255.0
,
(
*
(
pos
+
1
))
/
255.0
,
(
*
(
pos
+
2
))
/
255.0
);
...
...
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