PocketMatrix forums

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

GapiDraw roadmap, wishlists and graphics.

Unlike a lot of you out there my sole purpose for using GapiDraw has been to rotate the screen of my GIS application through 90 degrees clockwise or counter-clockwise.

With the coming shift to a licensed implementation I have a few decisions to make.

Since I am doing vector graphics I need the ability to draw lines, polygons and arcs. GD currently does the lines bit and I've converted my arcs to polylines but GD falls down severely in not being able to do line styles and filled polygons. The implementation of the clipping removed a lot of code that I had either developed, copied or begged of other developers. It was a welcome development but I wish I'd known it was comming, I could have spent the time more effectively elsewhere in my code!

So as a ( potential ) paying customer my questions for Johan are
Will line styles be implemented.
Will polylines be implemented.
Will filled polygons be implemented.
When?

For the rest of you out there .......

If the above are not implemented ......
Help! :?
Can I use MS Gapi code over the top of GD to get the MS functionality to draw on my GD surfaces.

Ian
Pejo Software - Per · 18 Sep 2003, 14:08 UTC
I sent our polygon fill routine to someone named Ian, was it you? If it was, did it not satisfy your needs?

I will offcause be faster if Johan could incorporate it into GapiDraw.
ian,

Unfortunately I cannot comment on future features on GapiDraw. I can however give you directions on how to implement them using GapiDraw 2.0x:

Will line styles be implemented.

You can very easily implement line styles by using a Cohen-Sutherland line drawing function and then just draw every n pixel. I guess this will take less than 5 minutes. If you need thick lines, you can use the Cohen-Sutherland line drawing function and simply call BltFast on every pixel (which can also function with line types).
I would say you could implement dotted / dashed lines with different thicknesses in less than 10 minutes.


Will polylines be implemented.

Just call DrawLine or the above function for each line. Since you can subclass GapiSurface this is also quite easy.

Will filled polygons be implemented.

Filled polygons could be quite faster if implemented in GapiDraw, so it may be there in a future version.
If we are going to start paying for Gapidraw it would be nice to see a roadmap.

Also do we know what support is going to be put in place for the paying customers?
Johan wrote:

Unfortunately I cannot comment on future features on GapiDraw. I can however give you directions on how to implement them using GapiDraw 2.0x:



:?: Could we have someone in this forum that can respond to many of our questions? :?:

My questions are simple...

Is this so-called 2.05 version going to be available sometime before Christmas?

If we are going to have to pay for it don't we deserve timely information about it?

Is there going to be a formal support policy?

Will the pricing be per version, subscription or hold it ransom to get bug fixes (as it appears to be now)?

Will the future upgrades just be speedups and bug fixes or will GapiDraw be enhanced to include more graphic primitives that in my opinion should be there before any thing else.

As an example:
1. Rectangles that can have more than one pixel width.
2. Filled Rectangles that can have a different border and interior colors.
3. Circles using 1 & 2 above.
4. Polygons using 1 & 2 above.

I realize that you want to sell the product and have fame and fortune, but I need to know that the product has a future and a committed development cycle that isn't based on "when the programmer is in the mood".

On August 26th 2.05 was announced, then it was announced that it would be ready on September 5th but changed to the 6th. Then you said you wouldn’t be back until the 16th and so we waited. Is this a “real” company or a bunch of people in a garage? Others on this forum might be comfortable with this level of support (it is free after all) but it makes me wonder what to expect after I start paying…

If you are not ready then call 2.05 a bug fix and keep the same license. Then when everything is ready and you’ve added more features the bump it to version 3.0 and have a grand and glorious roll-out!

GapiDraw is a great product and has the potential to be the top development platform for the PocketPC and the Palm.

And yes, I realize I'm going to be flamed to death for this post...
Johan wrote:
ian,

Unfortunately I cannot comment on future features on GapiDraw. I can however give you directions on how to implement them using GapiDraw 2.0x:

Will line styles be implemented.

You can very easily implement line styles by using a Cohen-Sutherland line drawing function and then just draw every n pixel. I guess this will take less than 5 minutes. If you need thick lines, you can use the Cohen-Sutherland line drawing function and simply call BltFast on every pixel (which can also function with line types).
I would say you could implement dotted / dashed lines with different thicknesses in less than 10 minutes.


Will polylines be implemented.

