pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

Can I displace specular data with a uvmap in the class Materials or in the class Lights?

Open haoxurt opened this issue 2 years ago • 2 comments

When I set Materials and Lights as following strategy: materials = Materials(device=device, ambient_color=((1, 1, 1),), diffuse_color=((1, 1, 1),), specular_color=((1,1,1),), shininess=64, ) lights = PointLights(device=device, location=[[0.0, 0.0, 2.0]], ambient_color=((0.7, 0.7, 0.7),), diffuse_color=((0.3, 0.3, 0.3),), specular_color=((0.3, 0.3, 0.3),), ) I got some highlights in the final render image. Now, I want to control the appearance of highlights. Can I input a mask which defines location that highlight should appear?

haoxurt avatar Jan 14 '22 03:01 haoxurt

Can I input a mask which defines location that highlight should appear?

At this time, PyTorch3D only supports constant material parameters and does not support specifying material parameters via textures instead (as typically done in 3D renderers) to have more local / finer control over the shading of an object. Is this what you were looking for?

patricklabatut avatar Feb 09 '22 16:02 patricklabatut

Hi, is there any progress in this direction? I have a specular map that I would like to use. If no work has been done, am I right that I should change the shading functions and the texture to add this feature?

javirk avatar Aug 16 '22 10:08 javirk