Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / conversions

Author
Message
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 1st Aug 2008 18:02
OK, maybe i was wrong about the double to floats things, but I don't think I am. Point is, I need a reliable way of converting Quaternions into Euler values. At the moment I am using:

and its sort of jumpy. so can anyone suggest a better conversion?
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 2nd Aug 2008 21:50
anyone?
Master Xilo
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 2nd Aug 2008 22:03
try to add ".0" to all of your values...

jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 3rd Aug 2008 11:38
to which values? all the values are internally generated, and already are long decimals, so I can't see what that would do, and i tried putting it on the integers in those equations and it made no difference
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 3rd Aug 2008 12:10
You'll cover some jumpiness risk if you do so. Also make sure that all variables are floats
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 3rd Aug 2008 13:25
I've fixed it. Wasn't anything to do with the coding as such, because of a phenomenon called gimbal lock, which occurs with euler rotations.

Login to post a reply

Server time is: 2024-11-20 17:29:12
Your offset time is: 2024-11-20 17:29:12