Skip to main content
gamedev.net
🔒 Locked

menu 2d --- game 3D

Started by citronrock Sep 17, 2005 at 6:01 AM 2 replies 600+ views
Original Post
citronrock
citronrock
Hi everybody ! I'm made a menu with some texture, i used only 2d ( of course ) et i want to go in the 3d game when i clik on ' play ' ....but i've got a black screen , that's it. Do i need to change buffer.. or basically clear() the menu... i don't know ! thanks a lot game dev for ever
rip-off
rip-off
most 3d games have opengl set up for 3d rendering. when the menu is onscreen, you can use orthographic mode and translate the menu so that it is visible.

have you done this?
citronrock
citronrock
Thanks, I haven't done that, i don't i have any clue about this.....
can u explain with some source please ? maybe i need an easier explanation , an other way ....

thx :p

_gl_coder_one_
_gl_coder_one_
1.Push The current projection matrix. ( glPushMatrix() )
2.Call glOrtho( ... ) to set the projection matrix for orthographic projections.
3.Draw your menu
4.Pop the Ortho projection matrix ( glPOpMatrix() )

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.