I found a bug in the Inventor loader that cause images to have r values of 0, which in turn causes the image data to not be copied during an Image clone.
I'll send a patch to osg-submissions. Jim -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jim Vaughan Sent: Tuesday, June 15, 2010 8:14 AM To: [email protected] Subject: [osg-users] Crash on clone image Hi, The attached copy of osgviewer.cpp has the following lines added: osg::ref_ptr<osg::Group> group = new osg::Group; osg::Node* node = dynamic_cast<osg::Node*>(loadedModel->clone(osg::CopyOp::DEEP_COPY_ALL)); group->addChild(loadedModel); group->addChild(node); viewer.setSceneData(group); It crashes when loading the attached bug.wrl, but when I call clone with osg::CopyOp::DEEP_COPY_NODES, it does not crash. Is that a bug in the image clone code, or am I doing something wrong? Thanks in advance, Jim Vaughan. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

