PerceivingSystems / bedlam_render

BEDLAM (CVPR 2023) render pipeline tools
https://bedlam.is.tuebingen.mpg.de/
Other
134 stars 7 forks source link

BE_HDRIBackdrop Rotation #24

Closed maurb closed 9 months ago

maurb commented 9 months ago

I encountered a problem with the custom component BE_HDRIBackdrop. I tried rotating it in the sequence generation after adding the HDRI. When I select the scene and click on the BE_HDRIBackdrop actor, the new rotation is applied correctly in its transform-properties. However, in the preview window and when rendering the scene, the rotation isn't applied. If I manually change any value in BE_HDRIBackdrop (not just rotation), the component seems to update correctly in the preview window and when rendering.

To fix this issue, I tried applying the rotation to the SceneComponent of BE_HDRIBackdrop instead, which also didn't work.

Do you have any ideas on how to fix this problem?

Thank you!

tpsmpi commented 9 months ago

We recommend to rotate the camera and bodies in world space around Unreal world Z-axis when using the HDRI backdrop and to not use the HDRIBackdrop Actor rotation. This world space rotation approach will also give you more world space camera and body location data variation.

You can use be_modify_sequences.py with the sequenceroot option to accomplish this:

Relevant source: https://github.com/PerceivingSystems/bedlam_render/blob/2976b99e20c95661451677457e9c57e00e9fceb2/tools/sequence_generation/be_modify_sequences.py#L201

maurb commented 9 months ago

Thank you!