Skip to main content

History: Basic Tutorial Introduction

Preview of version: 28

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. Let's get started.

Setup

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 and general troubleshooting.

To start this series, you will need four files that can be found here. Copy these files into your project (make sure to get the files that match your version/OS):

Copy to clipboard
BaseApplication.h BaseApplication.cpp TutorialApplication.h TutorialApplication.cpp

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.

first_visual.png

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 createScene:" 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:

Copy to clipboard
if (skyIsBlue) { sunshineOnMyFace = true;

Later...

Copy to clipboard
^ if (seeThunderCloud) { takeCover(); } }

These should be read as one single if statement.

Next

Basic Tutorial 1

History

Information Version
Sun 27 of May, 2018 22:39 GMT-0000 paroj 37
Sun 03 of Sep, 2017 16:23 GMT-0000 paroj 36
Tue 31 of Mar, 2015 21:51 GMT-0000 kabbotta 35
Tue 31 of Mar, 2015 21:50 GMT-0000 kabbotta 34
Tue 31 of Mar, 2015 07:07 GMT-0000 kabbotta 33
Tue 31 of Mar, 2015 07:06 GMT-0000 kabbotta 32
Tue 31 of Mar, 2015 07:03 GMT-0000 kabbotta 31
Tue 31 of Mar, 2015 07:03 GMT-0000 kabbotta 30
Tue 31 of Mar, 2015 07:01 GMT-0000 kabbotta 29
Tue 31 of Mar, 2015 07:00 GMT-0000 kabbotta 28
Tue 31 of Mar, 2015 06:57 GMT-0000 kabbotta 27
Tue 31 of Mar, 2015 06:55 GMT-0000 kabbotta 26
Tue 31 of Mar, 2015 06:55 GMT-0000 kabbotta 25
Tue 31 of Mar, 2015 06:55 GMT-0000 kabbotta 24
Tue 31 of Mar, 2015 06:51 GMT-0000 kabbotta 23
Tue 31 of Mar, 2015 06:49 GMT-0000 kabbotta 22
Tue 31 of Mar, 2015 06:46 GMT-0000 kabbotta 21
Tue 31 of Mar, 2015 06:24 GMT-0000 kabbotta 20
Tue 31 of Mar, 2015 06:21 GMT-0000 kabbotta 19
Tue 31 of Mar, 2015 06:20 GMT-0000 kabbotta 18
Tue 31 of Mar, 2015 05:49 GMT-0000 kabbotta 17
Tue 31 of Mar, 2015 05:48 GMT-0000 kabbotta 16
Tue 31 of Mar, 2015 02:13 GMT-0000 kabbotta 15
Tue 31 of Mar, 2015 02:12 GMT-0000 kabbotta 14
Tue 31 of Mar, 2015 02:11 GMT-0000 kabbotta 13
  • «
  • 1 (current)
  • 2