This tutorial is part of OpenSceneGraph cross-platform guide.
In this tutorial we build and run sample OpenSceneGraph application under Linux. The application displays provided model with simple GLSL shaders.
Note: this tutorial requires
- OpenSceneGraph model (see 1.1. Create a cube)
- OpenSceneGraph installation (see 1.2. Install OpenSceneGraph under Linux)
Video depicts running and building sample OpenSceneGraph application under Xubuntu 16.04.
Note: steps below use frames from the video as screenshots. Watch the video to see all details.
Get the latest copy of sample application with the following command:
git clone https://github.com/OGStudio/openscenegraph-cross-platform-guide-application.git
Create a separate build directory for sample application, just as you did for OpenSceneGraph.
Configure sample application build with the following commands:
cd /path/to/build/dir
cmake /path/to/source/dir
Build sample application with the following commands:
cd /path/to/build/dir
make
Run sample application with the following commands:
cd /path/to/build/dir
./sampleApplication /path/to/box.osgt