jitter tutorial 41 Shaders error

    May 18 2006 | 7:36 pm
    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

    • May 18 2006 | 7:46 pm
      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.
    • May 18 2006 | 8:17 pm
      thanks for the speedy reply!
      but no luck - same error...
      I replaced shaders and restarted max...
      any other thoughts?
      thanks again jamie
    • May 18 2006 | 8:34 pm
      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.
    • May 18 2006 | 9:38 pm
      Try replacing mat.dirperpixel.jxs in the tutorial folder with the attached version.
      Let us know how that goes. Cheers, Andrew B.
    • May 19 2006 | 12:12 am
      thank you - that works perfectly!
      best jamie