On Mon, Mar 2, 2009 at 12:40 PM, Jason Rupert <[email protected]> wrote:
> Whoops.
>
> I guess I mean terrain databases, e.g. OpenFlight, Terrapage, etc. Will
> have a building with some terrain in the OpenFlight format and want to load
> it in and "fly" around the terrain using the OpenSceneGraph.
>
> What is the best documentation and references for learning how to import
> your own OpenFlight model, etc.? And then fly around and set view points?
There isn't anything to learn, there is nothing special about loading
OpenFlight or TerraPage file formats, you just load it:
osgviewer myOpenFlightDatabase.flt
Or programatically :
osgViewer::Viewer viewer;
osg::ref_ptr<osg::Node> node =
osgDB::readNodeFile("myOpenFlightDatabase.flt");
viewer.setSceneData(node.get());
viewer.run();
There we go four lines of code to load and render your terrain database.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org