I want to make a Counting down animation---3 2 1 go! (just like the animation at the beginning of the racing game)
So I created a billboard and tied it at the front of the camera,zhen add a texture animator (3 2 1 go) to the bill board ;
But I don't know how to make the billboard disppear gradually(decrease its alpha smoothly)
need your help
How to make the billboard disappear gradually?
something like this:
billboard->setMaterialFlag(EMF_TRANSPARENT_ALPHA_COLOR)
like the other scenenodes
and than you can give a TRANSPARANT parameter some where between 0 and 255
billboard->setMaterialFlag(EMF_TRANSPARENT_ALPHA_COLOR)
like the other scenenodes
and than you can give a TRANSPARANT parameter some where between 0 and 255
Compete or join in irrlichts monthly screenshot competition!
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
from SMaterial.h
So set the material.MaterialTypeParam to change transparency.
Code: Select all
//! Free parameter dependend on the material type.
/** Mostly ignored, used for example in EMT_PARALLAX_MAP_SOLID
and EMT_TRANSPARENT_ALPHA_CHANNEL. */
f32 MaterialTypeParam;
If you don't have anything nice to say, don't say anything at all.