OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: Basic Tutorial Introduction
View page
Source of version: 37
(current)
!Introduction This is where you should first start when learning Ogre. This tutorial series will explain the core elements of an Ogre scene starting from the very basics. The only requirement is an understanding of writing and compiling c++ programs. A basic knowledge of mathematics will also be very helpful, but is not necessary. Every tutorial will begin with an introduction and a screenshot to demonstrate the final product. Each tutorial will also provide links to the completed source code. !Setup {DIV(class="achtung")}__IMPORTANT:__ This framework is meant to be used with old releases of Ogre. For Ogre 1.10+, rather use [https://ogrecave.github.io/ogre/api/latest/setup.html#skeleton|OgreBites::ApplicationContext].{DIV} Before you can begin this series, you have to set up a basic Ogre project. If you need help with this, then you can read ((Setting Up An Application)). It has setup information for each OS, a number of different IDEs, and a section about building with cmake. It also has a section that covers the framework we will be using for the tutorial. To start this series, you will need four files that can be downloaded ((Ogre Wiki Tutorial Framework|here)). Copy these files into your project (make sure to get the files that match your version/OS): {CODE(wrap="1" colors="c++")} BaseApplication.h BaseApplication.cpp TutorialApplication.h TutorialApplication.cpp {CODE} Compile and run your application with these new files included. You should see the overlay displaying information about the rendering statistics. If you're still having trouble, then refer to the ((Troubleshooting)) section of ((Setting Up An Application)). {img fileId="2271" rel="box[g]"} !Notes When the tutorial shifts to a new method it will always be mentioned explicitly. For example, you will see: "Add the following to the beginning of {MONO()}createScene{MONO}:" If a new code section is reached and nothing has been mentioned, then you can assume the code continues exactly where the last section left off. If you spot any cases where this isn't true, then please leave a comment or make the change yourself. During these tutorials, when a block of code (i.e. something between brackets { }) is broken up over more than one code section, a ^ will be used as a reminder that the code is continuing an unfinished block. This should __not__ be included in your project. It is soley for formatting. An example: {CODE(wrap="1" colors="c++")} if (skyIsBlue) { sunshineOnMyFace = true; {CODE} Later... {CODE(wrap="1" colors="c++")} ^ if (seeThunderCloud) { takeCover(); } } {CODE} These should be read as one single if statement. !Next ((Basic Tutorial 1))
Search by Tags
Search Wiki by Freetags
Latest Changes
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
...more
Search
Find
Advanced
Search Help
Online Users
208 online users