Alphacolour

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Brot

Alphacolour

Post 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.
thephoenix
Posts: 19
Joined: Wed Jan 25, 2006 7:44 pm

Post 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);
ElementoY
Posts: 15
Joined: Sun Feb 05, 2006 3:40 am
Location: Brazil
Contact:

Re: Alphacolour

Post 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)
Last edited by ElementoY on Fri Feb 10, 2006 12:31 am, edited 1 time in total.
Guest

Post by Guest »

Thank you, that will do it.
Guest

Post by Guest »

Thank you, that will do it.
Post Reply