#Any ideas how to make meshes (partly) transparent?

1 messages · Page 1 of 1 (latest)

low ridge
#

Imagine a 3d top down game... When the player enters a house I'd still love to see them. In 2d I could create multiple sprites and tag some as e.g. "roof" and not render them when the player is beneath them. But in 3d with meshes I am a bit lost... Again I could split meshes and tag them accordingly, but it's tedious. Any other ideas?

grim wave
#

I think you could make the roof part of the texture partly transparent, and change the AlphaMode of the material from Opaque to Blend to effect wether the alpha channel of the texture is used.

scarlet vortex
#

Does it mean you want to make it transparent according to the height of the vertex? You could make a shader, that starts to increase alpha based on the z value in the world, if the map e.g. is flat.

low ridge
#

thanks... @scarlet vortex no the world isn't flat