Hi Paul,
I've found the problem.
So you confirm that the fixed function fragment stage will not do
anything special when texgen is active, i.e. that it will only do:
vec4 col = texture2D( tex, gl_TexCoord[1].st );
?
Seems this was not correct, I had to do a transformation:
vec3 texCoord = gl_TexCoord[1].xyz / gl_TexCoord[1].w;
vec4 col = texture2D( tex, texCoord.st );
I guess this is because I'm doing projective texturing and not because
of the texGen itself. I hadn't mentioned that fact. Oops... ;-)
Thanks again for your help.
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org