2d images to look like 3d

Hello,
I have a problem like this.
Is it possible to make a 2d sprite look like 3d in phaser 3?
I have a background that looks like it’s from a 3d perspective but the whole game and the pictures are 2d.
The way I know is to scale down the y axis.
Is there any other way to do it better, since it doesn’t look good enough.

This is the card ,playing-cards

this is how it should look like in the game - card-aces

Thanks for the help.

Hi,
Search in phaser 3 examples quads, not sure it feets your needs, or look to 3d camera perhaps.

2 Likes

Like BlunT said this might help: https://phaser.io/examples/v3/view/game-objects/quad/basic-quad

You could also do this in something like Photoshop if you can’t get it perfect. That assumes you don’t want them to actually move in 3d space, because that would be really difficult and not something that Phaser 3 really does, unless you want to look into 3d cameras.

2 Likes

Unlike Pixijs, Quads in Phaser are just two triangles, which makes them look terrible for just about anything.

What about rotate3d instead?

2 Likes