PocketMatrix forums

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

FillPoly error?

Hi everone,

I am new to the PocketFrog library. So this me be some silly questions:

First question is about FillPoly. I have managed to create a star, but when I rotate it, the empty spaces between the points of the star are some times filled too. In other cases it doesn't draw (parts) of the point. Is this a bug or am I doing things wrong?

I attached a screen capture to illustrate my problem.

Second question:
In documentions I read you can disable the PocketFrog splash screen by setting:
m_config.splashScreenTime = 0;

This throws an error during compilation. splashScreenTime is not a member of Config.

Third question:
Does PocketFrog support VGA (640*480)? And how do I enable it?

Thanks in advance for your answers.

Richard
Attachments:
frog01.jpg
I think the poly function does not work with polys that have interior points. I forget what the actual term is... You'd need to draw each star point separately.

The splashscreen option was removed after 0.7, when PHal was incorporated.

edit: It's called concave polygons
I remember when I wrote that function... it was based on some old Commodore 64 code I had written in the mid 80's... It REALLY needs to be rewritten if people are actually going to use it.

(FYI, I added the two polly functions with the intent of doing an Elite-type game, but I was thinking of doing it with solid polys instead of a pure vector version... that project never went anywhere, so I never bothered to update these functions)
I wouldn't re-write it... I would just add a function to tesselate a concave polygon.

http://www.codeproject.com/Purgatory/po ... lation.asp
Thanks guys for your quick answers.

So I need to update the fillpoly function myself? Either by splitting my objects or updating the fillpoly routine. When I have a new fillpoly that works. I'll let you know.

About the splashscreen. The documentation writes set member to zero, or create a SplashScreen(). In both cases the 'PocketHAL 0.7.3' appears. How can I replace that one with my own?

And what about VGA-support?

Tx Richard
To get rid of the 'PocketHAL 0.7.3' banner requires a donation to Thierry (look at droneship.com).

I haven't kept up with the VGA stuff, but I don't think it's done yet.