Hi Paul,

> Hi,Just a small one -
> Are the gl_EyePlanes automatically setup when calling
> texgen->setPlanesFromMatrix(...)?
>
> I'm trying to replicate simple Projective texturing using glsl.

I am not sure what you mean by automatically... It will be applied to OpenGL 
in draw phase.
When used with TexGenNode it will be applied globally for whole render stage 
nad used for all the scene.
If used as TextureStateAttribute it will be applied  by lazy state update 
when drawables using this attribute are drawn.

Small warning: If you intend to use EYE_LINEAR TexGen as a texture state 
attribute it won't most probably work as you expect. Its due to 
unpredictability of glModelView matrix which will be current when TexGen 
gets applied by lazy state update. Basically TexGen as texture state 
attribute will work in predictable way with modes that use vertex coords 
(not require eye coords).

Cheers,
Wojtek Lewandowski

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to