c++ opengl: how can i combine 2 different projection types for 3d graphics and 2d menus?

I would like to use Oblique projection for menus and perspective projection for the 3d-scene. is there a way to combine between this two projections ?

In general I'm asking how can I create menus in opengl for my 3d scene.

Programming using the c++ language.



No problem. Just draw your 3D scene with appropriate modelview and projection matrices loaded. Then load up 2D matrices, turn off depth test, and render your menus. Here's an example of what it might look like.

--code to load my Perspective Modelview Matrix
--code to load my Perspective Projection Matrix
--code to draw my 3D scene
--code to setup my "menu" coords, probably something like
--code to draw the menus

  • Draw your 3D scene.
  • Push the projection matrix.
  • (Maybe clear the depth buffer).
  • Set up 2D projection.
  • Draw your 2D menu.
  • Pop the projection matrix.

Need Your Help

how to create a test for selenium in C# using visual studio

c# selenium visual-studio-2013 ui-automation pageobjects

i have little experience on eclipse to do test automation using selenium in java,here i used page object pattern.

WebSphere App Server 8.5.5 Setting MQMD.Format from a JMS API

java jms websphere ibm-mq

I am trying to set the MQMD.Format from a java application running on WAS 8.5.5 using native JMS libraries and the Connection Factory and MQ resources managed by WAS: