facebookresearch / pytorch3d

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

Is it possible to render objects with shininess maps (map_Ns in .mtl/.obj format)? #1555

Closed David-Yan1 closed 8 months ago

David-Yan1 commented 1 year ago

I am importing textured meshes in the .obj/.mtl format with multiple diffuse color maps and shininess maps. Getting multiple textures onto different meshes was achievable by using the TexturesAtlas class, but it seems that there isn't a way of applying a shininess map to each mesh so that different parts of the mesh might have varying strengths of shininess. pytorch3d.renderer.materials allows for some control over shininess, but the renderer only accepts one material per batch element, so all meshes in the render would have the same shininess and the shininess would also be uniform across the mesh. Is there a way to render multiple meshes with different shininess maps?

bottler commented 8 months ago

PyTorch3D doesn't support shininess maps at all, I'm afraid.