SWIG based bindings for OpenSceneGraph
OpenSceneGraph provides a comprehensive scene graph on top of OpenGL. The osgSWIG project utilises SWIG to generate bindings for this C++-based scene graph for various higher-level languages. Our main target is currently Python, but others of interest are Java, Ruby, and Lua.
With osgSWIG one can harness much of the power of the OpenSceneGraph API from a higher-level dynamic or "scripting" language, for example to:
- ...learn what's OpenSceneGraph is about without doing C++ and STL.
- ..."glue" OpenSceneGraph together with external toolkits.
- ...script a converter for foreign data in files or databases to/from OpenSceneGraph formats.
- ...quickly prototype interactive OpenSceneGraph applications.
More detailed information on its use and users can be found on this page's wiki.
If you have questions, suggestions, comments or issues with osgSWIG, please inform the developers through posting on the osg-users mailing list, and/or open an item on the Issue List.
OpenSceneGraph version compatibility
| OpenSceneGraph version | status |
| 2.4.x | "works" |
| 2.6.x | "works", but currently without VecArray support (see issue 12) |
| 2.8.x | r207, "works" with restrictions introduced by MixedInVector (see issue 25) |
| 2.9.x | r208 in progress, "solutions" for MixedInVector available |
Features
Exposure of the OpenSceneGraph API to various target languages.
- all main Nodekits supported
- convenient installer for Windows
- bundled with the GPL v2 version of osgART - Augmented Reality Toolkit for OpenSceneGraph by the HITLabNZ
Licensing
- Files in the repository are under the MIT license
- Files in the installer follow the respective licensing of their originating modules - mostly OSGPL
- Using the osgART module bundled with the installer imposes the GPL v2 upon your scripts