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

USD -> SDF converter: Find a better way to detect root model and light parent prims #12

Open
adlarkin opened this issue Mar 31, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@adlarkin
Copy link

Description

When converting lights attached to a USD stage to SDF, we assume that the parent of the USD light is within the first two layers of the USD stage (the light's parent is needed so we can compute the proper transform). This may not work for lights attached to models if the model is defined deeper in the USD stage.

One possible solution would be to traverse up the prim tree whenever a light prim is encountered. The traversal would stop whenever we come across a model prim or something like a ground plane/the root of the stage itself.

See gazebosim/sdformat#875 (comment) for more information.

@adlarkin adlarkin added the bug Something isn't working label Mar 31, 2022
@azeey azeey transferred this issue from gazebosim/sdformat Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant