• Advertisement

Archived

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

in front of me?

This topic is 6001 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, my render routine starts with glRotatef(-rot[0], 1.0f, 0.0f, 0.0f); glRotatef(-rot[1], 0.0f, 1.0f, 0.0f); glRotatef(-rot[2], 0.0f, 0.0f, 1.0f); glTranslatef (-eye[0], -eye[1], -eye[2]); how to make a Quad that is always in front of me (like a weapon)? I''m really tired and cannot get it work Thx yot

Share this post


Link to post
Share on other sites
Advertisement
hi Null and void,

yeah you''re right, now it works, I tested this out but it didn''t work first I guess I made a stupid mistake, nevertheless thanx

yot

Share this post


Link to post
Share on other sites
glPushMatrix();
glLoadIdentity();
glTranslatef(0,0,-nearbuffer + abit )
draw quad
glPopMatrix();

Share this post


Link to post
Share on other sites

  • Advertisement