Tutorial 1: displaying and manipulating a scene
The first thing I want to be able to do is to load a scene, visualize it in a window and manipulate it in a convenient way. By convenient way I mean the ability to go look exactly where you want to debug some rendering artefacts or explore some particular viewpoints. If you want to test such convenient manipulations, go check libQGLViewer by Gilles Debunnes. In this tutorial, we will basically learn :
- how to setup an application and open a window;
- how to populate the scene;
- how to react to keyboard/mouse;
We will do this by building what I consider to be the minimalistic application for my needs. I start from scratch and detail every steps. I do not use the ExampleApplication.h that can be found in Ogre because I want to try to understant what's going on and make a minimalistic application. I do not claim my approach or any statement about Ogre are ground truth. They only reflect my understanding of Ogre through some other tutorials, the doxygen documentation and some glimpse at the source code.
- back to list of tutorials
- Step A: construct application and open rendering window
- Step B: introducing FrameListeners
- Step C: introducing unbuffered input
- Step D: adding meshes to the scene
- Step E: buffered keyboard input
- Step F: buffered mouse input
- Step G: showing mouse cursor
- Step H: the full monthy
- Final: a simple OgreApplication class
- Conclusion