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

Custom Background/Sky #54

Open
DehTop opened this issue Apr 28, 2024 · 1 comment
Open

Custom Background/Sky #54

DehTop opened this issue Apr 28, 2024 · 1 comment

Comments

@DehTop
Copy link

DehTop commented Apr 28, 2024

Hello,

first of all, thanks for the amazing tool you developed!

Is there any easy way to customize the background (color etc), or possibly even use some custom background images/textures?

Thanks in advance!

@kaufManu
Copy link
Contributor

Yes, the background color is a parameter in the configuration file. You can either edit the aitvconvig.yaml or directly set it in the code:

from aitviewer.configuration import CONFIG as C
C.update_conf({"background_color": [0.5, 0.5, 0.5, 0.5]})

Alternatively, you can just update the background color on the scene (viewer.scene.background_color) or set it via the GUI. In the GUI element called "editor" (the main thing) if you click on "Scene" some properties pop up below, one of them is the background color that you can change.

Unfortunately we don't support sky boxes at the moment that would allow for images or textures to be displayed. What would be an interesting feature for you in this regard? E.g. select from a preset of skies or being able to add your own backgrounds?

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