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

adjust environment map bounds to infinite #278

Open
xilongzhou opened this issue Feb 17, 2023 · 1 comment
Open

adjust environment map bounds to infinite #278

xilongzhou opened this issue Feb 17, 2023 · 1 comment

Comments

@xilongzhou
Copy link

Hi,

Thanks for the great tool ! I am using movi_def_work.py to render dataset. I use dome for environment maping and we need to set the environment map as inifite instead of as default setting (40) defined here: https://storage.googleapis.com/kubric-public/assets/KuBasic/KuBasic.json.

I have tried to define my own KuBasic.json but still it automaically load this default one. I then hard-code kubric code to load my own KuBasic.json and use downloaded dome.tar.gz, but it start to load my json file but the bounds of the dome it actually uses is still from default setting.

Could you please let me know how to deal with this?

Thanks in advance!

@Qwlouse
Copy link
Collaborator

Qwlouse commented Feb 28, 2023

The dome used in the movi workers is not just for projecting the environment map, it has actual geometry, such that there is a textured floor with which the objects can interact and cast shadow upon. The bounds in KuBasic.json are the size of that mesh. If you need to scale the dome you can simply set dome.scale after adding it to the scene (but of course infinity won't work here).
Your question sounds like you want to simply set an image as an environment map in the infinite distance (and no floor). In that case you better skip the dome and simply do these two:

renderer._set_ambient_light_hdri(hdri_filepath)
renderer._set_background_hdri(hdri_filepath)

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

No branches or pull requests

2 participants