PocketMatrix forums

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

Next Priorities

As all of you know by now, I've been away "for a while" =)

I have a few bug reports to investigate:

1) PocketHAL on the Nokia 6680 (I just received my phone and should be able to investigate this one).
2) PocketHAL leaking memory when allocating surfaces (unconfirmed yet).

I would like to know what people really feel is important next (proper VGA support, Palm support, OpenGL|ES support, etc).

Is PocketFrog still relevant to you? I know it isn't in the best of states right now.
Good Lord!
Thierry, you are again with us! And of course PF "is still relevant"! In my opinion it's better to develop PF to make it run possibly on other platforms rather than adding new features like 3D :wink: But I would like to have VGA support for my still up-up-coming !PyroManiA! game, if it is not very hard then (my opinion) VGA could be primary task :)

Once you said about converting the 2byte Pixel to some other class, because of 1 additional byte for alpha channel (if I remember correct). Now I do not think that it is very necessary - in my game, like many others, I use only a few sprites with alpha blending masks for them - so it wouldn't take much memory.
The return of the King(c) :).

Welcome back, Thierry!

I'm up for multiplatform PocketFrog, but I don't really believe it :).
I don't think VGA is an issue yet - good game still good in QVGA, and still there's not that much of a VGA devices. And they aren't that fast to blit 4x graphs :).

Ain't there too much smileys? Well, anyway..
Hey Thierry, good to see you back!

I personally have not been terribly active in the PocketPC world over the past few months... I've been side-tracked with a number of other projects.

That being said, I do have some things in the pipeline that I was planning on doing with PF/PH.

IMO, I'd prefer to see PF develop more. For myself, I'm much more interested these days in writing the game, or the app, rather than the engine. I'm more interested in the library being able to do more for me right away, not after I write my library on top of it.

For instance, it is of course great that you can write a whole graphics libary on top of PH. Plenty of people do it, and that is powerful indeed. But for me, I'm not looking to write that library any more (once, but not now). Even if a function to draw a filled circle isn't a terribly big deal, if PF already does it for me, that's once less primitive I have to develop before I get to the actual game or app code.

So, count me +1 for developing PF more. I find it to be extremely relevant, even moreso than PH itself for me. I don't think it's in terrible shape now either, but certainly it could be improved.
Welcome back, Thierry.

I'd put VGA support ahead of 3D. Native support for alpha layers would be fantastic. I think several of us have implemented our own schemes so far, but I'd like to see the speed increase that would come with having it part of the library. 3D goes third on my list, as that opens a whole new realm of possible development.

Finally, once that's all in place, then Palm.

Frankly, I still think PF is a killer library, and without a doubt the easiest one to pick up. I should add though that I still prefer .7 over .8, even if it's not as fast without PHAL. I'm sure I'd change my mind in a few seconds if I were writing a 3D game.

-John
Presto wrote:Frankly, I still think PF is a killer library, and without a doubt the easiest one to pick up. I should add though that I still prefer .7 over .8, even if it's not as fast without PHAL. I'm sure I'd change my mind in a few seconds if I were writing a 3D game.


Why do you prefer .7 over .8?
Hi Thierry, My priority is PocketPC including Smartphones however I presume that the new O/S will really make it more like one version again. I'm just beginning an isometric game and won't buy a VGA device till the new OS is out, say September time.

Re: version .7 -v- .8 I have only used .7 and don't know if the .8 HAL version has as wide a platform support. Happy to use the HAL version if people can tell me that it runs on most devices.

In addition seeing the above post I assume the poster likes having full source code as it's always a worry when you have only a .lib that the system stops development & the end user coder is stuck.
Pejo Software - Per · 14 Jul 2005, 10:36 UTC
For me the priority would be:
1. Proper VGA.
2. Palm.
3. Device compatibility - are there any issues?
3. OpenGL - DirectX.

Since I only use PHAL I don't care about PF.

Then I would need some motivation, can you provide that? I have not done anything on the game I am developing in the last 8 months. The task ahead is porting my communication layer to Symbian and I feel this was much easier in Win32.
Thierry wrote:
I would like to know what people really feel is important next (proper VGA support, Palm support, OpenGL|ES support, etc).

Is PocketFrog still relevant to you? I know it isn't in the best of states right now.


