PocketMatrix forums

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

GapiDraw 2.03 released!

<a href="http://www.gapidraw.com">GapiDraw</a> - The Graphics SDK for Stationary PCs, Smartphones and Handheld Computers was released today in a new version!

GapiDraw 2.03 is a bug fix release addressing several issues introduced with the new clipping algorithms, and it is recommended that all current users upgrade to this version.

Read more at http://www.gapidraw.com
Cool!!! Second person to d/l... can't wait to test it out. Keep up the good work.
linmias · 20 Jul 2003, 19:47 UTC — G o o d
Wow, that was fast...

"May the force be with you"
Thank you Johan and others. This has made a big difference, in fact its bloody marvelous :D
Johan, I noticed that the rotation issue I sent you a sample project for is still present. Any update on that? If you suspect the problem is my code, that's a good enough answer, but I'd like to know your thoughts at the moment on the issue...
InexorableTash · 21 Jul 2003, 01:46 UTC
I think I'm seeing a bug with the new BltFast pixel shaders in 2.03, a regression from 2.01b (last version I was using).

Old code (2.01b):

Code:

RECT rcBar = { 0, cy, cx, cy<<1 };
GDBLTFASTFX gbffx;
gbffx.dwColorizeColor = RGB( 255, 0, 0 );
gbffx.dwColorizeOpacity = static_cast<int>( 255 - ( 255 * m_player.m_shieldStrength ) );
gbffx.dwOpacity = c_dwHUDOpacity;
hr = surface.BltFast( x, y, &m_surfHealthBar, &rcBar, GDBLTFAST_KEYSRC | GDBLTFAST_COLORIZE | GDBLTFAST_COLORIZEOPACITY | GDBLTFAST_OPACITY, &gbffx );
Assert( SUCCEEDED(hr) );


This colorizes a shield strength indicator from blue (color in the surface) to red. m_shieldStrength varies from 0 to 1. At 1 the colorization effect (dwColorizeOpacity) should be off; at 0 the colorization effect should be full.

New code (2.03):

Code:

RECT rcBar = { 0, cy, cx, cy<<1 };
GDBLTFASTFX gbffx;
gbffx.dwFXcolor1 = RGB( 255, 0, 0 );
gbffx.dwFXopacity = static_cast<int>( 255 - ( 255 * m_player.m_shieldStrength ) );
gbffx.dwOpacity = c_dwHUDOpacity;
hr = surface.BltFast( x, y, &m_surfHealthBar, &rcBar, GDBLTFAST_KEYSRC | GDBLTFASTFX_COLORIZE | GDBLTFAST_FXOPACITY | GDBLTFAST_OPACITY , &gbffx );
Assert( SUCCEEDED(hr) );


Now, one of two things happens. If dwFXopacity is 0 then the BLT is fully transparent! If dwFXopacity is > 0, then the call to BltFast fails with E_INVALIDARG.

Everything else in my game converted flawlessly.

Silly error on my part, or a glitch in GD2.03?
#pragma comment(lib, "gd202.lib")

in some of the samples (TileMap at least) should probably be changed :-)

Gd.net 203 will be out tonight.

Sean
InexorableTash: Yep, it's a glitch in gapidraw..
Mr. X.: I'll wrap up 1.04 today so you could use that for the next .net release... No new features from 1.03, just a small bug fix...
1.04 or 2.04?
:) 2.04..

InexorableTash: I'll wrap up a 2.04 release for you to test if you have time.. I'll send it to you directly..
I can't keep track :( It's changing so fast i thought you had gone around the clock.

As soon as you have a version out for more than two days without updating, i'll do a new release of gd.net 2.0x :)
Mr X: Thanks..
fzammetti: I will do my best to fix this one as well...
It might be a good idea to start setting up some basic test programs that everyone could run on each release candidate to both test new features as well as regression test. Something providing a pass/fail test for each section along with draw times might go a long way to saving Johan's sanity. :wink:
I don't really have a product that will stress GapiDraw - but if you need to use my PPC (Jornada 568) to run some test software that you have created then its yours to command.
InexorableTash · 22 Jul 2003, 05:59 UTC
Sure, bounce me a copy of the DLL to test - just the XP LIB/DLL pair is fine: inexorabletash@hotmail.com
Ok.. Basically there shouldn't be any critical bugs in 2.03.. So it's perfectly usable. It's just that all bltfast effects return invalidparams, and using an fxopacity of 0 does not render anything.

I have also adjusted the rotation in 2.04. It is now pixel perfect and works wonderful on 90, 180 and 270 degree rotations. It was a bit of pain to get it to work correctly with clipping etc, but I have tested it seriously and am happy with the results.

Finally, the clipping of stretched blits is also now pixel perfect in 2.04. No more fixed point wobbles...
InexorableTash · 22 Jul 2003, 16:45 UTC
Just confirming - 2.04 does indeed fix the issue with BltFast and dwFXopacity.
Great! :D