Materials are bothering me..

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
Yotunii
Posts: 16
Joined: Sun Aug 13, 2006 9:44 am

Materials are bothering me..

Post by Yotunii »

So, hybrid said my solution to transparent textures could be materials. I need an example of how to draw a material using a semi-transparent texture, on a flat surface (what you normally get with draw2DImage).

The tutorials that cover materials (shader and per-pixel light) don't really help me, they just confuse me.

Thanks =)
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

look at smaterial.h for all the materials and explainations

i would advise EMAT_TRANSPARENT_ADD_COLOR
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, definitely. That's also the material used for light billboards and the particles used in the examples. The black border is simply transparent.
Post Reply