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

5. Playing with Materials > Creating movable text

Creating movable text

In this recipe, we will show you how to create billboard-style 3D text in your Ogre3D application. This text is often used to display player names, and stats over their in-game model or to label buildings in a simulation. Because the text is attached to a SceneNode, it will become smaller as the camera moves away from it.

Getting ready

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

Download files for the MovableText class from the Ogre3d site at http://www.ogre3d.org/tikiwiki/MovableText.

Prepare definitions for the fonts that you'd like to use in the file sample.fontdef, in the media/fonts folder.

How to do it...

  1. First, create a new Ogre MFC application named MovableText, by following the Creating an MFC Ogre application recipe, in Chapter 1,Delving Deep into Application Design.

  

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