What is the most efficient way/how does one do the following in QC, in a way more efficient than my attachment?
How do I configure a javascript or openCL patch to take in 4 structures of
floats, and output a float4 structure, with each index of the incoming
structures constituting the 4 values that are in each output float4?
So, in essence, I want to take 4 structures that represent the R/G/B/A
values of an image, run them through a javascript program or openCL kernel,
and output a structure of float4's that would be something like:
0:("R,G,B,A")
1:("R,G,B,A")
...and so on *and* have elements come back in correct array order.
I'm attaching a javascript+iterator based example of this working *and
*structure
returning in a "non-mixed up" structure order. Also, in QC is it not
possible for each element to maintain proper placement inside the vec4 and
have a key with it ( I know this has been covered somewhat, but I can't find
relevant discussion)? I didn't seem to be able to use R/G/B/A labels and
keep order in my testing, even if I declared it an array.
What would be even better is to achieve something like Image Pixel (or the
3rd party, PixelS) that automatically delivers a float4 of RGBA value for
each pixel. That would be ideal. As is, I'm trying convert the data of
either into this structure type.
--
George Toledo
[email protected]
www.georgetoledo.com
The information contained in this E-mail and any attachments may be
confidential.
If you have received this E-mail in error, please notify us immediately by
telephone or return E-mail.
You should not use or disclose the contents of this E-mail or any of the
attachments for any purpose or to any persons.
JS+Iterator Based.qtz
Description: Binary data
_______________________________________________ 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]

