Research – Tracking Colour In AS3!

During my research process I decided that the table will support up to four players in games. I also decided that solid colour balls would be more easily tracked and therefor tracked faster. I will use a red, yellow black and white ball in four player games. I am looking into different exsisting methods of tracking colours in Action Script 3.

One such method is shown above and can be found on Chris Tesos’ blog. This works by capturing the camera data to a BitmapData class. When you click it defines the current hex value of the pixel you have clicked and saves it as a variable. Every frame the program searches for that hex value in the BitmapData object. This is a very efficient way of tracking and I will continue to research this more. The environment will be controllable in the interactive pool table, for instance there will only be one object that is of a red colour ect. Due to this I can increase the tolerance of tracking my colours which will allow me to track the ball with much better consistency than in the demo shown here.



Comments

No comments yet.

Add Yours

  • Author Avatar

    YOU


Comment Arrow



About Author

admin

This author has not yet written a description. Please give them some time to get acquainted with the site and surely they will write their masterpiece.