Crashing when multiplying Quaternions

SiWi

06-01-2008 14:33:03

Whenever I multiply two quaternions my Application crashes. No exception, nothing in the log file.
I tested it with just two standard quaternions. It´s also happening in this case. Bug? Any ideas?

andy

06-01-2008 14:49:35

There is a bug in the current NXOgre module that causes this -- search the forum for a fix (basicaly you manually multiply the quats)

Cheers

Andy

SiWi

06-01-2008 15:08:16

hmmm. I don´t find anything when searching the Addons Forum. Do you mean the normal forum? What should I search for? And I have no idea how to multiply the quats manually.

SirGolan

06-01-2008 17:00:26

This is the code I use for two tuples of 4 floats:


c = (a[0] * b[0] - a[1] * b[1] - a[2] * b[2] - a[3] * b[3],
a[0] * b[1] + a[1] * b[0] + a[2] * b[3] - a[3] * b[2],
a[0] * b[2] + a[2] * b[0] + a[3] * b[1] - a[1] * b[3],
a[0] * b[3] + a[3] * b[0] + a[1] * b[2] - a[2] * b[1])

andy

06-01-2008 23:21:01

The message in question is here http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=5556
Andy