Hi again, well this might not work
> _image = dynamic_cast<Image*>(source().image()->clone(CopyOp::DEEP_COPY_ALL)); > > ... > > _tex->setImage(_image.get()); // replace the texture source > > But the following does. I wonder why? Image* const img(source().image().get()); _image = new Image; _image->allocateImage(img->s(), img->t(), img->r(), img->getPixelFormat(), img->getDataType()); memcpy(_image->data(), img->data(), img->getTotalSizeInBytes()); ... _tex->setImage(_image.get()); // replace the texture source I guess I'll use that for the time being. But it is strange...
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

