Card game (showing card)

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Danny Gilbert
Posts: 54
Joined: Thu Oct 25, 2007 1:38 pm
Location: Montreal, Canada

Card game (showing card)

Post by Danny Gilbert »

Hi guys !

What is the best way (technology) to represent CARD in a card game ? For now I use a Billboard object (instance) for each card but I want to do some special effect like flipping and turning the card... something like 3D card but you know, the card object is something "thick", very small depth.

Do you have an idea ?

Something else, when I show the card (my billboard), the only way I found is to use different Z-value in a 3D world. My screen is like X-Y coordinates and my table is on the far-z-value and I use different Z values for each card...

Thank you for your interest and IDEA.
If you have an example of card game, It will be appreciated.
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Why not just make 2 quads back to back?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You could create your own CCardSceneNode that is a rectangular cuboid that is very thin. You'd just have to write a constructor that was very similar to that of the CCubeSceneNode. You could copy/paste the the entire implementation, and then rename the class. The texture coordinates and vertex positions would need to be different, but this would be the simplest thing to do.

Travis
Danny Gilbert
Posts: 54
Joined: Thu Oct 25, 2007 1:38 pm
Location: Montreal, Canada

Yes you are right....

Post by Danny Gilbert »

Finally I did It. I have created a real CARD 3D-Mesh (rectangular form which is very thick).
I can do anything with it in a 3D Space.

I will do my game in 3D.

Thank you a lot.
Post Reply