I used osggis_build to generate a ive file of 3d buildings
How to merge them ?osgviewer loads it automatically using this command
osgviewer out/buildings/out.ive

but thru code its not possible

see below

    osg::ref_ptr<osg::Node> loadedModel =
osgDB::readNodeFile("out/buildings/out.ive");
    viewer.setSceneData( loadedModel.get() );
    viewer.realize();


is working

but

    osg::Group* root = new osg::Group;
    root->addChild( osgDB::readNodeFile("out/buildings/out.ive") );
    viewer.setSceneData( root );
    viewer.realize();

is not working...

Can anyone explain why?
do I need to merge all *.ive files in buildings dir

buildings dir contains these files

gL0_X0_Y0.ive
gL0_X0_Y1.ive
gL0_X0_Y2.ive
gL0_X0_Y3.ive
gL0_X1_Y0.ive
gL0_X1_Y1.ive
gL0_X1_Y2.ive
gL0_X1_Y3.ive
gL0_X2_Y0.ive
gL0_X2_Y1.ive
gL0_X2_Y2.ive
gL0_X2_Y3.ive
gL0_X2_Y4.ive
gL0_X2_Y6.ive
gL0_X3_Y0.ive
gL0_X3_Y1.ive
gL0_X3_Y2.ive
gL0_X3_Y3.ive
gL0_X3_Y4.ive
gL0_X3_Y5.ive
gL0_X3_Y6.ive
gL0_X4_Y0.ive
gL0_X4_Y1.ive
gL0_X4_Y2.ive
gL0_X4_Y3.ive
gL0_X4_Y4.ive
gL0_X4_Y5.ive
gL0_X4_Y6.ive
gL0_X5_Y0.ive
gL0_X5_Y1.ive
gL0_X5_Y2.ive
gL0_X5_Y3.ive
gL0_X5_Y4.ive
gL0_X5_Y5.ive
gL0_X5_Y6.ive
gL0_X6_Y0.ive
gL0_X6_Y1.ive
gL0_X6_Y2.ive
gL0_X6_Y4.ive
gL0_X6_Y5.ive
gL0_X6_Y6.ive
out.ive

-- 
Regards,
   Rashad
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to