Version 33 (modified by osg, 10 years ago)



Tutorials should help newbies or other users in general to get ideas how to solve problems with a specific tasks. They differ from examples because tutorials come with a written or spoken (video tutorial) guidance through the code. Please feel free to add new tutorials if you find something that is not covered or for your own examples.


Tutorials aimed at first time users of OpenSceneGraph looking for some introductory tutorials.

Yet Another Set of Beginner Tutorials

From my own experience in using OpenSceneGraph, I have written these tutorials in order to help any new comers to this lovely graphics toolkit. These tutorials are mainly intended to Linux users but other users can still use the enclosed codes. By Franclin Foping

  • Tutorial 1: An overview of OpenSceneGraph
    • This first tutorial desribes the architecture of OpenSceneGraph. There is no source code for it. Please download the file
  • Tutorial 2: Rendering a simple geometry
    • This tutorial will show you how to render a simple geometry: a shape drawable. The source code and the tutorial itself can be downloaded from the attached file Remember to edit the Makefile by typing the right path for your OSG installation.
  • Tutorial 3: Memory management (Referenced pointers)
    • This tutorial will explain referenced pointers. It is based on Don Burns' atricle. Remember to edit the Makefile by typing the right path for your OSG installation.
  • Tutorial 4: Functors
    • This tutorial will explain how OSG uses functors which is an advanced C++ topic.
  • Tutorial 6: Materials in OSG
    • This tutorial will show you how to add materials to your objects. Remember to edit the Makefile by typing the right path for your OSG installation.


Tutorials that go in depth into more specific topics.

Miscellaneous tutorials

Tutorials that are platform specific or go into integrating other libraries with OSG.


External examples

  • OSG Examples: some examples I created while learning OSG. Most of them are pretty well commented, and I think they are simpler than the "standard" examples distributed with OSG. May be useful for someone else. Last update: November 8th 02006. (by Leandro Motta Barros). MS Visual Studio 2005 version with support for OSG v2.2 (by Kari.Rainio@…).
  • High Dynamic Range examples: this examples demonstrate the use of GL_NV_float_buffer extension with OSG. (by Fabio Mierlo)

Tutorials/examples that need their links fixed or need to be added to this Wiki.

  • Three introductory tutorials written in Chinese. Direct link not available anymore, but the tutorials are still available in an VRDEV-OSG-STUDY-KIT-1.0.iso (230 Mb!) which also contains collected data on osgExp, Delta3D and the NPS tutorials. (by TaoJi)