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 225 forks source link

Low quality of rendering results #235

Open argosdh opened 2 years ago

argosdh commented 2 years ago

Hi, I'm using pyrender to render some indoor images. I found out that offscreenrendered results are terrible. At first, I thought it was some setting problem, so I went through relative docs and tried different settings including light model/camera model/light intensity. But still, the rendered image looks bad.

Results rendered by pyrender(offscreenrender,orthographic camera, intensity=10.0,color=[1.0,1.0,1.0], directionallight(translated use camera pose)): WXWorkCapture_16617539964119

Results saved by cloud compare's Render to File function: capture_chair

As you can see, color of the second image is way better than the first one. Finally, I ran pyrender.Viewer() to show the whole scene and I found out it was bad from the beginning.

pyrender.Viewer result: WXWorkCapture_16617571117512

Cloud compare view result: WXWorkCapture_16617571687353

Is there any operation can be done to fine-tune the pyrender's rendering results? From where I stand, I think the color displaying or the lighting method used in pyrender is the main reason.