facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.81k stars 1.32k forks source link

How to transfer vertex colors (features) to texture map (UV Space) using pytorch3d? #1647

Closed zhongjinluo closed 1 year ago

zhongjinluo commented 1 year ago

Suppose I know the following information:

vertices, faces and uv and uv_faces and vertex colors (features)

How can I render/interpolate vertex colors (features) to a texture map? Such as,

1

bottler commented 1 year ago

With careful pytorch indexing, the vertex uvs, face uvs and vertex colors determine a 2D point cloud which you can find. You then just need to interpolate it into an image.