Version 1 (modified by martin, 7 years ago)

--

Plugins

There are 45 plugins in the core OpenSceneGraph distribution, and these provide the support for reading and writng both native and 3rd Party file formats, details on follow. Futher plugins are available in the Community Plugins section.

Invoking a plugin to load or save data The OpenSceneGraph database plugin library osgDB? automatically loads plugins on demand, using the extension of the file to specify which plugin to load.

osgviewer cow.osg

load the osgdb_osg plugin to read a .osg file

osgviewer model.flt

load the osgdb_flt plugin to read a .flt file

When programming to read a file use the follow API:

osg::ref_ptr<Node> node = osgDB::readNodeFile("cow.osg");
osg::ref_ptr<Image> image = osgDB::readImageFile("lz.rgb");

To write a file use the follow API:

osgDB::writeNodeFile(*node, "saved.osg");

List of available 3d database plugins

  • 3dc
  • ac3d
  • directx
  • dw
  • flt
  • geo
  • Inventor
  • ive
  • lib3ds
  • logo
  • lwo
  • lws
  • md2
  • obj
  • osg
  • pfb

List of available movie & image plugins

  • tga
  • tiff
  • quicktime
  • rgb
  • pic
  • png
  • pnm
  • bmp
  • dds
  • gdal
  • gif
  • jp2
  • jpeg
  • mpeg

List of available archive/networking plugins

  • osga
  • txp
  • net
  • zip
  • tgz
  • osgtgz

List of available font plugins

  • freetype

List of available pseudo loader plugins

  • rot
  • scale
  • stl
  • trans