facebookresearch / pytorch3d

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

Reflective Cylinder #1732

Closed VaibhavSanjay closed 7 months ago

VaibhavSanjay commented 7 months ago

I am trying to render a cylinder with reflective properties into Pytorch3D. I would like to be able to render it with other objects in the scene, so I can see their reflections in the cylinder based on the position of the camera (Like a mirror).

Since my cylinder does not have a texture, I am not even able to render it in Pytorch3D. Adding any texture (such as a single color one) makes it so the reflective property isn't active. image

I have attached the cylinder obj and mtl I created in Blender. It appears reflective in Blender. How can I make it so that this cylinder can be rendered and is reflective in Pytorch3D? cylinder.zip

bottler commented 7 months ago

This isn't supported in PyTorch3D - e.g. there is no raytracing for meshes.