Re: OpenGL accumulator issue
Re: OpenGL accumulator issue
- Subject: Re: OpenGL accumulator issue
- From: Shaun Wexler <email@hidden>
- Date: Fri, 17 Sep 2004 06:33:31 -0700
On Sep 17, 2004, at 4:29 AM, Mark Woollard wrote:
I'm trying to write some OpenGL code within an NSOpenGLView derived
class. I have implemented my OpenGL drawing code and call it from
drawRect then issue [[self openGlcontext] flushBuffer] to output to
screen. My first pass at this worked fine. I'm now trying to use the
accumulator buffer to do anti-aliasing and am finding that sometimes I
get the anti-aliased output and sometimes the un refined output. I
assume the raw output is coming from the last pass of my jitter loop
and for some reason glAccum(GL_RETURN,..) isn't always putting its
output into the right place. I'm sure that I am generating an
anti-aliased image in the accumulator buffer and copying it out with
glAccum(GL_RETURN... each time drawRect is called so why is it going
wrong sometimes?
Is it predictable, or random? Try adding glFinish() prior to the
flushBuffer, to test if you're outpacing the card's pixel fill rate.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden