jitter tutorial 41 Shaders error

May 18, 2006 at 7:36pm

jitter tutorial 41 Shaders error

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

#26046
May 18, 2006 at 7:46pm

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:

http://www.cycling74.com/download/jitter-shaders051101.dmg

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.

#77362
May 18, 2006 at 8:17pm

thanks for the speedy reply!

but no luck – same error…

I replaced shaders and restarted max…

any other thoughts?

thanks again
jamie

#77363
May 18, 2006 at 8:34pm

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

#77364
May 18, 2006 at 9:38pm

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

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

#77365
May 19, 2006 at 12:12am

Andrew

YES

thank you – that works perfectly!

best
jamie

#77366

You must be logged in to reply to this topic.