Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


Heads Up Display in OpenGL


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
10 replies to this topic

#1 Marvin   Members   -  Reputation: 127

Like
Likes
Like

Posted 06 August 2001 - 03:04 AM

im trying to create a Heads up display in OpenGl that basically stays on the same position on the screen no matter where the camera is in the 3d scene, i managed to achive this quite well using Ortho2d, the problem is i want to render and roate 3d objects in the HUD which cannot be done using Ortho2d as is has no depth to it etc basically its 2d only. Someone must have done this? Thanks

Sponsor:

#2 opless   Members   -  Reputation: 122

Like
Likes
Like

Posted 06 August 2001 - 09:55 AM

All
Your
Base
Are
Belong
To
Us
:^)

#3 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 06 August 2001 - 11:13 AM

check the faq http://www.frii.com/~martz/oglfaq/ section 9 u want to use a 2d orthogonal projection matrix

#4 Zerosignull   Members   -  Reputation: 122

Like
Likes
Like

Posted 06 August 2001 - 11:23 AM

its not that hard to do i H.U.D ... i have one in my program called ''complex'' http://zerosignull.shortcut.to/ the best way to do it is to simply, draw ure level then disable the depth buffer then draw ure HUD that way u will always have ure hud where u want it. just make sure u draw the HUD LAST! or u will loose it behind ure level . i sujest tranlating into the sreeen by about -1 units and then draw or u can juste xperiment with deferent values, this way u dont have to change the projection matrix or ne thing and u have beatifull full 3d

~prevail by daring to fail~

#5 Marvin   Members   -  Reputation: 127

Like
Likes
Like

Posted 06 August 2001 - 09:22 PM

Source code examples please? when your talking about disableing the depth buffer i presume you not talking about in Orth2D mode, as its IMPOSIBLE to get a good 3d perspective in ortho2d.

Please show me some HUD source

#6 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 07 August 2001 - 09:03 AM

check a few examples on my site.

#7 asaari   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 August 2001 - 12:05 PM

quote:
Original post by opless
All
Your
Base
Are
Belong
To
Us
:^)


what an insightful answer! =}



#8 opless   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 August 2001 - 09:00 PM

quote:
Original post by asaari
[quote]Original post by opless
All
Your
Base
Are
Belong
To
Us
:^)


what an insightful answer! =}



WHAT YOU SAY ?!?!?!

:D



#9 Marvin   Members   -  Reputation: 127

Like
Likes
Like

Posted 07 August 2001 - 09:02 PM

hey :/ gimme my HUD exaples, Zed quite a few 404''s on your site

#10 Nairb   Members   -  Reputation: 451

Like
Likes
Like

Posted 08 August 2001 - 05:03 AM

Hi,
Use glOrtho(yadda yadda... ) instead of Ortho2D... this way, you can define a near and far clip plane.
It''ll be a bit tricky to rotate 3D objects on it, however. If you just want to rotate them around the z axis, then that''s no problem...
However, if you want to rotate them around another axis, you''ll probably have to move the HUD back in the z plane, and then try...

Granted, I''m not sure if this''ll work or if it''s what you''re looking for... but I tried. :-D

--Nairb

#11 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 08 August 2001 - 11:24 AM

hmmm tried my site (under opengl extensions)
1,3,4 worked but the 2nd(point parameters) didnt logged on and the page was where it should be. ill check it out later. anyways goto on my site (projects) opengl appwizard




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