alpha texture problem

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
kaboraa
Posts: 10
Joined: Mon Nov 15, 2004 9:52 am

alpha texture problem

Post by kaboraa »

Hi

I have got another nagging problem a bit naggier. I created a texture in photoshop with an alpha channel which is suppose to make some areas transparent. I saved the texture using the A8R8G8B8 format. When the texture is diplayed on any node it just appears white. I have tried several texture formats but the problem stoll persists unless I remove the alpha channel. Any help?
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

what material are u using for your node? You'll need to use EMT_TRANSPARENT_ALPHA_CHANNEL or something like that
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

And be sure to load the texture in full 32 bit. By default it is being loaded in 16 bit mode, reducing your alpha channel from 8 to just 1 bit. Try IVideoDriver::SetTextureCreationFlags for this.
Post Reply