xarray / osgRecipes

OpenSceneGraph (OSG) Recipes
348 stars 167 forks source link

osgRecipes

The osgRecipes project includes different recipes written with OpenSceneGraph (OSG) and can help developers work with this famous 3D rendering engine, as well as other auxiliary libraries. The osgRecipes project itself is in the Public Domain, but some of its recipes may be under other licenses.

This project is also the source code repository of Rui Wang & Xuelei Qian's book OpenSceneGraph 3.0 Cookbook, Packt Publishing, 2012. You may read more details or order this book at: http://www.packtpub.com/openscenegrap-3-for-advanced-3d-programming-using-api-cookbook/book


Installation

  1. Use CMake (or cmake-gui) to build makefiles or solutions of the recipes

    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=

  2. Run 'make' to build and install all recipes

    make

    make install

  3. Copy data files from both cookbook and integrations into the binary directory.

    cp /cookbook/data/. /bin

    cp -r /integrations/data /bin

  4. Have fun!


Cookbook

You may have to download and compile these third-party dependencies to test all the recipes:


Integrations

This section will show you how to integrate OSG with different kinds of libraries and SDKs. These libraries can add extra functionalities like special effects, visual components and interaction methods to your OSG scene and greatly improve the performance of the applications. These libraries must be free for downloading and for non-commercial purpose of use. The license of the example code may vary according to the license of the third-party library if it does not fit the public domain.

The third-party libraries that can be embedded with OSG are listed here for downloading:


Contributing

Any suggestions and contributions are welcomed all the time. :-)