How do I convert a partially transparent image into polygons?

Posted by user82779 on Game Development See other posts from Game Development or by user82779
Published on 2014-03-31T14:20:08Z Indexed on 2014/08/20 22:35 UTC
Read the original article Hit count: 120

Filed under:
|
|
|
|

I'm using GLEE2D, a level editor allowing me to import images, scale them, rotate them, and position them onto layers and export the data into XML format. However, it does not tell me objects' boundaries. I can calculate them, but only given the original image's polygons.

How do I get polygons of objects in a transparent image?

An example object (I outlined it):

example object; an astronaut meerkat

How would I turn the object, knowing the scaled size of the image, into polygons? Is there an algorithm for this? I'll use OpenGL to draw them.

© Game Development or respective owner

Related posts about algorithm

Related posts about 2d-physics