We have a flash card game featuring a table in simple 3D perspective. We have poker chips which will be dealt out to various locations on the table. These chips will be flash symbols and need to have scale and skew applied dynamically depending on their location on the table to achieve the effect of matching the table perspective.
To make it slightly more complicated the chips will also be dealt in stacks of 1 to 10 chips. The bottom chip will feature a shadow object beneath it. The higher chips in the stack will need to have a Y axis offset which will also be different depending on table location. For example, chips in stacks closer to the camera will require more Y offset in a stack - chips further away from the camera will be smaller and will require less offset.
We will provide a flash file which includes the chips/table graphics and some additional 3D renders of chip stacks to use as guides to match the perspective accurately. These images will help to make the requirements more self-apparent.
I am visualizing a simple bit of code which takes in the following variables:
Start_x - the starting co-ordinates for the chip
Finish_x - the resting spot for the chips
Stack_number - 1st to 10th chip in the stack - if it's the 1st then a shadow object is included beneath, otherwise offset is applied to achieve stacks
Should be a relatively simple task, but we need it done well and as quickly as possible.
Finally we need it set up with a simple demo to show it in action - a short flash movie showing a few stacks being dealt to different spots on the table.