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 Postwithin the main display loop you can simply change the projection to orthographic. A tidy way is to input a class that has the code neccessary code to generate the 2D projection matrix and neccessary screen co-ordinates. you can then write the commands to draw the objects in this class. …
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.