I've had this same problem when trying to create a composition that
could animate several images at a time. The images are coming from a
cocoa application in an array structure.
I ended up using a very ugly workaround: duplicate the patches that
render one image for every possible image I could ever have. This
gives much much better performance, as patches are executed somewhat
in parallel (I think) and not sequentially as with the iterator.
In your case, if they are only shapes with no images, you could get
acceptable performance. Please let me know if you find a better
solution.
Daniel
On Jan 25, 2007, at 8:39 AM, Joshua Ballanco wrote:
Hi,
I tried a search through the mailing list, the dev docs, and on-
line, but couldn't find a definitive yes or no, so I thought I'd
pose the question to this list:
Is it possible to create a Quartz Composition in code?
I already understand how to publish ports and control a composition
in code, but this is not exactly what I'm looking for (though, I
suppose with a creative enough composition I could potentially
achieve the same results). Basically, I'm looking to use QC as a
shortcut for drawing some simple shapes in space and moving them
around. The issue is that I'd like to determine how many shapes,
their sizes, and their positions at runtime. In other words, I'd
like to not have to code the raw GL! ;-)
So, does anyone know if this is possible? Thanks in advance for any
help and/or advice!
Cheers,
Josh
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer-
email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/gobera%
40gmail.com