Add "depth" to a 2d top down game

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

I have recently been experimenting with the capabilities of the 2d engine and I was wondering if it is possible to make a scene like this using only Godot’s 2d nodes (or at least without having to create an entire 3d scene).

Now, I’m not interested in the shadows, I only want to create that fake 3d depth:
I already tried creating a system for it but it didn’t work well

I’d also like to add a texture to the area, possibly a warpable one to make it seem more 3d like the Photoshop’s perspective warp

I found a image showing better what I want to achieve: Construct Classic, an old 2d game engine, has a 3D Box object which, as its name, is a 3d box in a 2d world. You can set his faces (front, back, left, right, ecc…) and the direction it’s facing, here it’s an image

:bust_in_silhouette: Reply From: Gluon

You can but the thing is in a 2d game its all smoke and mirrors. You give the impression of depth but with tricks and one of those tricks for instance are the shadows you want to ignore.

You can try looking into stacked sprites as an example, this is where you create several layers for an object and create a scene with these stacked objects. Try doing a google search for stacked sprites in godot I am sure someone will have done some tutorials on it somewhere but its a bit beyond my artistic ability.

I did a quick search myself and found this video which appears to be decent

Gluon | 2022-12-21 23:13

Thanks for the answer! It isn’t exactly what I was looking for but it is very helpful for another thing I was trying to do. I guess this “GTA 1 style” isn’t used often in modern 2d games. Anyway, I’ll check around for some tutorials on other engines, maybe I’ll try porting them if I found some, thanks for the help!

Edit: I checked and GTA 1 is 3d, it just makes it seem like it’s 2d. Maybe it’s better to use a 3d scene as a background or something similar even if that would mean losing gles 2 support since (as far as I know) it doesn’t work well with anti-aliasing for 3d.

VitusVeit | 2022-12-22 14:02