Hi David, It'd be useful if you to say what platform you are using/how you built the OSG + dependencies, and clarify the problem with loading files.
As the texture no longer having the image, is this after loading? After rendering? Do you have Texture::setUnrefImageAfterApply(bool) enabled? Robert. On Wed, Jun 4, 2008 at 11:40 AM, David _ <[EMAIL PROTECTED]> wrote: > Hi > > i´m trying to pass our project to the new 2.4 from the 2.2 version. > > Right now i´ve found 2 problems > > 1) With osg 2.2 and pageLOD objets, we were getting the images out from the > textures with something like this > > osg::StateSet *ss = data->GetStateSet(); > osg::Texture2D *texture = (osg::Texture2D *) (ss->getTextureAttribute > (0, osg::StateAttribute::TEXTURE)); > osg::Image *image = texture->getImage(); > > now with 2.4, although we have a valid texture, the textures->getImage() > returns NULL if we´re not in the Top node. > we need to know the image filename for doing some stuff, so we need to > get access to the image > > 2) We cannot read PNG images anymore. > > > any ideas???? > > thanks > > > ________________________________ > Sigue de cerca las últimas tendencias y lo que más rompe MSN Vídeo > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

