tbjerman
11-22-2001, 09:50 PM
now i want to rotate the 3d model with respect of its axis , if i want to rotate the model with respect of its x axis, it only rotate around x axis .. and so on..for y and z ..
now i have to use glRotatef right ???
here partial of my code :
glRotatef (value , 1,0,0);
glRotatef(Value , 0,1,0);
glRotatef(value ,0,0,1);
renderscene();(model)
but after i rotate the model first at x ,second at y , third at z axis and at the fourth time at x axis again ,now rotation is no longer following its own axis
(let say i want to rotate again at x axis , the model rotate with the world x axis rather its own x axis , same for the y axis ,
the y axis is now an unkown axis , only the rotation around z axis is stll working ..
how do i solve the problem ?????
now i have to use glRotatef right ???
here partial of my code :
glRotatef (value , 1,0,0);
glRotatef(Value , 0,1,0);
glRotatef(value ,0,0,1);
renderscene();(model)
but after i rotate the model first at x ,second at y , third at z axis and at the fourth time at x axis again ,now rotation is no longer following its own axis
(let say i want to rotate again at x axis , the model rotate with the world x axis rather its own x axis , same for the y axis ,
the y axis is now an unkown axis , only the rotation around z axis is stll working ..
how do i solve the problem ?????