Hi Umit,
osgViewer::Viewer viewer;
osg::ref_ptr<osg::Node> node = osgDB::readNodeFile("mydatabase.txp");
viewer.setSceneData(node.get());
viewer.run();
The second line is all you need to load the database as the OSG has a
terrapage plugin that does all the loading for you, and the osgDB has
a DatabasePager that the viewer will automatically setup and run.
Robert.
On Dec 4, 2007 3:03 PM, ümit uzun <[EMAIL PROTECTED]> wrote:
>
> Hi All;
>
> I am working with terrain and I have a database which in terrapage! i am
> trying to process it with OSG. i dont understand the process of timing on
> database. if anyone has simple code about using terrain with OSG, please
> post me. i will be greatfull if you help me..
>
> Thanks...
>
> ________________________________
> Yeni nesil Windows Live Servisleri'ne şimdi ulaşın! Buraya tıkla!
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org