Point File Out : Exporting geometry

What is the best way to export point clouds? I am currently recording point cloud sequences from Azure Kinect using the repacked movie file method and then reimporting them with moviefilein by unpacking them again. But what if I wanted to export sequences of ply or pts or obj files for use in other environments. I can imagine going frame by frame and accessing my unpacked pointcloud moviefiles with a topto chop and then a chopto dat, reading each pixel’s rgb values into a text file, but that seems clunky. What is the best way currently?

Best way would be an .exr sequence, 32 bits and multilayer (position, color, normal and more). Quite heavy but with a good SSD, it works

1 Like

ply and xyz files have an ascii format - the trick here would be to save your frames to a buffer, then write those out into a ply file.

Here’s an example:
save-ply-sequence.toe (6.0 KB)

This assumes that you have multiple buffers to capture position, normal, color, etc. This approach works well in terms of capturing content that you’re going to playback or review in Touch and meshLab. If you want something that opens in a game engine, or another 3D editing package then you should modify the script to change color channels to be unsigned characters uchar as 0-255 vals with full names red green blue. You can see more about the PLY spec here:

http://paulbourke.net/dataformats/ply/

1 Like

Thanks Jacques. I had tried that obj method before moving to the repacked movie method, as the performance was much better. But I guess I could go back to that for this purpose.

Thanks Mathew. Very helpful toe with the xml formatting example.

1 Like