I am wanting to display a 3D scene and then have a status panel in front of it. As an example imagine a game like Warcraft where there is a 3D area and then a 2D area for the status of health, etc. One approach I could use is to have two panels: the GLCanvas and in front of it a semi transparent Panel withe what I need, or go whole hog with JOGL in the GLCanvas. I haven’t tried either but I would certainly be interested to find a solution where everything can be done in OpenGL. The main issue I am worrying about is not having 3D objects move through the status panel. Any suggestions?
Hi,
You can have a look to the Overlay demos which should fit your needs.
You can simply draw your 3D scene, change the projection matrix to an ortho2D projection and draw your 2D stuff…
But I may miss a thing!