LWJGL
May 21, 2012, 00:54:52 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: drawing objects  (Read 1483 times)
palody
Newbie
*
Posts: 7


« on: May 17, 2007, 12:20:18 »

i drew a table using 5 cubes that i just scaled.. i also used devil to bind textures to it.

however, when i move the camera up, i could see the table legs through the table. does anybody know how to undo that? Smiley
Logged
bobjob
Prolific Timewaster
****
Posts: 335


LWJGL: WOW SO GOOD


« Reply #1 on: May 17, 2007, 17:28:35 »

do this when setting up opengl

        GL11.glEnable(GL11.GL_DEPTH_TEST);                       // Enables Depth Testing
        GL11.glDepthFunc(GL11.GL_LEQUAL);



Logged

LWJGL Benchmark online test:
http://have2chat.net/benchmark/
http://have2chat.net/benchmark/fullpage.html (run full OpenGL webpage)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!