#Best way to render cards in a card game

9 messages · Page 1 of 1 (latest)

tidal grove
#

I am working on a card game and I want to dynamically render Text/Numbers onto cards and also put the card texture together from a card frame and an artwork. I was looking for some way to layer multiple textures on top of each other and then render text on top of that and my current idea is to have an entity per card that has a 2d camera as a child and renders the card to a texture, which is then used to render the card in the 3d environment of the card game. I imagine, however, that having a separate camera for each card is not a very efficient or elegant solution, so I wanted to ask for alternative approaches.

marble badge
#

Have you taken a look at Cart's entry for the last jam?

#

He made a little card game for it!

tidal grove
#

I haven't, but I'll take a look : )

#

So you essentially just place everything on top of each other (as children of the card) with a tiny offset in the z-axis? That seems a bit hacky to me still but if it works, then I'll take it over my approach.

#

Thanks for the hint : )

marble badge
#

Yep, that's the basic idea 🙂

wild pendant
#

decals would be a nice engine feature to have

#

but from what I've heard they're actually quite tricky