Alpha Transparency

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
joy
Posts: 124
Joined: Tue Apr 27, 2004 9:15 am
Location: Germany

Post by joy »

Please... Any ideas?
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Try other values than 100. Does the result change?

Try to put another object (or something) behind your (hopefully) transparent object. Does it shine trough?
joy
Posts: 124
Joined: Tue Apr 27, 2004 9:15 am
Location: Germany

Post by joy »

I tried to set other alpha values and the "transparency" of the object seems to change as it should. Is the alpha value bigger than 100 it gets more and more red like the original texture. Is the value smaller than 100 it turns more and more like the background color. But when I set another object behind it, I can't see the object through it. Probably the front is transprant, but as the other sides are not I can only see the into the inside of the object or something similar to that.
But the function works with round objects. When I set the alpha value of a round object smaller than 255 I can see the other object behind it through. I can rotate that round object too and it is transparant in any position. The bad thing here is, that the round object has artifacts on the top and bottom (on the "edges" of the mesh the alpha value seems to be on 255).
Any ideas with this? i am not sure if that is a bug of irrlicht or of my function.

@jox: thank you for replying all the time!
Post Reply