The first thing a card game needs is… cards.
And why in 3D? It would be easier to do it in 2D, but to have more options in terms of effects and also to differentiate from the rest I decided that my card game would be 3D.
I was going to need a 3D editor, and in my modest opinion Blender is unbeatable in quality / price.
Once installed, in an empty scene, I added a plane using the menu ‘Add > Mesh > Plane’.
To make it easier to handle, I set the top camera by pressing ‘7’ on the numeric pad.
There is no standard size for a card. A Bridge card measures 57.15 x 88.9 mm, while a Poker card measures 62 x 88 mm. This size is known as B8 in ISO 216. Since it is the best known, it is the size I will use.
However, I am not really interested in the size itself, but in the ratio between width and height or aspect ratio. In the case case of a Poker card is 0.7 (62 / 88).
To achieve that aspect ratio, with the plane selected, press ‘S’ and then ‘X’, and typing ‘0.7’ (62 / 88) will get the aspect ratio I’m looking for.
To round corners I use the ‘Bevel’ modifier.
And to give it a little thickness the modifier ‘Solidify’.
Now I applied all the transformations pressing ‘Ctrl+A’, so that the scale of the final geometry is 1.
And the modifiers.
It was time for the materials. But first I created some UV coordinates in the ‘UV Editing’ tab and selecting a cube projection.
As its name indicates, this tool creates the coordinates by projecting a cube on the model.
It may not be the best option for rounded edges, but it is the easiest one. You can adjust the coordinates by hand using the window on the left.
In the ‘Shading’ tab, I created three materials: ‘FrontFace’, ‘BackFace’ and ‘Border’. I selected the front face and the ‘FrontFace
the ‘FrontFace’ material, and clicked the ‘Assign’ button to associate them.
With ‘CONTROL + 7’ I switched to the back view and performed a similar operation.
To assign the border material, select the two faces and invert the selection.
Now it was only left to export to FBX to the Unity project.
The only change I made in the export options was in ‘Apply Scalings’, which I set to ‘FBX Units Scale’ so that in Unity would export the scale correctly.
Until next time…
stay gamedev, stay awesome!
Just write an email to fronkongames@gmail.com