PocketMatrix forums

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

GapiDraw 2.02 known issues

GapiDraw 2.03 will be out on Monday (consider 2.02 a "release candidate"). Please test it as much as you can so that we finally may have a stable version with none (or at least very few) issues.

(1) Rectangles draw incorrectly (bottom right is offset by 1 pixel)

The rectangle function in GapiDraw 2.02 now calls the line function to draw itself (to enable clipping on all lines). Unfortunately the coordinates are no longer exclusive. Fixed in the upcoming 2.03 release.

----------

(2) Drawing lines outside surface boundaries will not clip correctly

GapiDraw uses the 1D Sutherland Hodgman clipping algorithm as implemented by Duvanenko, Robbins, and Gyurcsik - SH(DRG). While faster than the Cohen-Sutherland, it was unfortunately not implemented correctly. Fixed in the upcoming 2.03 release.

----------

(3) Blt with rotation center and clipping does not work correctly

I can not verify this. Rotation angle and rotation center works perfectly on my setup. Anyone care to illustrate this issue?
bluescrn · 17 Jul 2003, 11:15 UTC — GapiDraw 2.02 known issues
sbl wrote:
(3) Blt with rotation center and clipping does not work correctly

I can not verify this. Rotation angle and rotation center works perfectly on my setup. Anyone care to illustrate this issue?


I'll try this out tonight (as I first reported the rotation centre bug...), both with the new Gapidraw clipping, and my attempt at rotated clipping code (which worked on the PC build, but not on a 3870)

(Hopefully I'll be able to get my wi-fi card working with eVC again... it can be a real pain getting it to activesync, but if/when that works, it works great...)
I've tried my clipping code from this thread:

http://www.pocketmatrix.com/forums/view ... hp?t=11780

with 2.02, and it now works correctly on my iPaq 3870 (at least with the small square sprite I tried it with) :)

I'll try it with GapiDraw clipping next...
Actually, there is a very slight 'wobble' as it clips - looks like probably a fixed-point accuracy thing....
(both posts above were me, it somehow didn't auto-login...)

Anyway, I've just tried the Gapidraw clipping.

On non-rotated blits, it's fine (including scaled blits). But my rotated sprites don't appear at all :(

So:

- The rotationcentre bug appears to be fixed :)
- Rotated blits can be clipped, using the code in the thread mentioned above :)
- The new Gapidraw 2.02 clipping doesn't seem to work with rotated blits :(
That is the same problem I was seeing Johan. I still dont know why the sample works but Pocket War is broken. Could it have anything to do with the fact that my program is doesnt use your application code? Maybe there is something you are doing on surface initialization I am not?
Had the same experience. As soon as I turn on clipping and the rotation flag of Blt the image does not appear anymore. It works fine when blitting is off though.
If possible, please try to help me out by creating a "minimal" application with this issue.. I really, really want it to be resolved in 2.03. And I really want to release 2.03 on Monday.

I am going away now until Sunday (vacation)..
Ok, the rotation issue is fixed in 2.03. Thanks a lot for reporting in!
Great, thanks Johan. Sorry I wasn't more help on that one. What was it?
hi,

it was simply that I always assumed that destination rectangle.topleft was 0 (the simple demo used NULL as rect).
Hehe, that is why the little test app I wrote worked as well. Here I thought I was just going insane.