google-research / kubric

A data generation pipeline for creating semi-realistic synthetic multi-object videos with rich annotations such as instance segmentation masks, depth maps, and optical flow.
Apache License 2.0
2.34k stars 233 forks source link

Adds an option for GLBs to apply all transforms after import #312

Closed rmbrualla closed 8 months ago

rmbrualla commented 8 months ago

This is done before the meshed objects are joined, and the non-meshes objects are discarded.

This fixes issues with objects not retaining the standard orientation (e.g. the one seen when loading them on Blender), as the orientation is stored in a parent node, that is discarded during the GLB loading.

codecov-commenter commented 8 months ago

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 65.9%. Comparing base (8fe9429) to head (ea09d13).

Files Patch % Lines
kubric/renderer/blender.py 0.0% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #312 +/- ## ======================================= - Coverage 65.9% 65.9% -0.1% ======================================= Files 43 43 Lines 3578 3581 +3 ======================================= + Hits 2360 2361 +1 - Misses 1218 1220 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.