Ah, thats an easy fix. I had not bothered opening the patches due to other priorities but if its just a constant issue, you can say
const typeDef xxx; typeDef yyy = xxx; clamp(yyy, 0.0, 1.0) (or whatever the values actually are) Just assign a new variable to the constants value and replace all mentions of the constant with your new one (where it causes issues). Good catch, this should be an easy fix then to get those working properly. On Mar 31, 2010, at 1:26 PM, Steven Watkins wrote: > Hello, > > Ah good that sounds more promising. I was just wondering myself why the > Jiggle is Purple. > > Im also getting somewhere with fixing the broken mesh filters. > > They can be edited by finding them in /System/Library/Compositions > > Im just looking at the two OpenCL Kernel patches in Mesh Noise and they give > errors because attenuation is set to be a constant but one line is trying to > change attenuation by clamping it. Crudely working round this by removing > that line in both patches causes the Mesh Noise to jump into life. Someone > that has a clue about programming will have to decide whether this is a bug > with OpenCL or actually a bugfix which has caused poor code in these > particular patches to fail. > > Whilst writing this email I had a very quick look at Mesh Bulge and I think > its the same story - the OpenCL kernel patch now picks up on more attempts to > assign stuff to read-only variables and so the patch doesnt run. > > Cheers > > Steve Elbows > > On 31 Mar 2010, at 17:31, vade wrote: > >> Nice catch >> >> That does indeed work. It may have been the specific filter I was testing. I >> tend to ignore the templates. >> >> So, in short, >> >> Mac Book Pro 2.33 Ghz - ATI X1600 sans OpenCL capability: >> >> Works: >> Mesh Template shows proper output and renders a sin-wave distorted >> sphere. (the default when opening a new Mesh Filter Template) >> >> Mesh Twist Filter >> Mesh Wave >> Mesh Bulge >> Mesh Jiggle (although it shows up as a Provider - ie Purple - ) and >> acts a bit odd, but it does render. >> >> Fails: >> Mesh Bend >> Mesh Noise >> >> >> Of course, the two that I tested earlier were Bend and Noise. I will update >> my Bug Report with this info. Thanks for the prod. This is interesting and >> good to know OpenCL works muuuccch better than 10.6.2 (those patches, all of >> them, used to crash QC for me). >> >> >> On Mar 31, 2010, at 12:18 PM, Steven Watkins wrote: >> >>> Oh dear, that doesnt sound good. What GPU is in your machine? Perhaps there >>> are certain hardware combinations that CPU fallback still fails on, Ive >>> been testing non-GPU OpenCL on a 2008 Mac Pro with a Radeon HD 2600. >>> >>> So when you click on Mesh Filter in the template startup window, you dont >>> even get a preview that shows a mesh being wave deformed? Thats the most >>> basic test I can think of without posting a composition. >>> >>> Cheers >>> >>> Steve >>> >>> On 31 Mar 2010, at 15:07, vade wrote: >>> >>>> Do we? I do not have that OpenCL support on my GPU, and mesh filters fail >>>> miserably. Do you have a specific example? I am unsure what if anything >>>> OpenCL should work on my hardware to be honest - I imagine OpenCL on CPU >>>> should but at this point... ha :) >>>> >>>> On Mar 30, 2010, at 6:32 PM, Steven Watkins wrote: >>>> >>>>> We get the fix that 10.6.2 first offered for the bug that prevented QC >>>>> OpenCL from falling back to CPU if no suitable GPU found, >>>> >>> >> >> _______________________________________________ >> 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/steve%40dvmachine.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: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

