realbasic-games
[Top] [All Lists]

My strange clipping bugs SOLVED

To: RB Games <realbasic-games at lists dot realsoftware dot com>
Subject: My strange clipping bugs SOLVED
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Sun, 28 Nov 2004 14:40:21 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
I finally figured out what was causing all those strange clipping problems in my OpenGL apps!
The depth buffer wasn't being cleared, just like everyone suspected.
I was calling glDepthMask(false) for drawing blended polygons, and then calling glClear(GL_DEPTH_BUFFER_BIT) at the beginning of the next frame didn't do anything, because the depth buffer was read-only. The solution was to put glDepthMask(true) right before the glClear call. Now everything works!

FINALLY

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/> Make PDFs from your RB app <http://www.fireyesoftware.com/code/pdfclasses/>
AIM and Yahoo: fireye7517
REALbasic 5.5.3 Mac OS X 10.3.5

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • My strange clipping bugs SOLVED, Asher Dunn <=