Hi Christina,

It sounds like your textures have the UnrefRefImageOnApply feature set
to true.  If you want to retain the images after the first frame is
rendered you'll need to not enable this.  This feature is off by
default but If you are running the osgUtil::Optimizer one of it's
default passes does optimization of the texture settings and enables
this.

Robert.

On Wed, May 27, 2009 at 4:16 PM, Cristina Paponi
<cristina.pap...@meggitt.com> wrote:
> Hi,
>
> I have a scene graph and I'm trying to intersect with it using a 
> LineSegmentIntersector.
> In the intersection result I get a List of nodes, the last node being the 
> Geode containing the drawable that I intersected with. When I try to retrive 
> the image pointer which should contain the texture for that drawable the 
> pointer is NULL.
> Can anybody tell me why is NULL? Is it normal that is NULL? Is there any way 
> I can retrieve that image pointer?
> I even tried when loading the model to cach the image, but it did not work.
>
> Thank you!
>
> Cheers,
> Cristina
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=13055#13055
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to