Transparency (alpha channel) ?

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
Methuselah
Posts: 19
Joined: Fri Nov 24, 2006 9:33 am

Transparency (alpha channel) ?

Post by Methuselah »

How can I use alpha channel transparency with textures?
The 'textures' part is optional, I am trying to draw a 2d image with transparent edges
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

for scene nodes,

node->getMaterial(materialnumber).MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;

for a 2d image, driver->draw2dimage has an alpha flag if i remember correctly, or you can just use a gui image.

try reading through the examples, they're very useful ;)
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply