Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Console


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Paddeh   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 October 2001 - 01:33 AM

I''ve been trying to make a working console for the past few days, i''ve gotten as far as making a texture mapped 2d object come down. However, it allways comes down in the place where translatef tells it to. is there a way to get it to position over everything else? what i mean is. instead of when i use my movement keys the console stays in the same place, i want it to stay snapped to the screen. like consoles do in all games If anyone knows how to go about this then any help would be greatly apreciated.

Sponsor:

#2 Dactylos   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 October 2001 - 02:11 AM

You could setup an orthographic projection matrix before rendering the console (and any other UI stuff, like a HUD, menu, text, whatever...). Use the glOrtho or gluOrtho2D functions for this, and do it after rendering anything that should be in the perspective view (to avoid unnecessary switching of projection matrices)

#3 Paddeh   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 October 2001 - 02:20 AM

thanks for replying sadly im a total n00b and have no idea how to use those functions. I have the "OpenGl Programming Guide" book, so hopefully it should mention them in there. thanks again

#4 Mayrel   Members   -  Reputation: 348

Like
Likes
Like

Posted 26 October 2001 - 02:26 AM

Perhaps the most obvious solution is that if translatef is telling the console where to go, don''t translate before you draw the console - use glLoadIdentity to use the standard - untranslated - modelview matrix.

You''ll have to do that even if you use glOrtho, but glOrtho is a good idea because it makes positioning things in 2D much easier.

I demand unsatisfaction!

#5 naitandu   Members   -  Reputation: 122

Like
Likes
Like

Posted 26 October 2001 - 06:20 AM

what about billboards? i think it is somhow compley to create them, but as a solution for a console they would be fine.

cya, Sebastian J

#6 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 27 October 2001 - 10:02 AM

billboards??
also, i''ve checked around, but i cant seem to find any info on how to use glortho() and its 2d counterpart. Anyone know of anywhere :/?


#7 Null and Void   Moderators   -  Reputation: 1087

Like
Likes
Like

Posted 27 October 2001 - 10:53 AM

Billboarding would be inefficient for such a simple task. Look at the NeHe tutorial where he does 2D stuff. Specifically, look at how he sets up the projection matrix.

[Resist Windows XP''s Invasive Production Activation Technology!]




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS