jitter tutorial 41 Shaders error

jamie jewett's icon

greetings all

I am trying to work with the jitter tutorial # 41 'shaders'

I get the following error message:

•error:--START GLSL INFO LOG: vp --
ERROR: 0.26: 'assign' : cannot convert from '4-component vector of float' to 'varying 3-component vector of float'
•error:--END GLSL INFO LOG: vp --
•error: jit.gl.shader: GLSL program failed to compile.

I am on a last generation powerbook 15" 1.67Ghz
ATI Mobility Radeon 9700 - VRAM (Total):128 MB
OSX 10.4.6
Quicktime 7.1.0
2 monitors - laptop and "Studio Display 21"

the problem persists regardless of which monitor I render on.

Anyone have any suggestions about this

many thanks
jamie

Andrew Benson's icon

Hi Jamie,
This may be due to some issues we had when Apple introduced a native Cg
compiler. Please replace your shaders with the ones at:

FWIW, we will have updated shaders with the next Jitter version that are
all fully GLSL compliant.

Let us know how you get on.
Cheers,
Andrew B.

jamie jewett's icon

thanks for the speedy reply!

but no luck - same error...

I replaced shaders and restarted max...

any other thoughts?

thanks again
jamie

Wesley Smith's icon

GLSL doesn't allow automatic promotion from one type to another. It
is very strict about this. Looks like you need to find the offending
line in the shader and and cast it to a vec3. You can do this like
the following:

vec4 myvec4;
vec3 myvec3 = vec3(myvec4);

that should solve your problem.

wes

Andrew Benson's icon

Try replacing mat.dirperpixel.jxs in the tutorial folder with the
attached version.

Let us know how that goes.
Cheers,
Andrew B.

jamie jewett's icon

Andrew

YES

thank you - that works perfectly!

best
jamie