I'm working on a simple background custom patch, intended to work
like the "Clear" patch. I have some patches layered in front of it
and that's where my problem lies. My intent is to make a starfield
patch and animate a planet rotating in front of it. I'm alarmingly
close to success. ;)
Except, even doing absolutely nothing, my patch changes how the
foreground patches render. Instead of drawing properly, they smear
instead of completely redrawing. I figure that there must be some
OpenGL setup & restore I need to do, but I'm at a loss to know
precisely what I should be saving and restoring.
Of course, to complicate things, it appears to work in Quartz
Composer and only smears in my sample application's QCView window
(it's basically the QC application Xcode project template with a
different animation file that uses my custom patch).
The smearing (which looks like a lack of erasing) only happens when
my plug-in does not draw (or do anything else). When I draw,
basically a black background thusly:
glClearColor (0.0, 0.0, 0.0, 0.0);
glClear (GL_COLOR_BUFFER_BIT);
I get a different behavior. I have a rotating sphere in front of my
background which disappears in an orange slice manner. Dynamically
increasing the size of my sphere briefly restores it, which makes me
think there's some cascading transform occurring, wherein my
background is moving forward or something, but I really have no clue
at this time.
Any ideas or suggestions would be appreciated.
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]