OpenGL Distance Optimizations

Moderator
Posts: 3,577
Joined: 2003.06
Post: #16
Well, but did you figure out how to set your depth testing precision in SDL?

When you're setting up SDL, try:

Code:
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
Quote this message in a reply
Member
Posts: 40
Joined: 2008.10
Post: #17
That seems to work. I don't really notice a difference in the rendering though. What exactly is the change in depth buffer precision supposed to do?
Quote this message in a reply
Sage
Posts: 1,232
Joined: 2002.10
Post: #18
Learn about depth buffer precision.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Signed Distance Fields for Alpha Tested Magnification of Vector Textures maximile 2 5,934 Mar 29, 2010 10:59 AM
Last Post: Skorche
  Point distance attenuation with OGL-extension - how? mcMike 6 5,745 May 21, 2008 10:58 PM
Last Post: mcMike