You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish to render normal maps based on this code.
For different trials, I have done changing flags from "flags=pyrender.RenderFlags.RGBA" to "pyrender.RenderFlags.VERTEX_NORMALS". Could you give recommendations on how to render normal maps with Pyrender?
I had the same problem and ended up encoding world space normals as RGB values, storing them in vertex colors, and rendering the mesh with pyrender.RenderFlags.FLAT flag. After that you can transform the world space normal maps to screen space. Alternatively you can extract normal maps directly from depth maps.
Although, it is possible that there is an easier solution already implemented in pyrender, in which case I would be interested to know it too.
I wish to render normal maps based on this code.
For different trials, I have done changing flags from "flags=pyrender.RenderFlags.RGBA" to "pyrender.RenderFlags.VERTEX_NORMALS". Could you give recommendations on how to render normal maps with Pyrender?
The text was updated successfully, but these errors were encountered: