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  
  3D widget in HUD?  (Read 682 times)
0 Members and 1 Guest are viewing this topic.
Offline ajmas

Jr. Member
**

Posts: 66


Miles away from here!


« on: 2005-12-15 17:24:12 »

I am in the process of writing a program that provides a view of a virtual world. In front of th viewer's view is a HUD, where I wish to add a few 3D widgets, that would be updated in real time. I don't want the 3D widgets on the HUD to be affected by the perspective used to display the 3D world. Do you have any ideas on how to do ensure the perspectives are different for the world and the HUD?
Offline hvor2

Sr. Member
**

Posts: 278


Beyond mind, there is an awareness...


« Reply #1 on: 2005-12-16 03:33:13 »

The way I am doing this is to render all of my 3d world first, and then at the end of render process, do something like this:
1  
2  
3  
4  
        GL11.glPushMatrix();
        GL11.glLoadIdentity();
        drawGeometryIndependantOfTheWorld();
        GL11.glPopMatrix();

That is used for 3d geometry put in HUD. For 2d, you should consider ortho mode.

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.114 seconds with 21 queries.