normal map and 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
tintinkeke
Posts: 3
Joined: Wed Sep 06, 2006 8:52 am

normal map and alpha channel

Post by tintinkeke »

hello everyone!
how can i use video::EMT_TRANSPARENT_ALPHA_CHANNEL and video::EMT_NORMAL_MAP_SOLID together? i means , a object with normal map tech and show it's alpha channel???

tnx.
I'm Lovin C++! Lovin Life!
raven_coda
Posts: 89
Joined: Thu Aug 17, 2006 8:11 pm
Location: Salt Lake City, UT, USA
Contact:

Post by raven_coda »

Why do you want it to have EMT_NORMAL_MAP_SOLID if you already have it transparent? I don't understand why you'd need it.
Definition of an Upgrade: Take old bugs out, put new ones in.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

He wants normal mapping and transparency on the same object, something like EMT_NORMAL_MAP_TRANSPARENT_VERTEX_ALPHA but wants to use the texture alpha instead of the vertex alpha. For that you would need to create your own material renderer.

Travis
tintinkeke
Posts: 3
Joined: Wed Sep 06, 2006 8:52 am

Post by tintinkeke »

vitek wrote:He wants normal mapping and transparency on the same object, something like EMT_NORMAL_MAP_TRANSPARENT_VERTEX_ALPHA but wants to use the texture alpha instead of the vertex alpha. For that you would need to create your own material renderer.

Travis
thank u vitek, i got it.
I'm Lovin C++! Lovin Life!
needforhint
Posts: 322
Joined: Tue Aug 30, 2005 10:34 am
Location: slovakia

Post by needforhint »

an easy way to do this is to apply the bump shader on the target of EMT_TRANSPARENT not the target of EMT_DIFFUSE, it is in the shader object creation, see tuts
what is this thing...
Post Reply