limacv / GaussianSplattingViewer

Tiny Gaussian Splatting Viewer
MIT License
296 stars 29 forks source link

Help! Export Mesh from Depth #12

Closed lif314 closed 6 months ago

lif314 commented 6 months ago

color_3 I've found that my model's depth map is quite good, and I want to export it as a mesh. However, I'm not familiar with GLSL at all. Is it possible to do this?

lif314 commented 6 months ago

I have implemented Mesh extraction based on DreamGaussian, but the effect is not good. Is there any method to directly extract mesh from depth because the depth map is very good? image

image

limacv commented 6 months ago

Although this is not a task for a viewer, I suggest you could render the depth map using the official CUDA rasterize (replacing RGB with depth value), and then use some 3D processing library to convert depth map to a 3D point cloud or 3D mesh (e.g. open3d). Please don't use the depth map directly saved from viewer because that will only give you 8-bit precision depth map, and result in poor geometry

lif314 commented 6 months ago

Although this is not a task for a viewer, I suggest you could render the depth map using the official CUDA rasterize (replacing RGB with depth value), and then use some 3D processing library to convert depth map to a 3D point cloud or 3D mesh (e.g. open3d). Please don't use the depth map directly saved from viewer because that will only give you 8-bit precision depth map, and result in poor geometry

Thank you for your suggestion, I will give it a try! And I will close this issue.