Archived

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

Particles and Menus

This topic is 5307 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, I''m trying to get a polygon to allways face the user, how can I do this? I know that particle systems are often done mapping a texture onto a quad, that then serves as the particle, and the quad is usually semi-transparent... This technique would also enable me to create menus, right? Also, I want those menus, to not get overdrawn by other polys in the back... I''m having a bit of dificulty with this, so any help would be greatly apreciated, thanx,

[Hugo Ferreira][Positronic Dreams]
I Am Digerati.

Share this post


Link to post
Share on other sites
What you want to to draw a menu over the world correct?

to do this you need to create a diffretn projection Ortho preferably and render them over in a 2d kind of at amosphere.

glOrtho(0,1,1,0,-1,1); // Creates new screen cords from 0-1 and 0-1

do some experimenting with this.

you then draw your menu like this

glBegin(GL_QUADS);
glVertex3f(0,0,0);
glVertex3f(1,0,0);
glVertex3f(1,1,0);
glVertex3f(0,1,0);
glEnd();

That will over the entire screen with a Quad

Share this post


Link to post
Share on other sites