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

reworked transform serialization #25

Open
wants to merge 17 commits into
base: nalgebra
Choose a base branch
from
Open

reworked transform serialization #25

wants to merge 17 commits into from

Conversation

blamelessgames
Copy link

I was tooling around with your branch so I could keep ahead of the changes when it gets merged, and I found a small bug in the rotation component of Transform deserialization - for whatever reason the quaternion representation differs from the construction order, so the w element ended up in the wrong spot. I ended up writing some tests for the serialization and reworking it to be more idiomatically serde, and I figured I'd send you the PR in case you want to incorporate it.

It might be smarter to tie the SerializedTransform struct Default impl to the Transform impl, but I wasn't sure of the best way to do it.

@blamelessgames
Copy link
Author

I just realized that if format compatibility with the cgmath representation is the goal, that the serialization routine should reorder the w component to the front instead of what I did. whoops.

@dotellie dotellie force-pushed the nalgebra branch 2 times, most recently from 2a0919c to 0665452 Compare November 10, 2018 22:01
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.

5 participants