It looks like your code is fine. Does the model appear correctly if you add it directly to the root and set the camera's position to 35 units from the root's center?
Chase ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of christophe loustaunau Sent: Tuesday, April 10, 2007 8:45 AM To: [email protected] Subject: [osg-users] LOD and file *.ive Hello, I wan't to put an object read from a *.ive file into a LOD. First i have done a LOD with 3 sphere : no problems, then i put the object read from the file : nothing appears on the screens : the object and the sphere. here is a part of my code : ..... std::string file = "earth.ive"; osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFile( file ); osg::ref_ptr<osg::LOD> LOD ( new osg::LOD () ); LOD->addChild( sphere1.get(), 0.0f, 10.0f ); LOD->addChild( sphere2.get(),10.0f,20.0f); LOD->addChild( sphere3.get(),20.0f,30.0f); LOD->addChild( loadedModel.get(),30.0f,40.0f); root->addChild( LOD.get() ); ..... Maybe i can't do that because the object i read have already differents Level Of Detail. But i'm not sure, so if someone could tell me... Thanks a lot.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
