I got the lidar point cloud data from car . In the end, i want to import the textured mesh into Unity.
I made mesh in Meshlab.
And then, i got png, mtl, obj file.
I referred this site.
https://gist.github.com/shubhamwagh/0dc3b8173f662d39d4bf6f53d0f4d66b
And i imported these three files on asset.
But i can’t find my mesh on scene.
What’s problem in my process?
please help me... It was my first time to deal with Unity.
< My process >
import raw lidar data (.txt) in CloudCompare
that file looks like below
X,Y,Z,Scalar field,Original cloud index
4961004
328142.096001,4161352.367001,57.845001,82.000000,0.000000
328143.477001,4161352.082001,57.811001,47.000000,0.000000
328155.807999,4161352.520000,57.521000,11.000000,0.000000
328146.091000,4161350.633999,57.710999,42.000000,0.000000
....
segment and convert scala-field to rgb in CloudCompare
save as .ply(binary format)
that file looks like below
( ply
format binary_little_endian 1.0
comment Created by CloudCompare v2.11.3 (Anoia)
comment Created 2020-12-23 12:11
obj_info Generated by CloudCompare!
element vertex 15110
property double x
property double y
property double z
property uchar red
property uchar green
property uchar blue
property float scalar_Scalar_field
property float scalar_Original_cloud_index
end_header )
import .ply into Meshlab ( the courses in Meshlab )
( compute normals for point sets -> screened Poisson Surface Reconstruction
-> Select Faces with edges longer than... -> remove isolated pieces (wrt Face Num)
-> Select non Manifold Vertices & remove them -> Per Vertex texture function
-> convert pervertex UV into PerWedge UV -> Parameterization : trivial Per-triangle
-> (save .mlp & .ply) -> transfer:vertex attribute to texture(1 or 2 meshes)
-> export .obj file
( https://gist.github.com/shubhamwagh/0dc3b8173f662d39d4bf6f53d0f4d66b ) _ reference
Finally, .mlp(1), ,ply(1), .png(1), .mtl(1), .obj(1) files were created.
Total 5 files
- import obj & png & mtl into Unity
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…