Godot Version
4.3stable
Question
What is the most efficient way to show the player even if is behind something?
Hi there, I’m working on a 3D platfromer game with a Tunic vibe and I’m looking for a solution with nodes or/and code. The only infos I have found is to use lightning put in the wall or a second material on the character for show him in a blue color for exemple when he is behind.
But I need something a little more elegant so any ideas or tips?
If I need to think about collision detection and move up / hide wall when this kind of collision is detected please tell me.
Thanks in advance!
You could use a glowing outline or a glowing wireframe of the player’s mesh
Is this two year old tutorial on using materials for this still working? I don’t think there’s anything more elegant or simple.
Yep I saw it but there is nothing else to do for “cut” the wall and not see the player trough it in an other color. I need something elegant!
You could use this shader by Melisek, Contributer to Godot Shaders from Godot shader and add this line: DEPTH = 1.0;
at the end of it to make the wireframe always visible
Sorry I’m still a rookie on godot and especially coding so how this shader works exactly?
Is that create a “bubble” around the player who interact with props? Or this is a shader for props/walls/etc that “detect” when the player is behind and show him to us.
Sorry if my questions seems clumsy…