Oh, ok, that makes sense as a workaround. Thanks Achim! It's pretty neat to see this running correctly in a core image kernel.
On Sun, Nov 11, 2012 at 2:33 PM, Achim Breidenbach <[email protected]> wrote: > Hello George, > > I don't know the answer, how to make a global variable in CI Kernels. But > I would pass "time" through all functions. I did this with your code, and > it worked: > > > Achim Breidenbach > Boinx Software Ltd. > > PS: Its always amazes me, which wonderful images can be produced by so > less code. > > On 11.11.2012, at 03:32, George Toledo wrote: > > Here's the composition that brought this to mind - I'd been curious about > raytracing with a core image kernel for awhile. It's always such a pain > because of embargoes on the language, and unsupported statements. It does > basically work though (of course). > > This is a translation of the demoscene "Road To Ribbon". > > It works fine at time 0~1ish, until the ribbon goes offscreen. The glsl > shader is able to receive the time value for the function that draws the > ribbon, to keep it offsetting as the world offsets. > > -gt > > On Sat, Nov 10, 2012 at 8:07 PM, George Toledo <[email protected]> wrote: > >> I wish to pass a time value to a function that isn't in the main cikernel. >> >> How does one access a variable from the ci kernel - declared in the >> kernel so as to make an input port - in a function before the actual kernel? >> >> Alternately, is there any other way to pass info from an input port to a >> function (not the main kernel)? >> >> >> Thanks, >> George Toledo >> >> > <road to ribbon - Core > Image.qtz>_______________________________________________ > Do not post admin requests to the list. They will be ignored. > Quartzcomposer-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/quartzcomposer-dev/achim%40boinx.com > > This email sent to [email protected] > > > >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

