Page 1 of 1

Alphacolour

Posted: Thu Feb 09, 2006 7:14 pm
by Brot
Is it possible to change the Alphacolour from black to eg. red? Or are there some kind of Alphamaps? The problem is, I want to create black and grey particles but they become allways white.

Posted: Thu Feb 09, 2006 8:09 pm
by thephoenix
Why don't just use for example GIMP to add an alpha channel manually and then save it as .tga? GIMP can create the alpachannel from a predefined color like red.
Then you can use that alpha channel by typing:

Code: Select all

particle->setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL);

Re: Alphacolour

Posted: Thu Feb 09, 2006 8:12 pm
by ElementoY
Brot wrote:Or are there some kind of Alphamaps?
Use .PNG textures with alpha transparency, and material type EMT_TRANSPARENT_ALPHA_CHANNEL 8)

Posted: Thu Feb 09, 2006 11:24 pm
by Guest
Thank you, that will do it.

Posted: Thu Feb 09, 2006 11:24 pm
by Guest
Thank you, that will do it.