Its still relevant for me mainly because I'm a creative type and prefer designing games to writing code that other people have already written lots of times before. I'd love to see PocketFrog grow as a game coder's library, but at the same time I'd hate to see it become bloated.

I think VGA support should be priority one, and Palm OS support next. These two really open up the target platforms for the engine. OpenGL support would be good, but I'm not sure if I'd ever use it.

With the VGA support, it would be great if the engine was resolution independant. Would on the fly scaling of surfaces to match the target resolutions be possible and/or of benefit? Seems like the stretchblit function does something like this already.

For me personally I'd be interested in a good sprite engine built in. My own sprite engine is a bit patchy and collision detection is pretty primitive. I'm sure a sprite engine, with things like pixel perfect collision detection, would help a lot of other beginners too.

Rich
I'd prefer that you concentrate your efforts towards PocketHAL. Getting the VGA support squared away would be a great first priority.

Regarding PocketFrog, I think it's good enough. It could use some better text functionality, but other than that I think it is essentially feature-complete for it's niche.
Thierry wrote:Why do you prefer .7 over .8?

It's like Conan said... Having full source code means that if anything goes wrong, even 5 or 10 years from now, I'll be able to fix it. Since PHAL is the lowest-level bridge between the device and the software, I prefer not risking my software failing due to a new hardware change that PHAL is incompatible with. Sure, the speed increase over GAPI is substantial, but compatibility and supportability sit higher on my priority list.

-John
1. VGA
2. VGA
3. VGA

:-)
Just as Presto said. I hate to recive bugreports about lidraries i don't have sources for.
Thierry, what difficult task you give to us !!!
My list is for PocketFrog since i'm using the version 0.7:

1) OpenGL|ES
2) VGA
3) Palm
4) Documentation and more samples (what happened with the content of the PocketFrog Developer's Corner formerly hosted by fzammetti? Someone have it?)
Conan now has all that content and (hope I'm not speaking out of turn!) plans on hosting at least some of it. Dunno when or what parts exactly.
Hi Frank, I have had a look at the docs but have not had time to organise getting them up on my site. They will get there sometime soon when I get free time.

Am I right in thinking that the pre-HAL PF can be modified by us developers to work with VGA? IF so and someone has done this can they post the lines in PF where the screen res gets tweeked so I can add to the docs.
Yes, in fact 0.7 works very well in VGA with some changes.
Sounds good Conan... I think there are a lot of people interested in seeing that content available online again, so your gonna be a hero I suspect :)

Yep, as far as pre-HAL PF supporting VGA, I don't think it would be too tough. Maybe DaGGeR would be willing to post his changes?

But, even assuming the changes aren't too great, I'd be concerned about compatibility issues... Thierry can answer this better than me of course, but just based on the fact that PF was written at a time when VGA on a PDA was barely a twinkle in some engineer's eyes, I wonder if there aren't some hidden problems lurking in such a mod. Maybe there aren't, but I'd want to see some tests on a wide range of devices before I felt confident.
"tweaked pf" doesn't support VGA - Its just VGA aware, it's still QVGA with every pixel is doubled in size. Or is it just what you want?
The main difference is replacing GXBeginDraw with

RawFrameBufferInfo rfbi;
HDC hdc = GetDC(NULL);
ExtEscape(hdc, GETRAWFRAMEBUFFER, 0, NULL,
sizeof(RawFrameBufferInfo), (char *) &rfbi;);
ReleaseDC(NULL, hdc);

http://msdn.microsoft.com/library/defau ... reness.asp

Our code is VERY messy, ill try to clean it and post here when i'll have free time.
DaGGeR wrote:Yes, in fact 0.7 works very well in VGA with some changes.
I'd be interested in seeing this too, DaGGeR, if it's not too much trouble.

Out of curiosity...
1) What's the minimum SDK it works with? 2002,2003...
2) Do you need to add the line to the resource file to make it "vga aware"?
3) For stylus input to work at 480x640, do you need to run in TrueVGA mode?
4) Are there any changes required by the PF framework itself, perhaps in game.cpp after GetSystemMetrics?
5) Is it necessary to compile with eVC4?

I've only tried tinkering with a couple of things, which didn't work unfortunately. Any help would be appreciated. (And might make it easier for Thierry to add it to 0.8 also... :))

