Have you taken a look at the OSG Quick Start Guide and its examples?
http://www.skew-matrix.com/OSGQSG/index.html

Anyway, a bare-bones OSG example would be:

#include <osgDB/ReadFile>
#include <osgViewer/Viewer>
int main()
{
  osgViewer viewer;
  viewer.setSceneData( osgDB::ReadNodeFile( "cow.osg" ) );
  viewer.run();
}

Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
+1 303 859 9466



Sam Gidding wrote:
Hi all,


I've recently been trying to get my head around OSG, been trying the inbuilt 
examples and am not getting very far. I thought i'd check out the OSG tutorials 
but the site seems to have been down for the last few days now. Is there any 
specific example that I should be looking at just to learn how to load a model 
into OSG, as some seem a little more complex than this.

Hopefully that made sense, cheers
...
Thank you!

Cheers,
s

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20490#20490





_______________________________________________
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

Reply via email to