we don't understand.I tried to change the decleration toosg::ref_ptr<osg::Group> root = new osg::Group();osg::ref_ptr<osg::Group> root1 = new osg::Group();but it gave me a compiler error in this lineviewer.setSceneData( root );
what we can do?we don't understand the secend option?what this mean:root->ref1();where to use it?thanksNBOn 11/15/06, Gordon Tomlinson <[EMAIL PROTECTED] > wrote:_______________________________________________osg::Group* root = new osg::Group();root->ref();
osg::Group* root1 = new osg::Group();root1->ref();Or just use reference pointersBest Regards
Gordon
__________________________________________________________
Gordon Tomlinson
Email : gordon.tomlinson @ overwatch.com
YIM/AIM : Gordon3dBrit
MSN IM : Gordon3dBrit @ 3dSceneGraph.com
__________________________________________________________
Telephone (Cell): (+1) 214-477-8914
Telephone (Work): (+1) 703-437-7651
"Self defence is not a function of learning tricks
but is a function of how quickly and intensely one
can arouse one's instinct for survival"
- Master Tambo Tetsura-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of benny porat
Sent: Wednesday, November 15, 2006 10:55 AM
To: [email protected]
Subject: [osg-users] loading old scene/* we have two scenes*/osg::Group* root = new osg::Group();
osg::Group* root1 = new osg::Group();.
.
.viewer.setSceneData( root );
viewer.setSceneData( root1 );
viewer.setSceneData( root );//the pogram dont past this linecout<<"1"<<endl;
----what can we do to solve this problem and able to load the old scene "root" ?thanksNB
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
