Closed KzZheng closed 6 months ago
Your code is correct. The PyTorch3D renderer and other parts of PyTorch3D understand your mesh as being white. The plotly_vis functionality does not understand TexturesUV and just ignores it, because plotly itself, as far as I know, does not support a uv map on a mesh plot.
A workaround could be added to plotly_vis to make an approximation (e.g. give a constant color to each face based on the average color in the texture over that face, or even somehow to use a surface plot instead of a mesh plot) but this hasn't been implemented.
The only textures which plotly_vis currently understands are TexturesVertex (which corresponds to vertex colors in plotly) and TexturesAtlas with K
equal to 1, i.e. a constant color per face (which corresponds to face colors).
Given verts and faces, I want to create a simple mesh with a uniform texture. Here is a simple code:
However, I got the mesh with the default texture (same as set textures=None), shown below. I wonder how to create this TexturesUV correctly. Thanks!
PS, I also tried to use TexturesVertex, which can get correct mesh textures, but it seems impossible to render with other meshes (which have TexturesUV) together. It would be very much appreciated if there was a solution to this!