Just call DrawLine or the above function for each line. Since you can subclass GapiSurface this is also quite easy.

Will filled polygons be implemented.

Filled polygons could be quite faster if implemented in GapiDraw, so it may be there in a future version.


Those are rather glib responses. I too have the Foley book on my desk, that's where I got my line clipping and drawing routines from. But it took me more than 5 minutes to type out the full Cohen-Sutherland algorithm, hook it into GapiDraw, and have it integrated into my build.

A glib response from me might be, if it only takes 5 or 10 minutes, why can't it be put into GapiDraw? Surely such functionality is within the scope of the library.

But let's be serious software developers here. We all know that the expense of software is not in writing it, but in testing and maintaining it. Even if I get line drawing into my app, if the GapiDraw API changes at all, that's just more code I have to update and test.

But there's more to line drawing and styles than immediately obvious. Just like drawing rectangles, does that last row of pixels get drawn or not? With thick lines, in a polyline, how the joins are made does make a difference. Some libraries actually let you configure this behaviour.

I do echo some of the concerns voiced here. If the library is free, then we take what we get and like it or leave it. But if we are going to pay, then we need to see roadmaps and timelines, even if only rough. Companies that don't have that relationship with their customers, often find they do not have customers.
mlepage: Agree, typing it in will take some additional time... You can find it on the web for free however by just googling..

A mini-roadmap:
1. GapiDraw is being developed for the Symbian and Palm platforms. We are aiming at 100% API compatibility and are close in reaching that goal.
2. GapiDraw 2.05 is around the corner with some cool performance improvements and bug fixes.
3. GapiDraw 2.10 will be released after 2.05 and we have already code written for this release. The code will include some minor SDK changes which is why we are delaying it a bit.

I think we have exciting times ahead with GapiDraw! At the moment it is almost like the Palm is going the game approach and Microsoft the business approach (considering the poor video bandwidth of the latest Pocket PCs) - just look at the announced Zodiac www.tapwave.com and games such as Edge http://www.constantgames.com/edge/ and WarFare http://www.handmark.com/products/detail.php?id=182

At the moment we are quite the team and are working hard on getting GapiDraw to work on all PDA platforms (Palm, Zodiac, Symbian, Pocket PC, Smartphones) with one unified API.
I don't like the way nicholst put things, and I commented on it in another thread... That aside though, I tend to agree with his underlying premises.

As mlepage put it, when GD is free you take it or leave it as-is. Even then it could be argued that since you know people are building in some cases major products based on your library, then it would be a nice thing to do to answer all questions and provide a roadmap for where it's going. When money may be involved though, those things are required and expected of any good company.

Even is your support model continued to just be answering posts in this forum, I wouldn't really have a problem with it. I've eMailed johan personally a couple of times and he was always pretty quick to reply and help me out. For money I would expect a stated turn-around time, but absent that I've never had any complaints about his work in supporting developers.

The roadmap though is something we as a community I think expect if we're going to be asked to pay. For instance, I've been holding up my current project until 2.05 is released, but it's been pushed back twice now (I think it's been twice... it feels like it anyway).

As a professional developer, I certainly understand that release dates change and things come up. I have no problem with the date slipping. I do think however that we should be better informed on what the expected new date is.

In addition, we should be given a clearer picture of what the next version will look like in terms of licensing, functionality, support and everything else that goes into it. We really shouldn't have to keep asking questions as they occur to us, we should have a FAQ or something of that nature to go to. Again, when money is involved, this is expected, not an added bonus as it is when it's free.

At this point, probably two months after we first heard about 2.05, I still don't have a clear picture of the licensing, or what new functionality will be included, what functionality has changed, what bugs have been fixed or how support will work. And I don't have a clue right now when to expect to see it. None of these things make me want to pay for GD, even if I could afford it easily, and I suspect I'm not alone in that sentiment. Even if it was going to be 100% free as in the past, at least some of these things should be known based on nothing else but the fact that many people are depending on GD in their products. It's only fair, even when no money is involved, to get much of that info out, quickly and solidly.
fzammetti wrote:
I don't like the way nicholst put things, and I commented on it in another thread... That aside though, I tend to agree with his underlying premises.


Don't care what you like...

fzammetti wrote:
Even is your support model continued to just be answering posts in this forum, I wouldn't really have a problem with it. I've eMailed johan personally a couple of times and he was always pretty quick to reply and help me out. For money I would expect a stated turn-around time, but absent that I've never had any complaints about his work in supporting developers.


