Author Topic: Will brick transparency ever be fixed?  (Read 2272 times)

Ever since (I think) v21, brick transparency has been terribly, horribly broken.

I think this image explains it all:



Is it going to be fixed?

IIRC this has always been the case.

maybe badspot/kompressor add some sort of check to check if adjacent bricks have the same transparent color and hide the faces between same-colored bricks?

as for the brick fx, i'm curious as to why trans bricks breaks those as well.

Nah, brick transparency has always been like that.
I specifically remember making walls and floors that used this glitch to be pretty way before V21

It would be trivial for badspot to fix this problem. The logic to hide covered faces is already implemented in the oct tree, it just needs to be applied when both bricks are transparent aswell.

if you apply pearl to multiple transparent surfaces it binds it together so it looks more like one. its a good way to get slanted/multi-layered windows to look proper.

I love this effect! It's great for making tunnels that fade to black.

I think he's more referring to the part where only faces in a couple directions get hidden while the other directions don't get hidden.
aka the engine being inconsistent about trans faces

I think he's more referring to the part where only faces in a couple directions get hidden while the other directions don't get hidden.
aka the engine being inconsistent about trans faces
it's good for making one-way windows though


This is probably impossible to fix since this is a problem with the rendering engine.
In the rendering engine, objects are drawn separately. When handling transparent objects, the engine needs to determine which object is closer to the camera. Then it draws them in order, alpha blending with the objects behind it.
This method fails when such ordering cant be done, for example in the case of two arches where both can be occoluded by each other.
In here, this is probably the case and its a problem in the engine, a problem badspot probably cant fix.

It's fairly easy to fix as long as you can live with seeing no faces between transparent bricks. This would make it a lot easier to build large windows without having strange lines going through them, for example.

have water be visible through windows and we cool

IIRC this has always been the case.

maybe badspot/kompressor add some sort of check to check if adjacent bricks have the same transparent color and hide the faces between same-colored bricks?

as for the brick fx, i'm curious as to why trans bricks breaks those as well.

It has definitely not always been this case.  I can't find the original post, but I remember posting a picture of a particular cool visual affect and asking if it would still be possible once shaders were added.  Rotondo replied saying he didn't see why it wouldn't, but it turns out that it did end up breaking with the update.

Edit: Found the post.  It was kompressor who responded, not rotondo. http://forum.blockland.us/index.php?topic=184263.msg4880955#msg4880955

« Last Edit: July 17, 2015, 12:42:23 AM by Nexus »

have water be visible through windows and we cool
this is the only thing that really bothers me