Description

OpenSceneGraph (OSG) is a well-established scene graph toolkit supporting high-performance 3D graphics, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modeling.

Written entirely in Standard C++ and OpenGL, it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. OpenSceneGraph is an open source project; the top level home page is http://www.openscenegraph.org/projects/osg.

Availability and Setup

OpenSceneGraph will be available soon on the Shared Computing Cluster (SCC).

To run OSG programs you will need to tell the dynamic loader where to look for dynamic libraries, i.e., at the Linux prompt:

scc1% setenv LD_LIBRARY_PATH /usr/local/OpenSceneGraph/lib

There are four programs which come with the package: osgviewer, osgarchive, osgconv, and osgversion. The first of these, osgviewer, is a general purpose viewer which you can use to display 3d models, allowing interactive control of the camera position. The second two (osgarchive and osgconv) are used for managing databases of OSG related files, and the last (osgversion) gives the currently installed version of OSG.

An example using osgviewer to view a 3D model:

scc1% osgviewer /usr/local/OpenSceneGraph/OpenSceneGraph-Data/cow.osg

An example using osgviewer to view two 3D models, one of which represents (x,y,z) axes, the second of which is an animated model:

scc1% osgviewer /usr/local/OpenSceneGraph/OpenSceneGraph-Data/axes.osg /usr/local/OpenSceneGraph/OpenSceneGraph-Data/osgcool.osg

To compile and run your own programs, please refer to the Makefile in the RCS-supplied examples: RCS OSG Examples

Additional Help/Documentation

On-line help for OSG is accessed though this page: http://www.openscenegraph.org/projects/osg/wiki/Support, and OSG tutorials are here OSG-supplied Tutorials online.

We have a few locally written RCS OSG Examples to help get you started.

We have in the past offered a live tutorial on OpenSceneGraph and the PowerPoint slides remain available.