Archived

This topic is now archived and is closed to further replies.

Marvin

Intresting Problem...

Recommended Posts

Marvin    127
ok here it goes, i have an Orthographic layer in front of my 3d sceen. The problem is i want to rotate on object on the Z axis in the ortho layer. How can i do this? when i rotate the object just seems to get clipped. Thanks

Share this post


Link to post
Share on other sites
kren    122
well, you mustn''t rotate ''all at once''. not like this:

glRotate3f(180,0.0f,0.0f,1.0f);

what you have to do is set-up a variable and rotate by small steps:

GLfloat rot_angle=0.0;
glRotate3f(rot_angle,0.0f,0.0f,1.0f);
rot_angle+=0.1;

if i correctly understand your problem.

Share this post


Link to post
Share on other sites
Nairb    766
Are you sure your z-near and z-far clipping planes are large enough to accomodate the entire image? If they''re too small ( like if you were to use Ortho2D ), then the entire image will get clipped.

--Nairb

Share this post


Link to post
Share on other sites