[osg-users] [VPB] Multiple textures

Robert Osfield robert.osfield at gmail.com
Tue Mar 25 07:29:34 PDT 2008


Hi Rahul,

VPB/osgdem supports multiple texture layers via the --layer <num>
entry, just prefix this in front of the texture specification for each
layer.  The layers go from 0 upwards.  The scene is decorated with an
osgFX::MuiltiTextureControl node.  The osgmultitexturecontrol example
in SVN/2.3.6 can be used to view them.

Robert.

On Tue, Mar 25, 2008 at 1:18 PM, Rahul Srivastava <rahul at darshan3d.com> wrote:
> Hi Robert,
>
>  In osgdem, are multiple textures "combined" into a single temporary
>  texture and then written to the output file or each texture is generated
>  as a "temporary" texture and all these temporary textures are written,
>  as separate textures, in the geode definition?
>
>  I have tried using multiple textures for the same "position" or
>  "geometry" and it works.
>
>  The reason I ask this is because I want to have various layers of
>  textures generated using osgdem and I would like to turn some layer on
>  and off based on, say a key input.
>
>  If the above is not possible, is there a workaround for the same.
>
>  Regards,
>
>  --
>  Rahul Srivastava,
>  Member of Technical Staff,
>  Visualization Experts Limited.
>  www.vizexperts.com
>
>  _______________________________________________
>  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