pytorch3d
pytorch3d copied to clipboard
Can I displace specular data with a uvmap in the class Materials or in the class Lights?
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?
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?
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?