Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  [Q] Status Panel and 3D scene  (Read 594 times)
0 Members and 2 Guests are viewing this topic.
Offline ajmas

Jr. Member
**

Posts: 66


Miles away from here!


« on: 2007-11-09 00:30:10 »

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?
Offline turquoise3232

Sr. Member
**

Posts: 332


Java (games) rock!


« Reply #1 on: 2007-11-09 01:44:30 »

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!
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.08 seconds with 20 queries.