Skip to content

Normalize quaternion values in parse_mujoco_xml#4

Open
WeihangGuo wants to merge 3 commits intodanieldugas:masterfrom
WeihangGuo:master
Open

Normalize quaternion values in parse_mujoco_xml#4
WeihangGuo wants to merge 3 commits intodanieldugas:masterfrom
WeihangGuo:master

Conversation

@WeihangGuo
Copy link

Hey! I found this repo really helpful for rendering robots. In MuJoCo, quaternions are automatically normalized if they aren’t already, but in Blender, this can cause the object to scale incorrectly.

With this PR, users should now be able to load any XML from the mujoco menagerie

Before:
before
After:
after

P.S. I noticed the bone pose still incorrect. It is irrelevant to this PR. I’ll keep investigating that.

@danieldugas
Copy link
Owner

Regarding Issue #5 : It's been a while, but IIRC this has to do with wanting to conform to some blender armature common use cases. I don't remember the exact problem I had without this line, but I would prefer these behavior changes be optional, for example with a flag.

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

Successfully merging this pull request may close these issues.

2 participants

Comments