-John
Hi, Presto
here is answers step by step
1) I've tested it on 2003 SDK with subsystem version set to 4.21
2) yes you do need to set HI_RES_AWARE
3) i didnt't done input yet only changed gfx %)
4) many changes was made in internals of pocketfrog GAPI lib and now it's a MESS... i'm not a good coder, so maybe Thierry can create a new VGA driver for PF, using GETRAWFRAMEBUFFER instead of GXBeginDraw ?
5)Yes, it is
So from what I understand:

1) VGA support for PocketFrog is highly desired. This should be trivial to add, I'll look into it next week.

2) PocketFrog using PocketHAL isn't a highly desired feature (because it hides code).

3) Fix ATL compile issues with Smartphone SDK.
Thierry wrote:
2) PocketFrog using PocketHAL isn't a highly desired feature (because it hides code).

But only on top of PocketHAL it still a damn fast library!
Personally, I wouldn't like to use VGA feature in a slow library. VGA is by default 4x slower :(

I saw the fps in the thread about alpha PocketHal VGA version.
What would be to PocketFrog without PHal running VGA?
Even slower, right?
Well, if u use dirty alpha calculations like GapiDraw do, your alpha will be fast enough even on VGA
I meant not "blitting sprites with alpha channel" but "alpha version of PocketHal that supports VGA" or this thread:

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

Without PHAL PocketFrog would be slower, right? and using VGA even 4x slower than that, this is what I meant.

That's why I think that PF should be still PH based :wink:

I'm for PH'ed PockedFrog also because of my engine. It is isometrical engine - I need to draw many of sprites in Z-order on top of each other - that is lots of drawing!
Thierry wrote:2) PocketFrog using PocketHAL isn't a highly desired feature (because it hides code).
I believe this depends on the application. For puzzle, board, card, etc, where drawing speed isn't going to kill the game, using GAPI is just fine. It's the 3D, real-time games that need to squeeze every microsecond they can that truly benefit from PHAL. I'd hate to see development of PHAL stop, but my first concern is for PF itself.

If we could flip a switch to choose between PHAL and GAPI, (such as #define _USE_PHAL_ in a PF header, or define it in the compile options for PF), I think everyone would be happy, and PF's core functionality could just keep growing independent of which display backend it uses. Just a thought.

-John
Yes, different video driver support for PF should satisfy everyone. And if it will be extendable, PF can then be easly ported to GL ES or D3D Mobile :)
PocketFrog using PocketHAL isn't a highly desired feature (because it hides code).

I don't agree. PF/HAL is desireable but people are not yet sure that HAL is as widely usable as the GAPI stuff in PF .7 and also there's the source issue. Why not go for a trusted ESCROW for source. Give some person at PM the HAL source in a sealed form to be used if you vanish from the scene?
Conan wrote:I don't agree. PF/HAL is desireable but people are not yet sure that HAL is as widely usable as the GAPI stuff in PF .7


For every user of PocketFrog there is 25 users of PocketHAL. PocketHAL is much more stable/tested and used. The reason I changed PocketFrog to use PocketHAL is precisely because PocketHAL is a more stable platform then GAPI.

Conan wrote:and also there's the source issue.


Hiding the source is the only way I found of stimulating donations that allow me to buy more devices, meaning support accross a wider range of devices and a more stable platform (PocketHAL) overall.

Hiding the source is also the only way to make sure the competition doesn't grab all the optimizations I worked on for free.

Conan wrote:Why not go for a trusted ESCROW for source. Give some person at PM the HAL source in a sealed form to be used if you vanish from the scene?


I am considering providing the source code to a stripped-down version of PocketHAL (without the optizations/special video drivers). Basically just the GDI, GAPI and VGA drivers. People who need to extra speed could then get the real PocketHAL, but it wouldn't be forced on PocketFrog users on don't need it.
I was amazed why people talk about compatibility issues with Frog on top of Hal and prefer old Frog. When I downloaded the 0.8.0 version i went to this page: http://pocketfrog.droneship.com/compatibility.html I think, it is clear enough :wink:
Just reporting that PocketHAL 0.7.6 run as-is on the Nokia 6880. There is no new release needed.
OpenGL|ES Please!
If you want OpenGL|ES, just use it? Not sure how it relates to PocketHAL?
I'd choose proper VGA support for sure.
Keep PocketFrog. Or make it open-source license so that it continue to be developed and optimized. It would need some better text support and better alpha-channel support.

