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

9. Queries and Views > Orbiting an object

Orbiting an object

Being able to constrain the camera so that it rotates about an object is very useful and saves time when you wish to view or manipulate the object from various perspectives. Orbiting is a technique in which the user drags the mouse to move the camera at a fixed distance about a point, while keeping the camera focused on the point. In this recipe, we'll show you how to implement tools for orbiting and for constraining the orbit to a single axis.

Getting ready

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

How to do it...

  1. First, create a new Ogre MFC Ribbon application named OrbitView by following the Creating an MFC Ogre application with a Ribbon 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 Trial