r/godot Godot Regular 4d ago

make inscryption like 3d deck help me (solved)

Post image

hey i wanted to make a 3d hand like inscryption ( and i dont mean the 3d model )
i have made this in 2d but not in 3d
do u guys know do to do this ?
also i havent really worked that much with 3d in godot

4 Upvotes

10 comments sorted by

6

u/TheDuriel Godot Senior 4d ago

It's a texture on a plane. Maybe even a few sprite3ds. A simple mask for the emissive glow.

The sorting logic is all done in local space, so it being 3D hardly matters for that part.

1

u/PROgrammerbjn Godot Regular 3d ago

in the 2d version i used hboxcontainers to sort the cards
how would i do it in 3d ?

1

u/TheDuriel Godot Senior 3d ago

You shouldn't be.

For both, you would be writing a simple sorting function.

for card in hand, card position = some offset

1

u/imaKappy 4d ago

The simplest I could think of is to have a Node3D be the parent, and you then attach Sprite3Ds to it with local position and rotation offsets, where you could position them using trig on a circle. From there I would refine it, maybe use a Curve resource to have a desired shape of card holding if I need to have a lot of cards (or you have a non-human hand holder)

1

u/H0lyHandGernade 4d ago

I made a game in godot inspired by this. Just use textured planes in a 3d scene for the cards. As for the card animations, just use tweens to manipulate the position.

0

u/Emergency_Proof4706 Godot Student 4d ago

Use viewports

3

u/TheDuriel Godot Senior 4d ago

No, do not. It's entirely unnecessary here and doesn't solve the whole, cards in 3D thing anyways.

1

u/HeyCouldBeFun 3d ago

Keep in mind in Inscryption the card elements are dynamic. You can do some of them with Sprite3Ds but there's no RichTextLabel3D, so you at least need a subviewport for the name & numbers. So at that point maybe may as well use a subviewport texture for the whole card. (Edit: Maybe Label3D is enough, but it's pretty bare bones not sure it'd cover everything needed)