Keep PocketHAL closed-source. You need this money, nobody needs the source code. But I suggest you make new versions available more often. :wink:
Krakken wrote:I'd choose proper VGA support for sure.


It is already in. Check the 0.7.7 release.
kornalius wrote:Keep PocketFrog. Or make it open-source license so that it continue to be developed and optimized. It would need some better text support and better alpha-channel support.

Keep PocketHAL closed-source. You need this money, nobody needs the source code. But I suggest you make new versions available more often. :wink:


This is already happening.
Hmm seems some guy revived and old thread and I didn't even check first. I was aware of the VGA but haven't tested it yet and from your post I had assumed it was not complete. :)

Thanks Thierry.

Also, on a side note. I'd really like to see development of some sort of plugin system to go with PocketHAL (and therefore new versions of PocketFrog by default). From there we can get people writing Alpha blending plugins, File loading plugins, General information plugins for devices. The possibilities are limitless if the plugin feature is powerful enough.
Feel free to migrate the plugin idea over to the dev mailing list. That's the appropriate place for such discussions at this point. The forum over there would also be OK, but it really should find its way onto the dev mailing list.

However, it should be noted that my intention is to serve mostly as project admin, not as lead developer (or even developer... I'll probably contribute here and there, but probably not much). Think of me as a PM with no mandate, authority or desire to push people in any way :)

If others don't step up and decide they want to become a developer on the project, than it moving to SourceForge will have made no difference to anything. Therefore, anyone that is actually interested in doing some work should sign up for the dev mailling list and get going :)
Also, don't forget that as with any open-source project, patches speak louder than words.

Another way of saying thar is that good ideas and good intentions can only carry you so far... you've got to get down to brass tacks at some point and show us the code :)

(This isn't directed at anyone in particular by the way, but it seemed relevant to say it within this discussion and at this time)
I would but i'd rather see it implemented into HAL than Frog. I want to use PocketHAL over PocketFrog but I don't want to lose that extra layer of useful functionality that PocketFrog gives (such as image loading etc). That's why I'd love to see this idea implemented. Would make life easier in my opinion. Imagine just being able to download an alpha-blend plugin and it works right away in your code; saves a recompile of the library and updates can be easily submitted. On top anything written in PocketHAL should automatically be part of PocketFrog. It kills two birds with one stone.
As Thierry likes to point out... PocketHAL only gives you a pointer to a framebuffer. The rest is up to you. Plugins belong in the PocketFrog layer.
Presto wrote:As Thierry likes to point out... PocketHAL only gives you a pointer to a framebuffer. The rest is up to you. Plugins belong in the PocketFrog layer.


Presto is absolutely right. PocketHAL is and will stay a thin abstraction of the hardware. I won't add high level functionality such as image loading and rendering. This belongs in PocketFrog or your own code/library.

PocketFrog was/is meant to be that higher-level functionality library. Since I don't have time to work on it and that others do, I decided that giving it to the "open source community" was the best thing. I will not turn PocketHAL into another PocketFrog.
I don't think anyone's understanding me but it doesn't matter after what Thierry said because I now understand what he wants PocketHAL to be.

What I thought would have been nice is a system where people who didn't want to use PocketFrog, but instead PocketHAL (like myself) would be able to download Thierry's PHAL and then have the opportunity to extend it with Third-Party Plugins (in the form of DLLs that would be loaded by PHAL as specified in code [something like 'PHAL::PluginInterface::LoadPlugin("FileManager.dll")']) which would then automatically integrate into the engine at run-time adding a render pipeline etc.
Krakken wrote:
What I thought would have been nice is a system where people who didn't want to use PocketFrog, but instead PocketHAL (like myself) would be able to download Thierry's PHAL and then have the opportunity to extend it with Third-Party Plugins (in the form of DLLs that would be loaded by PHAL as specified in code [something like 'PHAL::PluginInterface::LoadPlugin("FileManager.dll")']) which would then automatically integrate into the engine at run-time adding a render pipeline etc.


I am trying to understand what you you mean. Right now you can download PocketHAL and add a render pipeline to it. I am not sure why PocketHAL would need to load your code? What would be the benefit(s) of calling "PHAL::PluginInterface::LoadPlugin"? What would be this "PluginInterface"? What does it do? What would be the relation between your plugin and PocketHAL?

In what ways do you want to extent PocketHAL that you can't without "plugins"?
I see everyone's point (I think) and I fully understand where you're coming from.

Hmm, well. I like PocketFrog, I just don't like the extra layer it adds on to the engine. Seeing how I don't need half the features of PocketFrog but I do need some of them, I thought a plugin feature would benefit everyone. I could then get the bare bones system I needed without any slowdown/extra size from anything I wouldn't be needing. It would also make future additions easier for people to create and distribute.

I'd be all for putting it into PocketFrog if people would been willing to allow me to completely rip apart the system but for some reason I can't foresee too much support for it :p. That's what would need to happen for it to be part of PocketFrog.

The reason I suggested PocketHAL is exactly, because it's a rendering system and nothing more which would make it very easy to integrate the idea and it could be extended into PocketFrog without too much hassle then (although the built-in functionality would still remain, people would have that choice whether to start from a bare-bones system and add plugins or to start from PocketFrog and add plugins.

The "PluginInterface" was just a quick example I thought up at the time. Plugins could be loaded automatically even if you wished, that was just more simple.

That would do something along these lines:

1) Load the plugin into the application so it can be accessed. Check if it exists and give errors if it didn't.
2) You'd obviously have a header file included somewhere to allow you to use the functionality of the plugin.
3) Use the plugin functionality.
4) Shutdown and free the plugin from memory.

