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

Can't see a way to set the dome light position randomly #169

Open
ArghyaChatterjee opened this issue Oct 27, 2023 · 2 comments
Open

Can't see a way to set the dome light position randomly #169

ArghyaChatterjee opened this issue Oct 27, 2023 · 2 comments

Comments

@ArghyaChatterjee
Copy link

Hello,

I am trying to follow your NVISII API to set different things inside the DOPE (Deep Object Pose Estimation) training pipeline. Here is the pipeline script. Now I want to set the dome light position randomly but when I try to do that in this way:

 # Enable the dome light with the selected position
    light_position = random.choice(dome_light_positions)
    visii.enable_dome_light()
    visii.set_dome_light_position(light_position)

    # Randomly change the position of the dome light for each sample
    light_position = visii.vec3(
         random.uniform(0, 2),
         random.uniform(0, 2),
         random.uniform(0, 2)
     )

    visii.set_dome_light_position(light_position)

The python compiler tells me that there is no api like set_dome_light_position. Now how can I set the light position randomly ??

@TontonTremblay
Copy link
Collaborator

You can only rotate the dome light, you cannot move it sadly.

@natevm
Copy link
Collaborator

natevm commented Oct 29, 2023

Yeah, dome lights have no position, since they’re meant to model the ambient light from the sky, which only rotates but does not translate.

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

3 participants