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

Light rotation #1119

Open
Peter-zzk opened this issue Jun 25, 2024 · 5 comments
Open

Light rotation #1119

Peter-zzk opened this issue Jun 25, 2024 · 5 comments
Labels
first answer provided question Question, not yet a bug ;)

Comments

@Peter-zzk
Copy link

Describe your feature request

Hello, may I ask if there is a method in BlenderProc that supports rotating lights?

Describe a possible solution

No response

@Peter-zzk Peter-zzk added the enhancement New feature or request label Jun 25, 2024
@cornerfarmer
Copy link
Member

Yes, you can set the rotation at keyframes via light.set_rotation_euler([0, 0, 3.1415], frame=1). Between key frames, the rotation will be interpolated.

@cornerfarmer cornerfarmer added question Question, not yet a bug ;) first answer provided and removed enhancement New feature or request labels Jun 26, 2024
@Peter-zzk
Copy link
Author

Thank you for your reply. I also want to ask if BlenderProc supports outputting coco annotations and RGB images while also outputting the corresponding depth images?

@cornerfarmer
Copy link
Member

Coco annotations do not include depth images, however you can of course write depth images via the hdf5 writer or in a custom format any time.

@Peter-zzk
Copy link
Author

Thank you for your reply. Does BlenderProc support exporting images from .hdf5 files?

@cornerfarmer
Copy link
Member

Yes, you can use the --save option of blenderproc vis hdf5 or just read the hdf5 files with the h5py python package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first answer provided question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

2 participants