[gameprogrammer] Re: Looking for a good storage method.

Hi!
jclark wrote:
> Any ideas on ways to store a representation of the data without 
> storing a huge array of pixels?

The best idea which omes to my mind is to store a bound polygon, or 
polygons. Checking if a point is inside a polygon is not too slow (you 
have to check the horizontal line starting from the point and going left 
how many times intersects the polygon: odd -> inside, even -> outside. 
And with 10-20 points I think you can approximate the data pretty well.

Hope this helps.

-- 
Best regards,
Szasz Pal
----------------
Space Software Studio
http://www.spacesoftwarestudio.com


-- Binary/unsupported file stripped by Ecartis --
-- Type: text/x-vcard
-- File: space.vcf




---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: