[PD] Re: GEM shader usage
james tittle
tigital at mac.com
Fri Oct 21 21:31:05 CEST 2005
hi frank,
On Oct 20, 2005, at 11:29 AM, Frank Barknecht wrote:
> I tried the example for vertex_program now (after I compiled Gem-CVS)
> and there seems to be an error in the toon.vp file. Gm prints:
>
> vertex_program: program error at line 24:
> "DP3 t0.x, state.matrix.modelview[0].invtrans.row[0], vNormal;"
>
> With trial and error I managed to "fix" this by removing the first [0]
> now:
>
> DP3 t0.x, state.matrix.modelview.invtrans.row[0], vNormal;
> ...
>
> Is this correct? At least it looks cartoony now.
...weird...the shader in cvs is correct (ie. before your change):
are you loading the texture (64shade.tif or 2shade.bmp)? Also, there
is the lightDirection parameter that can be changed (defaults to
0,0,0, which doesn't give much good shading), but I'll have to check
out the given example (are you using the examples/02.advanced/
programs?)...
...lastly, what card are you running this on (and drivers)?
jamie
More information about the Pd-list
mailing list