:? Did you post the question and solution here so it might help others?
:?

Richard
Richard Nichols, you do have some good points, and it would do you well to phrase them a little less sarcastically, so as to be taken more seriously. I offer this only as advice, please don't flame me for doing so.
Johan, I asked elsewhere in these forums about the details of porting to Palm, but didn't see an answer.

So GapiDraw will have (close to) 100% API compatibility, but what about other aspects of Palm development?

Like the fact that there is no filesystem, only databases and records? Memory handles that must be locked and unlocked? Single byte characters?

Are we just going to have to handle all of that ourselves? What will a Palm GapiDraw application look like? Or a GapiDraw application that works on both Palm and PocketPC?

If you are working on a Palm port, you must have at least thought about these issues. Care to comment?
nicholsr · 19 Sep 2003, 18:54 UTC — Apologies....
mlepage wrote:
Richard Nichols, you do have some good points, and it would do you well to phrase them a little less sarcastically, so as to be taken more seriously. I offer this only as advice, please don't flame me for doing so.


No problem, just had a lot of built up frustration about GapiDraw and the support. I'm back too my normally semi-calm mode.

I've sent another request for permission to use 2.04 in my products and figure I'll have to move back to PocketFrog to get things done.


Now, GapiDraw is a much better product than PocketFrog but at least the source is available for PocketFrog.

Again, I am sorry I went into a rant mode!

Richard
nicholsr wrote:
And yes, I realize I'm going to be flamed to death for this post...


You're lucky, fortunately ppl on this forum is far more educated than you so your chances to get flamed are low.

Personally my wish list is smaller dll sizes and a "single named" dll for future versions (I mean gapidraw.dll, no more gd2XX.dll filling my pocket pc). My wishes are opposed to yours, as lines, circles and things like this will just bloat the dll with things I won't use, however I'm not going to put Johan and his team in front of a firing-squad if they don't do what I wish.
I would imagine that future roadmaps for Gapidraw would be based heavily upon what the paying licencees desire in the API, with input from the hobbiest users weighed carefully to ensure everyone's needs are met.

I'm sure that Johan and Viktoria Institute will do everything possible to keep GapiDraw at the forefront of handheld graphics APIs.
Kak wrote:

You're lucky, fortunately ppl on this forum is far more educated than you so your chances to get flamed are low.

Personally my wish list is smaller dll sizes and a "single named" dll for future versions (I mean gapidraw.dll, no more gd2XX.dll filling my pocket pc). My wishes are opposed to yours, as lines, circles and things like this will just bloat the dll with things I won't use, however I'm not going to put Johan and his team in front of a firing-squad if they don't do what I wish.


The single name would be nice. As far as graphic primitives they would just make a more rounded product. I use them but I realize not everyone does.
If we can draw a rectangle is it that much more effort to allow use to define the size of the border?

As for Johan and his team I for one am impressed with the quality of their work.

Kak wrote:
You're lucky, fortunately ppl on this forum is far more educated than you so your chances to get flamed are low.


What do you know about my education....
I'm a dullard because I don't like being led around for weeks? Or because I get sarcastic when I get fustrated.

I made a business decision and each day I'm left floating tightens my delivery time.


Richard
nicholsr · 19 Sep 2003, 19:14 UTC — Good questions!!
mlepage wrote:
Johan, I asked elsewhere in these forums about the details of porting to Palm, but didn't see an answer.

So GapiDraw will have (close to) 100% API compatibility, but what about other aspects of Palm development?

Like the fact that there is no filesystem, only databases and records? Memory handles that must be locked and unlocked? Single byte characters?

Are we just going to have to handle all of that ourselves? What will a Palm GapiDraw application look like? Or a GapiDraw application that works on both Palm and PocketPC?

If you are working on a Palm port, you must have at least thought about these issues. Care to comment?


I just figured they knew the problems but didn't bother to ask...

Thinking ahead is always a good thing!

Richard
Pejo Software - Per · 19 Sep 2003, 20:06 UTC
I don't think a single name dll is a very good idea. It might not be necessary to change the name if there has not been any changes to the API though.
Even if there has not been any changes to the API I still think that the new version shall be named differently than the new one since the applications released probably has been tested against a certain version.
Pejo Software - Per wrote:
I don't think a single name dll is a very good idea. It might not be necessary to change the name if there has not been any changes to the API though.
Even if there has not been any changes to the API I still think that the new version shall be named differently than the new one since the applications released probably has been tested against a certain version.


