Version 46 (modified by osg, 6 years ago)

--

Tutorials

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.

Basic

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

You can download full source code and data files from ''NPS_Tutorials_src.rar''

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 Tuto1.zip
  • 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 Tuto2.zip. 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. Download the file here Tuto3.zip. 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. Get the file here Tuto4.zip.
  • Tutorial 5: Installing OSG on a Linux platform
    • This tutorial will explain how to setup under Linux. Get the file here Tuto5.zip.
  • Tutorial 6: Materials in OSG
    • This tutorial will show you how to add materials to your objects. Tuto6.zip. Remember to edit the Makefile by typing the right path for your OSG installation.
  • Tutorial 7: Texturing, multitexturing and positioning objects
    • Download the file here Tuto7.zip. Remember to edit the Makefile by typing the right path for your OSG installation.
  • Tutorial 8: Watch out that morning fog!
    • A fogging effect in OSG. Download the file here Tuto8.zip. Remember to edit the Makefile by typing the right path for your OSG installation.
  • Tutorial 9: Let light be!
    • Shading your scene. Get the file here Tuto9.zip
  • Tutorial 10: OpenGL code in OSG
    • Coding in OpenGL in OSG. Get the file here Tuto10.zip
  • Tutorial 11: Billboarding in OSG
    • How to add a billboard to your scene. File is here: Tuto11.zip
  • Tutorial 12: Simple shadow effect
    • Using the shadow effect in OSG. The file is here: Tuto12.zip
  • Tutorial 13: Switching nodes in OSG
    • This tutorial will give you an example of the Switching nodes. File: Tuto13.zip
  • Tutorial 14: Adding shaders to your scene
    • This tutorial will show you how to add shaders to your scene. Here is the file Tuto14.zip
  • All Tutorials access from one file by Franclin Foping osgTutorial.zip

Advanced

Tutorials that go in depth into more specific topics.

Miscellaneous tutorials

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

Examples

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. LMBs_OSG_Examples.zip. (by Leandro Motta Barros). MS Visual Studio 2005 version with support for OSG v2.2 LMBs_OSG_Examples_OSG22_VS2005.zip (by Kari.Rainio@…).
  • Bullet demo: a little demo application showing integration of OSG and (Bullet) physics engine. Using osgProducer:bullet-test.tar.gz, using new osgViewer:bullet-test-osg2.6up.tar.gz. Archive contains a CDT project (Eclipse C++ IDE), the code is tested and working with Bullet 2.68 and OSG 2.4 upwards (by Jan Ciger).
  • High Dynamic Range examples: this examples demonstrate the use of GL_NV_float_buffer extension with OSG. HDRTutorials.zip (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)

Attachments