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

How to turn off sunlight in the scene graph? #26

Closed
jiaxianghao opened this issue May 31, 2023 · 2 comments
Closed

How to turn off sunlight in the scene graph? #26

jiaxianghao opened this issue May 31, 2023 · 2 comments

Comments

@jiaxianghao
Copy link

When I was debugging, it was very inconvenient for me to have half of the world in the dark. Can you help me solve it?Thank you.

@matthew-reid
Copy link
Contributor

matthew-reid commented May 31, 2023

You can set the ambient light level to artificially brighten the scene with vis::Scene::setAmbientLightColor. For example:

engineRoot->scene->setAmbientLightColor(osg::Vec3f(1, 1, 1));

If you're running the SprocketApp, this can be done from the GUI:
AmbientLight

@jiaxianghao
Copy link
Author

Thank you.

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

2 participants