Suggestion: Quaternion property helper parse degrees too

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

pav
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Thu Dec 01, 2011 14:17

Suggestion: Quaternion property helper parse degrees too

Postby pav » Fri Dec 16, 2011 01:07

I admit I don't really understand what quaternions are and why "gimbal locks" are so bad. However:

0.7
<Property name="ZRotation" value="z:270" />

0.8
<Property name="Rotation" value="w:-0.7071067811865475 x:0 y:0 z:0.7071067811865476" /> (I think) :shock:

I suggest an additional format that allows degrees (i.e. <Property name="Rotation" value="x:0 y:0 z:270" /> -- "w" missing).

What do you think?

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Suggestion: Quaternion property helper parse degrees too

Postby Kulik » Fri Dec 16, 2011 10:04

I agree, I am willing to review the patch/pull request. And gimbal locks get really bad when you start animating :)

pav
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Thu Dec 01, 2011 14:17

Re: Suggestion: Quaternion property helper parse degrees too

Postby pav » Fri Dec 16, 2011 11:23

Excellent! It shouldn't be more that 2-3 lines of code but I will do it properly to become familiar with the process. :D


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 14 guests