PocketMatrix forums

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

Quake III GPL'd

(And no, it won't work on the Pocket PC).

http://www.fileshack.com/file.x?fid=7547

Just wanted to be the first person to point this out before we're buried under a mountain of threads. ;-)
It doesn't work on PocketPC... YET.

I wouldn't at all be surprised if this gets ported in a month or less. I haven't looked at the source at all, so I suppose there could be a whole mess of assembly in there to complicate matters, but assuming that isn't the case, getting it ported will happen eventually.

Whether it runs at more than 5FPS is another question I suppose.
How likely is it that a port for the x50v would run as well as current pocket quake?
I haven't looked at the source either but my guess is porting Q3 will be multitudes harder than porting Q1, primarily because Q1 was oldschool enough to minimize floating point code and have been built with efficiency in mind. Q3 I would guess is riddled with it floating point, which may kill a PPC version. Also its use of advance shaders and texturing will leave a lot to be desired on the PPC, even with the x50v 3d accell. Hopefully its not as bad as all this...
The source isn't exactly in pristine condition, compiling it straight produces a buggy release, and it DOES have some rather large chunks of assembler.

Nice little comment in the source though:

i = 0x5f3759df - ( i >> 1 ); // what the fuck?
sponge wrote:The source isn't exactly in pristine condition, compiling it straight produces a buggy release, and it DOES have some rather large chunks of assembler.

Nice little comment in the source though:

i = 0x5f3759df - ( i >> 1 ); // what the fuck?


lol, damn, that is bad, even my source doesn't have shit like that, but it does have a few // todo: hack lines :oops:
0x5f3759df is one of magic numbers of which noone knows how exactly does it work :).
i think i once saw a video demonstrating Quake3 running on an MBX code at PowerVR's webpage.

anyway since the X50v has OpenGL ES, i don't see big problems in porting Quake3 to the X50v.

if anybody is really interested in this i'd be willing to spend my OpenGL-to-OpenGLES wrapper for this...

bye,
Daniel
Naturally, if someone pulls this off, you will send me an email first? Wouldn't mind getting PocketGamer Slashdotted again... we need a good load test!
drgoldie wrote:i think i once saw a video demonstrating Quake3 running on an MBX code at PowerVR's webpage.
Daniel


sure that wasn’t the cube engine port?


im sure it could be ported to one form or another, how playable it is with the pocket pc’s limited input capabilities is another question...
i am sure that it was Quake3. what i am not sure about is, were i got that video.

altogether it was just a Quake3 in-game video playing in 320x240. google for "Quake3 MBX" and you'll find many references.

we will offer a course where students have to integrate new effects into the Quake3 engine (on the PC) this winter semester, which means that i'll have to play around with the engine for a while. so maybe i'm motivated to start a port then... :)

bye,
Daniel
Does Quake III have a software renderer?

Dan East
no, pure OpenGL.

Daniel
crioux · 05 Oct 2005, 17:39 UTC — Quake 3 Arena ported to Pocket PC
Well, I went ahead and did it anyway.

http://www.noctemware.com/q3ce.html
crioux wrote:Well, I went ahead and did it anyway.

http://www.noctemware.com/q3ce.html


Hi Crioux !!
Thanks for the quake3 port for PocketPC, I will try it this evening :).
It works with 2700G ? You can make works with this 3D Hardware Accelerator ?

Thanks for all !
It's only software rendering right now, but I am currently working on support for various 3d chipsets, including the 2700g. Check back in a few weeks and I might have an update for ya.
That's AWESOME crioux! :)

I'll second the wish for i2700G support on the Axim X50v. That'd be kickass!

Will there be any hope of getting it to run on the X50v, as it's "only" a 64mb RAM device..?
crioux wrote:It's only software rendering right now, but I am currently working on support for various 3d chipsets, including the 2700g. Check back in a few weeks and I might have an update for ya.


Hi!
You can use the PowerVR SDK's and it works with almost 3D chipsets :).

Thanks for the Port :).

http://www.pvrdev.com/
skirep wrote:
You can use the PowerVR SDK's and it works with almost 3D chipsets :).


Yep, just procured an Axim x50v and i'm working to ensure the game works on it, using the powervr sdk. Note, that the pvr sdk is only a 'light' mode implementation of opengl-es, not a 'common' mode, so everything has got to be going in as fixed point. Also, the axim and most handhelds have no floating point chip.

