PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

fill

I want to fill polygons drawn to a surface. Can anyone give me some ideas on how to go about this.

That is presuming that the function is not part of the upcoming 1.1 release ( oh please, please, please! )

TIA
Ian
Pejo Software - Per · 21 Oct 2002, 15:34 UTC
We have made some code for this that we are using for our next game. It should be possible to send you the code if you are interested. It is not however as optimised as it could be. If Johan were to incorporate polygon fill in GapiDraw it would be faster. I asked Johan about this for about a month ago and his answear was (as I understood it) that he would consider it for versions after 1.1.
Conan · 21 Oct 2002, 16:24 UTC — Polygon filling
you may also find what you need in the asteroids source available from the PocketFrog website.
I've never seen any Asteroid source on my web site...?
Conan · 21 Oct 2002, 19:15 UTC — yeah yeah
I was in a hurry and did not check to see if that link still existed. I stand corrected as it's not there anymore & possibly was never there however if that's so then how did I find it there? Is this a cyclical time travel paradox or something :)

The article & source code with the filled polygon class is at this link:-

http://www.codeguru.com/ce/asteroids.html

Be aware that this uses a very old version of PocketFrog so don't use it as a PF learning resource.
No problem Conan, was just pointing it out.

Yeah, that Asteroid game is using an old version of PocketFrog that has a somewhat different API.