How do I do 2D opengl? I need to be able to put stuff up on the screen so that it is not rendered in three dimensions, and I need the 3d stuff to still be 3d behind it.
Labdabeta 182 Posting Pro in Training Featured Poster
Recommended Answers
Jump to PostTake a glance at this article from the OpenGL wiki about drawing 2D controls over a 3D scene: http://www.opengl.org/wiki/Viewing_and_Transformations#How_do_I_draw_2D_controls_over_my_3D_rendering.3F
Jump to PostActually, you should just render it as though it's 3D, just keep the z plane constant.
In OpenGL, there really is no difference between 2D and 3D, all the mathematics are the same :)
If you're attempting to render the UI, there are two ways, one is to …
All 8 Replies
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Labdabeta 182 Posting Pro in Training Featured Poster
eskimo456 0 Junior Poster in Training
Labdabeta 182 Posting Pro in Training Featured Poster
Ketsuekiame 860 Master Poster Featured Poster
eskimo456 0 Junior Poster in Training
Ketsuekiame 860 Master Poster Featured Poster
Labdabeta 182 Posting Pro in Training Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.