Transparency VS Frames/Second VS Myth

Questions and answers about the how and why of making maps.
Post Reply
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1018
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo

Transparency VS Frames/Second VS Myth

Post by optic delusion »

I have read in other posts that when transparency is applied to objects in a map file, the client does not handle drawing that object very well. It draws the sides of the object towards the player, as normal, and it also draws the sides of the object that the player would not see without the transparency. This effect becomes worse when transparent objects are "stacked" in a players view, so you look through multiple transparent items. The client draws ALL sides of the objects
Frames Per Second can be slowed by half. I first noticed this on Sir_Pants WaterWorld map.

However, I have noticed that if I use a texture, that has transparency encoded within the .PNG, it's not as bad.
So when I use red_laser.png as a texture on an object, you can see right though the object, but the client never got any code that told it to calculate transparency, so it doesn't draw the back-sides of the object. The client treats it the same as a regular texture?
This gives you the benefits of transparent objects, without the FPS lag.

At least thats what my tests show.
If someone can debunk my myth, Please Do!
You will save me some work. I'm not gonna start making semi-transparent textures unless I'm completely sure this works.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
Post Reply