hi guys! do you know if is possible in Godot making the tilemap in perspective like shown in this video?
One point perspective (vanishing point) with Tilemap
Perhaps with some 2d transforms. But I haven't done any 2D tasks in godot beyond simple UI's.
Hi @salvob14 , hmm...tilemaptool are only available at 2D...but setting up a tileset is needing a lot of steps, so why dont set up this tiles not direktly in 3D to get the perspective? In past i had the same question an i answered it by "modelling" my tiles in blender for using it in Godot 3D xD ...or i did misunderstand you Neo
yeah... I'm getting a very hard times to do it with shaders(Vertex) OR gdscript (Transform2D)
The score I want is on the top, but now is a fake image
the real score(000000005) I get with shader:
shader_type canvas_item;
uniform float VchangeX = 0;
uniform float VchangeY = 0.5;
void vertex()
{
float vertPosX = (-VERTEX.y * VchangeX) + VERTEX.x;
float vertPosY = (-VERTEX.x * VchangeY) + VERTEX.y;
VERTEX.x = vertPosX;
VERTEX.y = vertPosY;
}
or GDscript:
t.x = Vector2(1, -.5)
t.origin = Vector2(15,280)
myscore.transform = t
Same results, basically... How can I do this kind of vanish point?
I have no idea if it would help or not, but you may be able to see how to perform a similar projection by looking at the code in this Godot Skew Streching Tool on Itch.IO.
might be easiest to render the text in a viewport and apply it as a rt texture to a skewed(possibly using the above linked tool) node?