#Pseudo 3D/Perspective Shift

7 messages · Page 1 of 1 (latest)

west comet
#

Hello,

I have a card game I've been working on that is made up of control nodes in 2d. I've never made any games in 3d, so I don't know if this is easy or difficult to do, whether I should be using a (sub?)viewport in 3d or a shader, but basically I'd like to achieve the effect in the images, taking my flat 2d scene and projecting it toward the background. Ideally it could be done in such a way that it wouldn't impact the interactive elements (like it would project the areas of all controls shown). I resonate really well with videos or articles but I haven't really found anything to this effect. Maybe I'm not searching for the right things? Thanks for any help.

merry bay
#

The perspective part is easy with shaders. But making the inputs match the visuals is a different matter.
It may be easier to use actual 3D.

thick belfry
#

I agree with Nancok here, just using 3D will be easier. The most complicated part will be translating mouse input to 3D, but that's relatively simple compared to the shader shenanigans you'd need for the same solution in 2D.

west comet
#

Would that mean putting a 3D scene into the existing scene tree? Do you have anything you can point to on how that’s done?

merry bay
west comet
#

So how can I take my play area scene and project it onto a 3D scene?

merry bay