[osg-users] Caustics for UnderWater Effect

Robert Osfield robert.osfield at gmail.com
Thu Sep 4 07:26:50 PDT 2008


Hi Umit,

I'd use a Texture3D to animate through the images (see osgtexture3D
for an example), or if you don't need blending ImageSequence would
work on a Texture2D (see osgimagesequence for an example).
Texture2DArray is also possible, but it's only supported on latest
hardwares/drivers.

Robert.

On Thu, Sep 4, 2008 at 2:50 PM, Ümit Uzun <umituzun84 at gmail.com> wrote:
> Hi All,
>
> I have 30 textures for caustics. I want to make a underwater effect so have
> to alpha blend texture to terrain surface which was created with
> VirtualPlanetBuilder.
>
> My question is, how should I animate these textures on the terrain?
> Should I read all texture images to the Texture2DArray and then change the
> texture images by the time with using NodeCallback?
> Is there any sample like that or which osg example would help me much?
>
> 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