thygate / stable-diffusion-webui-depthmap-script

High Resolution Depth Maps for Stable Diffusion WebUI
MIT License
1.66k stars 153 forks source link

Reduce mesh density (inpainted obj and ply) #257

Open jamiejk opened 1 year ago

jamiejk commented 1 year ago

Hi there, thanks again for the great work and all the support you provide the community here. I'm working with a Blender animator who wonders if it's possible to reduce the mesh density (polygon count/number of vertices) to make it easier to handle and edit the mesh in Blender.

I've tried to adjust 'net size' but this results in a mesh of similar size as before.

What we are trying to achieve is, using the inpainted mesh as a base, creating further separation of the 3D planes to improve the parallax effects.

Grateful for any input. I have scanned the issues but couldn't find anything exactly the same -- apologies if this was addressed already.

albozes commented 11 months ago

I second this. LOVE the extension and see so much potential for the 3D mesh generation, but the .ply is super unwieldy because of its number of faces (nearly 30 million on my last project). Can this be reduced somehow?

semjon00 commented 11 months ago

Hello! Please see the advanced settings (available in WebUI -> Settings -> Extension settings). Maybe there is something useful there, I am not sure... @thygate I am not competent to handle this further, please help 😅

graemeniedermayer commented 11 months ago

I attempted to bake in normal maps to lower the number of faces but my first attempt was a failure. In theory it should be straight forward but math is hard. If the math is done right, it should be able to lower the face count while maintaining quality.

This optional face count reduction is probably a prerequisite to https://github.com/thygate/stable-diffusion-webui-depthmap-script/discussions/310 because many use-cases 3d websites, mobile AR, and VR can't handle 100mb models well.