How to use and create a greyscale depth map in Escoria?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By QuesitoMandarina

Hello everybody! I’m using Escoria to create a click and point adventure game and I’m trying to change the player’s height, the tutorial says I should use a greyscale depth map on the ESCTerrain node, but I don’t know how to create or use one!

:bust_in_silhouette: Reply From: eneko

Hi, you have an example in room 04 of escoria-demo-game.


Grayscale texture (a darker part of the texture is considered to be further away from the viewer and a lighter part is considered to be more in front of the viewer):