mmatl / pyrender

Easy-to-use glTF 2.0-compliant OpenGL renderer for visualization of 3D scenes.
http://pyrender.readthedocs.io/
MIT License
1.31k stars 226 forks source link

SpecularGlossiness Pipeline #212

Open MChaus opened 2 years ago

MChaus commented 2 years ago

Currently it is impossible to render correctly specular-glossiness material.

I obtain incorrect results with current implementation. Additionally this incorrect result isn't even consistent. For example, I've tried to render two spheres. One with metallic-roughness texture and another with specular-glossiness. The renderer returns one of two types of images: Depth maps Color maps
Screenshot from 2022-02-09 15-36-07 Screenshot from 2022-02-09 15-41-58
Screenshot from 2022-02-09 15-36-07 Screenshot from 2022-02-09 15-35-57

As it is shown above, depth maps were rendered correctly, so both objects are present in the scene. Metallic-roughness sphere was rendered correctly, but specular-glossiness sphere is transparent or white. Can't figure out what is the problem.