That's a good point, I was going along the lines of Win32 dll's that are safe as long and you always add new interfaces to the bottom of the export list.

With PPC's that might not work..

Richard
Pejo Software - Per wrote:
I don't think a single name dll is a very good idea. It might not be necessary to change the name if there has not been any changes to the API though.
Even if there has not been any changes to the API I still think that the new version shall be named differently than the new one since the applications released probably has been tested against a certain version.


well, I'm a newbie developer but I haven't had any problems with fmod dlls, which use the same name for different versions.

I don't say I won't have problems with my games and future fmod dlls, but unless you make 8 MB games (which is not my target, right now) where the dll sizes are insignificant, having 400 kbs less in device (having the right dll with common name) do make a difference for the customer.

IMHO same name-different version dll would be very profitable for gapidraw developers.
I think when the public interface does not change, subsequent versions should use the same DLL name as previous versions. This is much more in keeping with the whole idea behind using DLLs. If there are no interface changes (aside from additions which are fine), then dropping in a new DLL should be transparent.

Take for instance the blt bug in 2.04... If the DLL was named gd.dll or something, then assuming no interfaces changes, you could just drop in the 2.05 DLL with no problems. Without this, you need a recompiled app to load the correct DLL, which isn't terribly nice to do to people.
Pejo Software - Per · 19 Sep 2003, 21:40 UTC
OK I dont't know which is best and how much a customer care about the extra memory usage with different version named dll's vs the risk of breaking another app when installing a new one. Another factor is how difficult it is to have the dll backwards compatible and how much extra memory use that that will add. I guess this is up to Johan.

If you would like some more background info on this you could search the web using "dll hell" as keywords.
Your right, it of course can cause problems either way. It ultimately comes down to the developer doing a good job and not changing functionality in ways that break things. This is difficult even for the best developers, it's no easy task.

For the record, the whole concept of DLLs were a great idea back in the Windows 3 days when memory was at a premium. Today, even on a pocket device with "limited" memory, the benefit usually is outweighed by stability of not sharing libraries.

This is why I am an advocate of having all required DLLs in the app's directory. That removes the possibility of problems regardless of what is done in future releases.

That being said, I still prefer DLLs have the same name when the public interface doesn't change. Yes, it can break apps if not done right, but it's also easier to deal with sometimes and since people are still worried about memory on pocket devices, it alleviates that problem to some degree.

In the end, I guess it's not that big of an issue in my mind. I'm certainly not going to complain either way, I can cope no matter what is done in this regard.
Like the fact that there is no filesystem, only databases and records? Memory handles that must be locked and unlocked? Single byte characters?

Are we just going to have to handle all of that ourselves? What will a Palm GapiDraw application look like? Or a GapiDraw application that works on both Palm and PocketPC?

If you are working on a Palm port, you must have at least thought about these issues. Care to comment?


The above is not really correct... Palm has a file system (actually two, the internal and full Fat32 compatibility for SD cards).. Later versions of the OS fully supports malloc and free. OS5 devices have large amounts of dynamic memory for allocation (where previous versions used one large heap for both files and memory allocations)... single-byte characters are not an issue and can be solved by defining TCHARs...

There are some issues with the current OS5 release (such as the need to create armlets) but there is not really (any longer) that much difference in developing for PALM OS5 than Pocket PCs...

//Johan

single-byte characters are not an issue and can be solved by defining TCHARs...


I am under the impression that TCHAR and related functions are a Microsoft facility, defined in a Microsoft header file, tchar.h.

So does that mean we have to duplicate tchar.h? Is that possible given the copyright on that file?
I suppose that it is ok to write your own defines for TCHAR:s and whatever functions from the windows API that you want. Why shouldn't it be ok? Do you mean that you can copyright typenames? If that is the fact, my guess is that a lot of programs are breaking copyright laws. Just curious :)
I have no idea. IIRC the header file has a Microsoft copyright on it.
You can safely define TCHARs if you want to - which is exactly what we do in GapiDraw for Symbian. Microsoft has not copyrighted the term "TCHAR". If you look at the source code for other cross-platform projects such as Unreal Tournament you'll find definitions for TCHAR's there as well.