nerfstudio-project / nerfstudio

A collaboration friendly studio for NeRFs
https://docs.nerf.studio
Apache License 2.0
9.6k stars 1.31k forks source link

Add TSDF mesh export back to the viewer #3431

Open nepfaff opened 2 months ago

nepfaff commented 2 months ago

Is your feature request related to a problem? Please describe. I'm a big fan of the old/ no longer existing TSDF mesh export option in the viewer. In particular, being able to move the cropping box around was fantastic for optimizing the TSDF volume memory consumption. This isn't really possible without the viewer.

Describe the solution you'd like Re-introduce the bounding box visualization feature with --bounding-box-min FLOAT FLOAT FLOAT and --bounding-box-max FLOAT FLOAT FLOAT outputs.

I couldn't find the PR that removed this, any pointers/ context would be great!

brentyi commented 2 months ago

The viewer was rewritten last year; TSDF support was probably lost then. The new viewer was started in #1973 and became the default in #2515.

The legacy version of the viewer hasn't been maintained but should still be available; the command is:

ns-train nerfacto --data {data} --vis viewer_legacy
nepfaff commented 2 months ago

Thanks for pointing this out! For now, I can get the behavior back using --vis viewer_legacy and it still seems to be working

nepfaff commented 2 months ago

Just noticed that there is a Crop Viewport option that can be used instead. It isn't as intuitive but does the job as it visualizes a bounding box that can be copied over to the export command.