How to make the billboard disappear gradually?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
charlie
Posts: 10
Joined: Tue Aug 15, 2006 4:11 am

How to make the billboard disappear gradually?

Post by charlie »

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
Student
charlie
Posts: 10
Joined: Tue Aug 15, 2006 4:11 am

Post by charlie »

simply
How to change the transparence of the billboard little by little?
Student
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

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
charlie
Posts: 10
Joined: Tue Aug 15, 2006 4:11 am

Post by charlie »

but how can I change the Transparent value of the texture by my programme Dynamicly?

I can't find the parameter.
I am sorry
Student
Luben
Posts: 568
Joined: Sun Oct 09, 2005 10:12 am
Location: #irrlicht @freenode

Post by Luben »

from SMaterial.h

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;
So set the material.MaterialTypeParam to change transparency.
If you don't have anything nice to say, don't say anything at all.
Post Reply