Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
676 views
in Technique[技术] by (71.8m points)

unity3d - Unity2019.4: I can’t find my mesh in unity scene

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 >

  1. 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 ....

  2. segment and convert scala-field to rgb in CloudCompare

  3. 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 )

  4. 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

  1. import obj & png & mtl into Unity

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...