Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Implementing Animations > Animation using controllers

Animation using controllers

You may find in your application that you do not need the key frame animation to achieve a certain effect. One example of this might be to make a light pulse or flicker randomly. You could animate the light with key frames, but that would be time-consuming, and the end result wouldn't be as dynamic. Ogre provides controller functions and values to give us a way to animate object values, based on functions. In this recipe, we'll show you how to use controllers to animate the size of the sphere.

Getting ready

To follow this recipe, open the solution located in the Recipes/Chapter07 folder in the code bundle available on the Packt website.

How to do it...

  1. First, create a new Ogre MFC application named UsingControllers by following the Creating an MFC Ogre application recipe from Chapter 1.

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint