How to use GLUI rotation control??

  • Follow


Hey,
I'm using GLUI rotation control. It returns a 16 element array which
can be used( I think) for the rotation of primitives.
I wanted to know how to use the array for rotation.

Thanks
0
Reply Nikhil 4/8/2008 5:46:07 PM

On Apr 8, 10:46 pm, Nikhil Bokare <nbok...@gmail.com> wrote:
> Hey,
> I'm using GLUI rotation control. It returns a 16 element array which
> can be used( I think) for the rotation of primitives.
> I wanted to know how to use the array for rotation.
>
> Thanks

I found out the answer myself.
We just have to multiply the matrix (the 16 element array).
That's it... :)
0
Reply Nikhil 4/8/2008 7:07:15 PM


Nikhil Bokare wrote:

> Hey,
> I'm using GLUI rotation control. It returns a 16 element array

It returns a 4x4 matrix, namely a rotation matrix.

> which can be used( I think) for the rotation of primitives.
> I wanted to know how to use the array for rotation.

glMultMatrix.

Wolfgang Draxinger
-- 
E-Mail address works, Jabber: hexarith@jabber.org, ICQ: 134682867

0
Reply Wolfgang 4/8/2008 8:27:55 PM

2 Replies
359 Views

(page loaded in 0.031 seconds)

Similiar Articles:













7/24/2012 5:47:15 AM


Reply: