NVlabs / nvdiffrast

Nvdiffrast - Modular Primitives for High-Performance Differentiable Rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to build uv index?

lcc815 opened this issue · comments

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.

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.