Tell me about Depth in OpenGL?

satya - Mon Jul 23 2012 15:19:42 GMT-0400 (Eastern Daylight Time)

depth seem to refer to the z coordinate

or how far is a vertex from the camera.

satya - Mon Jul 23 2012 15:20:49 GMT-0400 (Eastern Daylight Time)

You can do this


// Enable depth test
glEnable(GL_DEPTH_TEST);

// Accept fragment Or Draw a pixel
// if it closer to the camera than the former one
glDepthFunc(GL_LESS);

satya - Wed Aug 15 2012 08:00:38 GMT-0400 (Eastern Daylight Time)

How to hide hidden surfaces in OpenGL?

How to hide hidden surfaces in OpenGL?

Search for: How to hide hidden surfaces in OpenGL?

satya - Wed Aug 15 2012 08:01:50 GMT-0400 (Eastern Daylight Time)

glDepthFunc

glDepthFunc

Search for: glDepthFunc

satya - Wed Aug 15 2012 08:04:25 GMT-0400 (Eastern Daylight Time)

Some information on depth from opengl programming guide

Some information on depth from opengl programming guide

satya - Mon Aug 20 2012 09:54:06 GMT-0400 (Eastern Daylight Time)

Read about winding and how winding defines front/back surfaces

Read about winding and how winding defines front/back surfaces