Re: [osg-users] GLSL Setting up gl_EyePlane

2008-04-24 Thread Sebastian Messerschmidt
Hi Paul, depending on what you are trying to achieve, you've got to update the planes every frame in the way you mentioned. If your matrix is somehow connected to the View or Modeling matrices, you need to update them. You can use a updateCallback or look into the samples for TexGenNode IIRC.

Re: [osg-users] GLSL Setting up gl_EyePlane

2008-04-24 Thread Wojciech Lewandowski
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

[osg-users] GLSL Setting up gl_EyePlane

2008-04-23 Thread Paul Pocock
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. Regards IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the