city-super / BungeeNeRF

[ECCV22] BungeeNeRF: Progressive Neural Radiance Field for Extreme Multi-scale Scene Rendering
https://city-super.github.io/citynerf
MIT License
565 stars 61 forks source link

Export point cloud #13

Closed HungNgoCT closed 2 years ago

HungNgoCT commented 2 years ago

Hi.

Thank you for your useful code. Is there any ways to export point cloud, such as export to *.ply file?

Regards

kam1107 commented 2 years ago

Hi, a possible way is to record all points and their weights during rendering. E.g. you can return all sampled points and weights in function render_rays using: return ret, means, weights

If you want to visualize pointed near the surface, just select the one with the highest density along the ray when saving the file.

HungNgoCT commented 2 years ago

Thank you kam1107. Will try.