So, I'm converting all of quake 3 over to using fixed point everywhere. When I dig myself out of precision hell (probably by this weekend), I'll see about pushing out another release.
Crioux, you rock. I've cleared out my CF card ready! :D

Keep us posted with your progress!
Status update:

I've seen first light on the x50v port. It's now compiling with all the hardware stuff working. No word on frame rates yet, but things are looking up.

Working on getting it to fit within a 32MB memory footprint, and it will auto-tune itself based on your memory configuration.

Also, the axim has fewer buttons than I'd like, so I'm specializing a configuration for the restricted button setup that gets most of the useful functionality in there. I may add the ability to access the touch keyboard and/or things like console using chorded keypresses or something. Still thinking on that.

More as news breaks.
Yeah, and that means I converted all of Q3A over to fixed point. I actually have a #define that lets you switch from fixed point everywhere to floating point everywhere, lovingly hand-tuned for precision :P

Anyway, nuff tootin the horn, back to code.
Thanks Crioux!
You can put it to download 8O 8O
Crioux, I'm on the edge of my seat here having read this! :D

I'm ill and off work for a few days, it'd be awesome to be able to have a bit mess around with this while I'm not doing anything :)
Cool.

Check my post at http://www.pocketmatrix.com/forums/view ... hp?t=20065 for 2700g performance tips.

Basically you want to reduce your draw calls as much as possible by combining geometry. Doing this in yeti raised the framerate from 18 to 30fps.
I am currently achieving 15-25 FPS on the x50v, and it's totally playable. Expect a release sometime this weekend. The memory footprint has been tightened up (although some unconventional memory tricks were used, more on that at a later date).

As for batching and reducing draw calls, the guys at iD already did a lot of that in the Q3A codebase. Turns out that the part that slows things down the most is the bot AI, due to all the complex path-tracing and scene intersection testing code. Having 4 bots in the arena slows things down to 5-10 FPS depending on how much activity is going on. Working on that now.
Cool. Look forward to seeing it.
crioux wrote:I am currently achieving 15-25 FPS on the x50v, and it's totally playable. Expect a release sometime this weekend. The memory footprint has been tightened up (although some unconventional memory tricks were used, more on that at a later date).

As for batching and reducing draw calls, the guys at iD already did a lot of that in the Q3A codebase. Turns out that the part that slows things down the most is the bot AI, due to all the complex path-tracing and scene intersection testing code. Having 4 bots in the arena slows things down to 5-10 FPS depending on how much activity is going on. Working on that now.


I can't wait! I can't Wait! :).
I really hope this works with Windows Mobile 5 - do you think it will? I've upgraded my X50v to it. :)

Also, is multiplayer support there?

Thanks so much Crioux, im so excited! :D
Very cool! If you get the chance, it would be great if you could send a short video and/or screenshots to me (david@pocketgamer.org) at PocketGamer when you release it. :-)
d0pefish wrote:I really hope this works with Windows Mobile 5 - do you think it will? I've upgraded my X50v to it. :)


I expect that it will, though if it doesn't, it won't be long before i ensure that it does.

d0pefish wrote:
Also, is multiplayer support there?


I didn't remove the multiplayer code, but i haven't begin doing any platform-specific porting or testing of it yet. I know that WM2003 doesn't do UDP terribly well, or something. Officially, multiplayer will wait until 1.2, but you might have some sort of luck with it over a local wireless connection.
Thanks for replying :)

Thats sounds great - I'll be eagerly waiting to test it this weekend (or whenever you're happy to release it), and I can let you know how it goes on my WM5.0 Axim. :)

Cheers!
Hmm maybe the X50v is a good choice after all... :D
I definitely can't wait either. I've been checking your site for updates every other day or so.

I do have one question tho...

How will you handle console input? will the built-in keyboard pop-up or no?

...eagerly waiting!
I'd really like to see bluetooth keyboard support for this. I have a bluetooth keyboard and it would be awesome to be able to use it.
biohzrd wrote:
How will you handle console input? will the built-in keyboard pop-up or no?


On the axim, there's not enough buttons to enable the console, so you just have to make do without for now. I will likely a popup keyboard at some point in the future.

And keep hanging on for the 1.1 release, it's going to be a few days late, as I had some family stuff I needed to deal with, and i don't want to skimp on the QA.
Debugging WM5 support now, but we're feature-complete.

