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

3. Managing Objects and Scenes > Creating parametric superellipsoids

Creating parametric superellipsoids

Superellipsoids are graphical primitives that take a variety of ellipsoid shapes, depending on the parameters in the equation used to generate the shape. In this recipe, we will show you how to create a superellipsoid with a ManualObject, and modify the shape at runtime.

Getting ready

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

How to do it...

  1. First, we create an MFC with Ribbon Ogre application named SuperEllipsoid.
  2. Next, we add the controls that we'll be using to adjust the superellipsoid shape.
    How to do it...
  3. Use the Ribbon editor to create a new panel named Control. Then, create a linked pair of edit boxes and sliders for both superellipsoid parameters.
    How to do it...

  

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