3D Graphics/Quaternion Data

Hi All,

So I've got a sensor (contains a gyroscope, accelerometer, and magnetometer) that outputs quaternion data. I'm looking to take that data and use it to display the rotation of my sensor in the form of some object on the screen. I've seen instances where programs use a cube, but I'm hoping to figure out a way to have a little more control over what the object I'm rendering is.

Does anyone have any advice as to how to get started? Are there any software packages that might be able to accomplish this?

Thanks,
Matt
If you were using OpenGL, then you could either generate an object of some kind (not necessarily a cube, but its simplest) or use a mesh loader to display a mesh. From there, you can generate a rotation matrix by hand using your quaternion (I'll assume you know how to do this), and use glLoadIdentity(); glMultMatrix(rot); to load your rotation matrix in, so the object on screen appears to be rotating.
Topic archived. No new replies allowed.