eth-ait / aitviewer

A set of tools to visualize and interact with sequences of 3D data.
MIT License
497 stars 46 forks source link

Custom Background/Sky #54

Closed DehTop closed 1 week ago

DehTop commented 3 months ago

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 commented 3 months ago

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?

kaufManu commented 1 week ago

Closing due to inactivity, feel free to open again if necessary.