daniilidis-group / neural_renderer

A PyTorch port of the Neural 3D Mesh Renderer
Other
1.12k stars 248 forks source link

Rendering without light? #73

Open ebartrum opened 4 years ago

ebartrum commented 4 years ago

Is there a way to render without considering light, ie just projecting the texture values onto image space? I have tried with ambient light set to 1 and directional light set to 0, it still doesnt do it - the projected textures are not the same as the texture values. I also tried removing the lighting code from the renderer and it still didn't work, and caused bugs with the renderer returning nan.

lvvvmd commented 4 years ago

in lighting.py, just remove this line: textures *= light

lvvvmd commented 4 years ago

and rebuild the module