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.
Card game (showing card)
-
- Posts: 54
- Joined: Thu Oct 25, 2007 1:38 pm
- Location: Montreal, Canada
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
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
Travis
-
- Posts: 54
- Joined: Thu Oct 25, 2007 1:38 pm
- Location: Montreal, Canada
Yes you are right....
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.
I can do anything with it in a 3D Space.
I will do my game in 3D.
Thank you a lot.