12-14-2001, 01:31 PM

Hi people.

I need help.

I want to build a 2d transformation veiwer like this:

global rot; // rotation value

global tr; // transition value in x direction

glut keybord:

every time the user press some key we make a rotation or translation.

All trans' relative to coord system in the mid point of the object.

Once the object is rotated their coordinate system is rotated as well

and making a translation will move the object in the direction of it's

own X direction (that changes after doing rotation).

How can I do it using only glTranslate(),glRotate() functions

(without matrix staff) ??

I want to start with identity matrix for each call.

Thank you.

Best Wishes.

I need help.

I want to build a 2d transformation veiwer like this:

global rot; // rotation value

global tr; // transition value in x direction

glut keybord:

every time the user press some key we make a rotation or translation.

All trans' relative to coord system in the mid point of the object.

Once the object is rotated their coordinate system is rotated as well

and making a translation will move the object in the direction of it's

own X direction (that changes after doing rotation).

How can I do it using only glTranslate(),glRotate() functions

(without matrix staff) ??

I want to start with identity matrix for each call.

Thank you.

Best Wishes.