Open peta-peta opened 10 months ago
Hi, I am observing a similar issue. This is probably caused by the fact that the default grid resolution in the exporting script is 1024: https://github.com/nerfstudio-project/nerfstudio/blob/05d305467f92cdcd2905de480f316b483d7ecb77/nerfstudio/scripts/exporter.py#L391
At the same time, the generate_mesh_with_multires_marching_cubes
function splits the space into chunks of resolution 512x512x512:
https://github.com/nerfstudio-project/nerfstudio/blob/05d305467f92cdcd2905de480f316b483d7ecb77/nerfstudio/exporter/marching_cubes.py#L181
This probably causes the gaps that you are looking at. At the cost of memory, you can instead modify the generate_mesh_with_multires_marching_cubes
, and keep in memory a grid that stores all the density values, running marching cubes as a final step on the entire resolution.
Describe the bug Extracted model shows lined gaps on the surface. See Picture below:
To Reproduce
ns-export marching-cubes --load-config outputs/Room/config.yml --output-dir Room
2.open3d draw Room/mesh.obj
Expected behavior I would have expected a watertight closed surface. No weird artifacts, when I open sdf_marching_cubes_mesh.ply of the same trained and extracted model. Btw. I noticed that the same problem appears also to the standard replica-room0 case. No closed surface found! the rendered model has gaps.