After importing my model with the help of an exporter, I started to animate the scene.
The wheels roll nicely and the car bounces a little bit.
There are two more innovations in this scene.
I introduced the billboards which are textures that are always facing the camera.
BillboardSet* bbset = mSceneMgr->createBillboardSet("BBSet",1); bbset->setMaterialName("Examples/Flare"); Billboard* bb = bbset->createBillboard( Vector3( 0,0,0 ) ); FloatRect coords( 0.0, 0.0, 1.0, 1.0 ); bb->setTexcoordRect(coords); billboardNode->attachObject( bbset );
In fig.2 we can see a flare made with a billboard.
We also added the MovableText class to put text on top of objects.
MovableText * msg = new MovableText("fireCarLabel", "Carro dos
bombeiros","Console",12,ColourValue(0.5f,1.0,0.5,1.0f));
Showing posts with label Billboard. Show all posts
Showing posts with label Billboard. Show all posts
Tuesday, July 17, 2007
Subscribe to:
Posts (Atom)