The relationship between the two would be only that PocketHAL would implement the PluginInterface (or whatever) to load the plugins into memory and unload them at the end.
I like pocketHAL because

1) I ask a pointer to a framebuffer and it gives it to me.
2) I do what I have to do
3) I ask phal to paint the framebuffer and it paints the framebuffer.

I can't see any plugin example which can be put in "1)" and "3)" and can't be put in "2)", if you could give an example of "real" plugin it'd help the readers to understand :)

and as pocketfrog is open source you can remove the extra layers you don't like
I'm not sure why you'd want this plugin interface added into PHAL. It seems like it'd be a better thing to develop seperately to interface with PHAL. Call it the "PocketHAL Loadable Utilities". Or PHALLUs....get it?

Anyways, keep PocketHAL specific.
Krakken wrote:The reason I suggested PocketHAL is exactly, because it's a rendering system and nothing more


PocketHAL is just a way to access the framebuffer, I don't think it qualifies as a "rendering system".


Krakken wrote:The "PluginInterface" was just a quick example I thought up at the time. Plugins could be loaded automatically even if you wished, that was just more simple.

That would do something along these lines:

1) Load the plugin into the application so it can be accessed. Check if it exists and give errors if it didn't.
2) You'd obviously have a header file included somewhere to allow you to use the functionality of the plugin.
3) Use the plugin functionality.
4) Shutdown and free the plugin from memory.


Sounds like you are describing what a DLL is.

Krakken wrote:The relationship between the two would be only that PocketHAL would implement the PluginInterface (or whatever) to load the plugins into memory and unload them at the end.


So if I understand you correctly, you just want a platform-independant way of loading a DLL, initializing it, using it, and unloading it. Something like that could definitely be added to PocketHAL. But I question the value of this: how many game developers need DLLs on handheld devices?

If on the other hand you want plugins to do stuff like "load an image", "render a 3D scene" and so on, then what you really want are *librairies* built on top of PocketHAL, and not "plugins". Librairies can be linked (or not) with your application and you don't need to load/unload them dynamically.
Hello Thierry, and Welcome back :)
If I would suggest something, it would be to improve PF and PHAL in all things related to the system response and hardware support( response to incoming calls in smartphones, Palm Support, proper VGA etc. ).

Basically: keep improving what pf&phal; were made to be.

And i'm against the source code from phal containing optimizations being released, we all know how much the competition would love to just suck it up to use in their products bragging about their amazing coding skills.
The idea of a phal-open-source without the optmizations is great, if someone really want to mess with the phal source, use the unoptmized version.