OpenSceneGraph

From GRASS-Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The OpenSceneGraph (OSG) is an open source high performance 3D graphics toolkit, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modelling. It supports globe view, stereo anaglyph rendering and more.

OpenSceneGraph can read directly from the GRASS database if the GRASS-GDAL plugin is installed.

Example:

  GRASSDATA=$HOME/grassdata/nc_spm_08/PERMANENT
  export GRASSDATA
  
  osgdem --xx 10 --yy 10 -t ${GRASSDATA}/cellhd/landuse96_28m \
         --xx 10 --yy 10 -d ${GRASSDATA}/cellhd/elevation \
         -l 4 -v 0.1 -o north_carolina.ive
  # you can already watch while the conversion is still running:
  osgviewer north_carolina.ive