NVlabs / nvdiffrast

Nvdiffrast - Modular Primitives for High-Performance Differentiable Rendering
Other
1.28k stars 139 forks source link

how to build uv index? #151

Closed lcc815 closed 6 months ago

lcc815 commented 6 months ago

Hi @s-laine,

I'm trying to use a texture map to optimize my mesh color. But I don't have an uv index, so I wonder how can I build one. I have tried xatlas-python, but it will duplicates vertices. Could you give any advice to build an uv index? Also, xatlas is so slow that it cannot be used for my mesh. Thanks.

s-laine commented 6 months ago

Finding a good uv parameterization is a difficult task and still an open research problem, and I don't have any particular solution to recommend. Ideally, the uv parameterization is generated together with the mesh, but if this is not possible in your use case, using an atlas generator is probably the only option.