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 change the color of rendered objects? #1662

Closed Frq-F closed 1 year ago

Frq-F commented 1 year ago

How to change the color of rendered objects? For example, after rendering, change its original color to white. I used this code, but did not change the color of the object. May I ask how to solve this problem?

Change specular color

materials = Materials( device=device, specular_color=[[1.0, 1.0, 1.0]] ) images = renderer(mesh, lights=lights, materials=materials, cameras=cameras)