Book Image

OGRE 3D 1.7 Beginner's Guide

Book Image

OGRE 3D 1.7 Beginner's Guide

Overview of this book

Want to make your own 3D applications, simulations, and games? OGRE 3D, an open source Object-Oriented 3D Graphics Rendering Engine written in C++, which can be utilized to create a variety of 3D applications and is commonly used in game creation, can help you to do so! OGRE 3D 1.7 Beginner's Guide, based on the latest version 1.7, makes it super easy for you to make your own monsters, spaceship shooters, weapons, enemies, and more!OGRE 3D 1.7 Beginner's Guide will teach you to develop 3D applications that are exciting and interesting and if used correctly can result in stunning games and simulations. You will start from the very beginning and then work your way up to complex scenes and stunning effects.In this book you will start with how to download and configure OGRE 3D, then create your first example scene. With the help of this sample scene, you will be introduced to several related topics each of which will be explained through several other examples and by do-it-yourself tasks. After each example there is a section that explains the theory behind the technique used for deeper understanding. You will also use what you learned in one example in another example and repeat each technique several times while learning new ones at the same time to strengthen the topics learned. Within no time you will master the art of game creation. Imagine how great you will feel when all your friends are playing the great-looking games you've created with OGRE 3D and this book.
Table of Contents (17 chapters)
Ogre 3D 1.7
Credits
About the Author
About the Reviewers
Preface
Index

Time for action — time to live and color range


Again we are going to add some parameters to our particle system to see the effect they have.

  1. Change time_to_live to be a range with a minimum and maximum:

    time_to_live_min 1
    time_to_live_max 10
    
  2. Do the same for the color:

    color_range_start 1 0 0
    color_range_end 0 0 1
    
  3. Adjust your application code; then compile and run it. You should see different colored particles and some will disappear before others.

What just happened?

Instead of using single value parameters, we used parameters that described a range of values and let Ogre 3D pick the exact values. This added diversity to our particle system and can be used to model natural effects more realistically, because, in nature, there is seldom something that doesn't have a slightly different appearance over time and space.

Pop quiz — time to live

In your own words, describe the difference between time_to_live and time_to_live_min.