PocketMatrix forums

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

PocketFrog's future

Hi everyone,

I am now in Vancouver, and almost ready to resume working on PocketFrog.

I had quite some time to think about the current state of the library and where I want it to go.

It seems obvious that the license terms are not clear and preventing people from using the library. The next release will either be under LGPL or, most probably, under no license whatsoever.

I constantly receive requests for things like alpha blending, and it's about time I add it... The main reason for that is that I am seriously thinking about removing the graphic primitives from class Surface (they don't really belong there) and designing some kind of "pixel shaders" that would allow you to define how you want to process the pixels. You could for example draw a line using a normal shader, a transparent (alpha based) shader, etc.

Music support (MOD, IT, XM, ...) took too much of my energy and it's not there yet. There is two reasons: 1) The sound support in PocketFrog is currently very limited in functionality and 2) MikMod is hard to integrate.

I would like to have some constructive comments here about what you think and what is critically needed. (Unlike some people in another thread.)

Thanks,
Thierry
thomas mathys · 12 Apr 2002, 16:26 UTC — why using mikmod ?
: 2) MikMod is hard to integrate.

did you look at the windows ce version of fmod ? http://www.fmod.org
fmod is free for non-commercial products.
I did look into MikModCE and basically it is the same thing. MikModCE is basically MikMod with most music formats and high-quality mixing removed.

I don't like how mixing is done in MikMod, I was trying to integrate it with PocketFrog's mixing thread.

What is needed to make it work in PocketFrog is to implement sound buffers (similar to what DirectSound uses).
:I did look into MikModCE and basically it is the same thing.

do you mean the same thing like fmod ?

i'd say no, afaik mikmod is just an xm (and some other mod formats) player, while fmod is a full fledged sound system. it doesn't only allow you to replay music, but you can also load single samples and play them. all sounds will then be mixed together - ideal for a game, i'd say.

this would also make pocketfrogs own sound system unnecessary. that's why i proposed once to add some flag to the config structure to let the user choose wether he wants to use the sound subsystem (mailed you once, you might remember)
Oops, I though you were referring me to MikModCE...

Yes, I did look into FMOD at one point and it sounds *pun intented* great. My main concern with FMOD is that you don't have access to the source code and that you have to pay quite a bit of $$$ for a license.

On the other hand, providing a sound subsystem that fills the need of everyone seems impossible. The more features we add, the bigger the lib gets. There is no point in providing MOD/XM support for someone only needs WAV playback.

I do remember you mail about disabling sound support, it is a great idea. I am seriously thinking about removing my sound mixer and replacing it with FMOD until I have more time (if ever) to implement it properly. This would allow me to concentrate on other things like graphics and 3D stuff.

I