Forums > Gen

jit.gl.pix Soft-Edge Circle Generator – Won't Compile

January 30, 2012 | 2:45 am

Trying to make a jit.gl.pix patch to give me a circle of high alpha with a soft-edge blend to zero alpha at the circle’s edge. Think I’ve worked it out, but I’m getting some compile errors with my solution which seems to me as if its fine:

– START GLSL INFO LOG: fp –
ERROR: 0:138: Incompatible types in initialization (and no implicit conversions in GLSL 1.10)
ERROR: 0:141: No matching overload for call to function ‘pow’
ERROR: 0:142: Use of undeclared identifier ‘pow_4568′
ERROR: 0:142: Use of undeclared identifier ‘sub_4560′
ERROR: 0:143: Use of undeclared identifier ‘mul_4569′
ERROR: 0:144: Use of undeclared identifier ‘scale_4518′
ERROR: 0:145: Use of undeclared identifier ‘clamp_4526′
ERROR: 0:146: Use of undeclared identifier ‘vec_4453′
ERROR: 0:147: Use of undeclared identifier ‘switch_4533′
– END GLSL INFO LOG: fp –
jit.gl.shader: GLSL program failed to compile.

Any ideas? Patch below.

– Pasted Max Patch, click to expand. –

January 30, 2012 | 5:09 am

Hi David,
The problem is a bug in jit.gl.pix that doesn’t convert some constants to a float representation like they should be. GLSL is really strict about this. Here’s a less than ideal workaround:

– Pasted Max Patch, click to expand. –

This will be fixed for 6.0.4.


Viewing 2 posts - 1 through 2 (of 2 total)