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

Unable to get color on running the bottle example code #270

Open IAM-P-LP opened 12 months ago

IAM-P-LP commented 12 months ago

Hi, I was trying to recreate the example script for rendering.I am not getting color in the rendered image.Can you please give some insights on how to solve this? image

https://pyrender.readthedocs.io/en/latest/examples/quickstart.html#minimal-example-for-offscreen-rendering

JQJ001 commented 11 months ago

Did you add the light to the scene?

light = pyrender.SpotLight(color=np.ones(3), intensity=3.0, innerConeAngle=np.pi/16.0, outerConeAngle=np.pi/6.0)
scene.add(light, pose=camera_pose)

Or you can try increasing the intensity of the light.

Jiangshuyi0V0 commented 3 months ago

same issue here. Can't work even with higher light intensity

PavelPanjaya commented 1 month ago

Same issue here. Turns out fuze.obj.mtl, fuze_uv.jpg were missing.

Make sure fuze.obj, fuze.obj.mtl, fuze_uv.jpg all exist and placed in the same directory.