unitycoder / UnityPointCloudViewer

Point Cloud Viewer and Tools for Unity
https://assetstore.unity.com/packages/tools/utilities/point-cloud-viewer-and-tools-16019?aid=1101lGti
128 stars 15 forks source link

Converting .PLY Frames to Animated Point Cloud .bin, don't find the scene file to display the animated point cloud. #141

Closed HuangTianqi closed 8 months ago

HuangTianqi commented 1 year ago

I followed the tutorial (https://github.com/unitycoder/UnityPointCloudViewer/wiki/Converting-.PLY-Frames-to-Animated-Point-Cloud-.bin#viewing-generated-bin-file) to generate dynamic point clouds. But I can't find the scene file to display the dynamic point cloud. My plugin version is 2.7. I found that Sample-AnimatedPointCloudPlayer can display dynamic point clouds exported by Brekel. But I can't use the dynamic point cloud generated by the tutorial. I tested Brekel PointCloud 3 Trial x64, but the software seems to only support a few depth cameras. Is it possible to combine multiple frame point clouds(.ply) into one dynamic point cloud file with Brekel? Or is there any other way to support the display of dynamic point clouds generated from multiple PLY point cloud files?

unitycoder commented 1 year ago

oh i see the guide has some old info about the sample scene. (i'll update it)

Currently the animated viewer sample scene is at Assets/PointCloudTools/Demos/PointCloudViewer/Sample-AnimatedPointCloudPlayer.unity

Select @brekelplayer gameobject and assign your .bin filename there

You can have multiple viewers in scene (if toggle [x] instantiate material), but not sure if they are perfectly synced (then would have to modify the scripts to have external update sync perhaps).

other option would be to merge those separate .ply frame animates outside unity, but i dont know if such tool exists, except manually merging anim1_frame0.ply into anim2_frame0.ply together..

HuangTianqi commented 1 year ago

Thank you for your quick reply. I tried to display the dynamic point cloud using the Sample-AnimatedPointCloudPlayer scene. The example given was runnable. Then I used the tool in the tutorial to generate the dynamic point cloud (https://github.com/unitycoder/UnityPointCloudViewer/wiki/Converting-.PLY-Frames-to-Animated-Point-Cloud-.bin# viewing-generated-bin-file), the generated point cloud reports an error when displaying it in the scene. See the image below. Now I have a few frames of point clouds (.ply), how can I composite the dynamic point clouds to display in the Sample-AnimatedPointCloudPlayer scene? UnityError

unitycoder commented 1 year ago

if you can test whether [x] use array padding enabled or disabled makes any difference?

or if you disable [x] use large file streaming from the brekel viewer?

somehow the "starting large file streaming" displays, "118", it seems quite small?

HuangTianqi commented 1 year ago

Thank you. It works when i disable [x] use large file streaming.