As for bluetooth keyboard support, I have a bluetooth keyboard and will see about testing it.
glad to hear it is coming along. a few days isn't anything for me to play q3 on my ppc. :)
crioux · 10 Nov 2005, 02:12 UTC — Q3CE v1.1 is out
http://www.noctemware.com/q3ce.html

Come 'n get it.

--chris
Awesome :) I'm trying to scroung up my copy of Q3A. How much free memory do you need to run it? I have a x50v with about 40MB free, is that going to be enough?
mm40 wrote:Awesome :) I'm trying to scroung up my copy of Q3A. How much free memory do you need to run it? I have a x50v with about 40MB free, is that going to be enough?


That should be enough. Leave the memory slider in the middle for best performance.
IM0001 · 11 Nov 2005, 06:26 UTC — Awesome
I posted it on Aximsite.com and i have to post it here. This is pure awesomenes. The game runs almost perfict on my X50V. Much better than Cube (its like playing on my old voodoo Banchee on a P2 266 (but at the speed whith these settings its like a P1 166 with 128MB ram or something like that). No studder but framerate stays around 5-25. Still its fully playable with 1 or 2 bots and the controls are like Pocket Quake (the software ver) I cant wait to show this off to a few of my friends tomorow.

Also I could Not get it to work with WM05 but back on WM03 it worked like a charm. Guess 1.2 might fix whats left.
crioux · 15 Nov 2005, 06:54 UTC — Version 1.1b - Available for download now!
Version 1.1b - Available for download now!

* Numerous bugfixes, including problems with shotgun crashing and sometimes not hitting
* No more hard resets. Memory autotuning has been significantly reworked, and no longer uses temporary files, which was causing storage memory problems, due to issues related to storage compression.
* Q3 zone memory manager completely recoded to use tighter algorithm, resulting in being able to play many levels without running out of memory due to fragmentation.
* Rocket marks cleaned up.
* Mostly works on Windows Mobile 5, but Axim x51v users are still out of luck until Dell fixes their memory issues. Rom update should be out sometime in the next week or two, hopefully. Until then, stick with PPC2003 if you can.
* Fixed memory leak with sound driver, and fixed problem causing sounds to drop out after a while of gameplay.
* Pakconvert script seems to be working better now for more people.

http://www.noctemware.com/q3ce.html
So what's the memory issue with the Axim X51v? I might buy one of these things but I'd like to know about problems like this before I do. Thanks!
Digby wrote:So what's the memory issue with the Axim X51v? I might buy one of these things but I'd like to know about problems like this before I do. Thanks!


Search around a bit. WM5 eats like 16 MB more memory that PPC2003 on the Axim. Some claim that it's due to some kind of caching issue required by the x51v's flash memory. Leaves Q3CE with only like 20 MB of useful space, which isn't enough.
I wonder if the X50v with the WM5 update has the same problem? In otherwords, is this a problem with WM5 or something to do with the new Dell device specifically?

In any case, I think I'll hold off on buying one.
Digby wrote:I wonder if the X50v with the WM5 update has the same problem? In otherwords, is this a problem with WM5 or something to do with the new Dell device specifically?

In any case, I think I'll hold off on buying one.


The x51v and the x50v with WM5 has this problem. I'm not sure how fixable it is. We'll have to wait and see what Dell chooses to do about it, if anything, with the next rom update.
i do not experience these memory problems with my X51v. In fact i have better conditions than with my X50v (running WM2003). I wrote a small tool to measure free memory. It shows physical memory and virtual memory. Furthermore it loads a dummy DLL to test how much memory is really available for the process.

Here are the results after a fresh reboot.

For the X50v (WM2003):
Physical: 32.620 / 46.508 KB
Virtual: 28.672 / 32.768 KB
Lowest DLL: 10.560 KB

For the X51v (WM2005):
Physical: 31.432 / 50.652 KB
Virtual: 29.888 / 32.768 KB
Lowest DLL: 20.672 KB

The "all physical" is lower on the on the X50v since i had some more files on that device. So that does not count.

For me especially the last value (20.672 vs 10.560) is a huge improvement. I went into many troubles writing a custom memory manager (allocates its memory outside the process slot) for all my modues in order to work around that 10MB problem...

So were is the problem with the X51v (or WM2005 in general)?

bye,
Daniel
Attachments:
MemStatus.zip (4 KB)