Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IAM-P-LP opened this issue Nov 23, 2023 · 3 comments
Open

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

IAM-P-LP opened this issue Nov 23, 2023 · 3 comments

Comments

@IAM-P-LP
Copy link

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
Copy link

JQJ001 commented Dec 9, 2023

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
Copy link

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

@PavelPanjaya
Copy link

PavelPanjaya commented Sep 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants