[osg-users] PagedLOD Terrain TexCoords Changing Problem while CubeMapping shader

Robert Osfield robert.osfield at gmail.com
Fri Sep 26 01:50:57 PDT 2008

HI Umit,

Are you using object linear texgen for the caustics?  If so switch to
using eye linear texgen and use a TexGenNode to position the texgen
planes.  See examples like osgspotlight for an example of how to set
this up.  Once you've set up your TexGenNode your texture coordinates
will span tiles without ever repeating (unless you decide to do so :-)


On Fri, Sep 26, 2008 at 9:04 AM, Ümit Uzun <umituzun84 at gmail.com> wrote:
> Hi All,
> I have created a GLSL shader to create Caustics effect on PagedLOD terrain
> which was created by VPB with using CubeMap texturing on terrain. But there
> is a problem as you see from VIDEO. Problem is changing texcoord in every
> LOD. So my main effect textured place changing. At that point I want to play
> texcoord to not change only for cubemap texture operation on shader. How can
> I fix this bug ?
> Best Regards.
> Umit Uzun
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list