• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OpenGL accumulator issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: OpenGL accumulator issue
      • From: Mark Woollard <email@hidden>
References: 
 >OpenGL accumulator issue (From: Mark Woollard <email@hidden>)

  • Prev by Date: Re: NSTableView and NSArrayController: modifying values does not change sort order
  • Next by Date: Re: [Q] Bindings, FilteringController and KVC compliance
  • Previous by thread: OpenGL accumulator issue
  • Next by thread: Re: OpenGL accumulator issue
  • Index(es):
    • Date
    • Thread