Thanks for the info.  Two questions then... (I tried googling the answers,
but no avail).  What would be the best way to write say a gaussian blur
filter with variable parameters.

Also, kind of off topic, is there a way to edit the GLSL kernel code in a
more robust IDE and have it integrate with Quartz?  It's a bit annoying that
every time you click on another patch it resizes the window to the default.

My goal right now is to write a bilateral filter in quartz composer, and I'm
not familiar with the tools or GLSL so I'm taking baby steps (actually, my
real goal is to implement an HDR mapping algorithm).

Thanks again,
Mike Lewis
On Thu, Apr 17, 2008 at 11:04 PM, Christopher Wright <[EMAIL PROTECTED]>
wrote:

> [... code ...]
> > I get the error "Data depdendent for statements are unsupported"
> > and it highlights the close paren for the outer for loop.
> >
> > Any reason why I'd be seeing this occur often?
> >
>
>
> You cannot have a for loop with a non-static number of iterations.  It's
> non-static here because radius is an input, not a constant.  Behind the
> scenes, CoreImage unrolls the loops, and this unrolling isn't possible on
> the fly when the user is in charge of the for-loop conditional.
>
> Your loop is based on going from -size to +size, and size is calculated
> from the first line, which uses input data.  Hence the "data dependent"
> statement.
>
> --
> [ christopher wright ]
> [EMAIL PROTECTED]
> http://kineme.net/
>
>


-- 
Michael Lewis
lolrus.org
[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:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to