Page 1 of 2
Transparency
Posted: Fri Sep 02, 2005 6:20 pm
by DaMathew
Hi all!
I've got a model with an alpha-texture, so when i want to make it transparent i'm using the EMT_TRANSPARENT_ALPHA_CHANNEL type, right?
well when i use it it looks like this:
i mean the smoothness... is this possible with the engine?
thank you a lot!
Mathew[/img]
Posted: Fri Sep 02, 2005 6:21 pm
by DaMathew
Ooops sorry
the first pic is:
Posted: Fri Sep 02, 2005 9:32 pm
by Armen138
it looks like image 1 has alpha testing transparancy, while image 2 has alpha blending transparancy. i'm not sure if this works correctly in irrlicht with both opengl and directx, it didn't before i started using irrlichtnx instead(one of the main reasons for the switch)
Posted: Sat Sep 03, 2005 8:46 am
by DaMathew
Thank you for you answer!
The documentation says that EMT_TRANSPARENT_ALPHA_CHANNEL uses alpha blending, so what could it be!?
Posted: Sat Sep 03, 2005 3:13 pm
by Elise
Well this might be a longshot but is the image in alpha channel smooth or are the edges jagged?
Is it something like this:
or more like this:
(The first one is better)
Posted: Sat Sep 03, 2005 3:54 pm
by DaMathew
Thanks, but i don't think this is the problem, because on both screenshots there is the same alpha channel!
Posted: Sat Sep 03, 2005 5:29 pm
by Elise
Ok more longshots.
What material settings are you using? Have you tried changeing the MaterialTypeParam? Lower values make the blending smoother.
Also what image format are you using? I haven't been able to get the blending work properly with png images, how about trying a tga image?
Posted: Sat Sep 03, 2005 5:45 pm
by DaMathew
Changing the MaterialTypeParam doesn't have any effect
i'm using tga, i also tried png but both doesn't work
Posted: Sat Sep 03, 2005 6:00 pm
by Elise
Ok, sorry I'm out of ideas. Can't imagine why it won't work for you. Maybe you can post or send me the texture so I can test it?
Posted: Sat Sep 03, 2005 6:14 pm
by DaMathew
This would be very nice =D
http://compandmore.ath.cx/Ch_Schneetanne.tga maybe you'll have more luck
[/url]
Posted: Sat Sep 03, 2005 8:06 pm
by Elise
I don't think there's an easy way to make it blend like in the first picture. I tried to fiddle with it but no luck.
This is the best I could do but I don't think it will look very good:
Ch_Schneetanne-2.tga.
Posted: Sat Sep 03, 2005 8:32 pm
by Guest
elise: are youre a german female?? wow ... a female programmer is already a big _wow_ but a german one is not possible
(just thought youre german because of the name Elise and the Schneetanne-2.tga which are both german words)
Posted: Sat Sep 03, 2005 8:39 pm
by DaMathew
Tahnk you a lot for your effort !!!!
Didn't help much but looks little better now =D
@GFXstyLER: the texture was named by me
Posted: Sat Sep 03, 2005 8:48 pm
by puh
I don't understand the problem. When i load the sample cone with the first texture and use EMT_TRANSPARENT_ALPHA_CHANNEL with MaterialTypeParam=254 all looks very close to the first pic. Could you post your model?
Posted: Sun Sep 04, 2005 8:03 am
by Elise
GFXstyLER wrote:elise: are youre a german female??
Nope not german, it was DaMathew's file.