Advertisement

in front of me?

Started by September 21, 2001 04:08 PM
2 comments, last by yot 23 years, 5 months ago
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
A quad? After rendering everything switch to an orthographic project matrix, and render it where ever it needs to be.

[Resist Windows XP''s Invasive Production Activation Technology!]
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

glPushMatrix();
glLoadIdentity();
glTranslatef(0,0,-nearbuffer + abit )
draw quad
glPopMatrix();

This topic is closed to new replies.

Advertisement