I am going to download and optimize the Pocket Quake code for the HP 620lx If anyone would like to help with this let me know. I will be adding much more options to the current pocket quake, and redo it in mostly all ASM. If anyone would like to assist me in this makeover for the 620lx Plz let me know.
Pocket Quake on a HP 620Lx in ASM
do it you elit bastard
In case you haven't read through the existing threads; I've optimized several areas of PQ by converting the existing floating point routines to fixed point. If you rewrite those routines in ASM and use floating point it will still be slower than the fixed point C routines. It takes somewhere around 10 times longer to perform a floating point operation compared to an integer operation.
So, I believe far more performance increase can be achieved through fixed point conversion compared to rewriting in ASM. Of course the ultimate goal is to have fixed point ASM code.
I am somewhere in the middle of a very large fixed point conversion, where I convert all the vertices of the models to fixed point when they are loaded, and all math from then on is pure fixed point. I'd say its roughly half done. If you take a look at quakedef.h, you'll see several definitions that toggle my fixed point optimizations. USE_PQ_OPT3 toggles the optimization I was working on last (of course it is not usable yet). Search for those other defines to see what I've already optimized.
Dan East
So, I believe far more performance increase can be achieved through fixed point conversion compared to rewriting in ASM. Of course the ultimate goal is to have fixed point ASM code.
I am somewhere in the middle of a very large fixed point conversion, where I convert all the vertices of the models to fixed point when they are loaded, and all math from then on is pure fixed point. I'd say its roughly half done. If you take a look at quakedef.h, you'll see several definitions that toggle my fixed point optimizations. USE_PQ_OPT3 toggles the optimization I was working on last (of course it is not usable yet). Search for those other defines to see what I've already optimized.
Dan East
Thanks Dan I know about the slower code through floating point in ASM that is why i am not doing all of it in ASM. I know the floating point integers are a big pain in the @$$ ! Thanks though i hav seen a couple of other posts by you and others in other threads on this area and have taken into consideration some of the ideas for fixes that other ppl have. Thanks. Hope this comes out good!
OK I have moved my focus on towards bigger and better things... Instead of trying to fix code for a certain device I am just going to work on making Pocket Quake 2. Being you guys are already on the ball for everything under Quake 1 I am going to be working on a Pocket Quake 2. If you would like to help please let me know. I have also created another graphic subset Based off of Direct X functions, which seems to do graphics about 45% faster it's almost complete. I'll keep you posted on how this gets going.
Two words: Good luck 
C'mon, lets be supporting! 
You have the source code to Quake 2?
Dan East
Dan East
That's what I was wondering.
Port Sin instead. I have the source for that.
Port Sin instead. I have the source for that.
Yes i do have the source code to quake 2 but i can't say where i got it. I got source code for the following games:
Quake 1
Quake 2
Doom 1
Doom 2
Heretic
Hexen
ROTT
Duke Nukem 3D
and some of the source code to Redneck rampage.
i've also got source code to some other older games.
So if you guys want i can work on a Handheld version of any of these obviously it would be a little hard to do a redneck rampage version. I have yet to start on a quake 2 i've been working on my direct X clone. Until that is done i won't work on much else. It will support all standard direct X functions and some of the enhanced functions from the direct X 7.0 SDK. I am basically emulating the procedures i have most of it working so far. direct 3D processes are what i'm having trouble on right now I'm having trouble emulating the output procedures. So if any one is real good with direct X, C, and assembly feel free to email me. I need all the help i can get. i have 3 different palmtops to work with right now. I am basically trying to get this stuff working on the slower models for people out there that want it to work. i have a HP 620LX with the pro upgrade, an IPAQ which i don't like to mention cause i give it to my brother cause i hate them. and a NEC mobilepro 800.
LOL
I favor my NEC 800
Quake 1
Quake 2
Doom 1
Doom 2
Heretic
Hexen
ROTT
Duke Nukem 3D
and some of the source code to Redneck rampage.
i've also got source code to some other older games.
So if you guys want i can work on a Handheld version of any of these obviously it would be a little hard to do a redneck rampage version. I have yet to start on a quake 2 i've been working on my direct X clone. Until that is done i won't work on much else. It will support all standard direct X functions and some of the enhanced functions from the direct X 7.0 SDK. I am basically emulating the procedures i have most of it working so far. direct 3D processes are what i'm having trouble on right now I'm having trouble emulating the output procedures. So if any one is real good with direct X, C, and assembly feel free to email me. I need all the help i can get. i have 3 different palmtops to work with right now. I am basically trying to get this stuff working on the slower models for people out there that want it to work. i have a HP 620LX with the pro upgrade, an IPAQ which i don't like to mention cause i give it to my brother cause i hate them. and a NEC mobilepro 800.
LOL
I favor my NEC 800
either one would be cool
Err, the source to Duke3D shouldn't have been released yet. I e-mailed 3d-realms (this thread: http://www.tvticker.com/cgi-bin/forum/welcome.pl?board=Pocketquake&action=display&num=263&start=40 ) about it and they said, that they're not planning to release it anytime soon. Weird...
What devices are you planning on suporting with your directX lib?
Also, count me in for teh ROTT port, I loved playing that game.
Also, count me in for teh ROTT port, I loved playing that game.
NOT NEW..
Chris, turn that Modification Notification back on so we all know when to fix the New Bugs.
Chris, turn that Modification Notification back on so we all know when to fix the New Bugs.
Yes i do have source code to games that the source hasn't been released yet but i can't say where i got it. That is a great idea a pocket ROTT. Think we should maybe make this? i love that game. The directx lib that i am currently working on supports Strong ARM and SH3 so far. i am hoping to make MIPS to.
Wow, a Quake 2 port would be great! Can't believe you got the source. If you want to port an older game port Wolf3D, I know its been disscussed before on this board; and I know you can play it on a SNES emulator, but I still love making maps for this game; and you can't do that with the SNES emulator. Good luck on whatever you port, can't wait to play it. By the way, my middle name is "beta tester" lol.
That's sorry to hear, Dan. It looks like we'll all have to write our own 3D Engines using ints and fixeds.
I'm not one to say "that can't be done" often, but Quake 2 would not be playable on the existing generation of Pocket PC devices. Those who have designed levels for both Quake and Quake 2 could probably attest to the additional processing Quake 2 requires for rendering. I think the next batch of Pocket PCs in the 400mhz range could definitely handle it, especially if one of the OEMs would wake up and include a math coprocessor. Even a current 200 mhz device would rock if it could do floating point math. I don't see that happening anytime soon though.
A portion of an email straight from Intel R& D :
Dan East
A portion of an email straight from Intel R& D :
For now, the immediate challange is the proper execution of a well tuned 3D engine based only upon integer and fixed point math. This is quite a challange for 3D (I'm sure you're well aware) and I don't expect floating point to make it to this class of processors anytime soon.
Dan East
Yes quake 2 would be a real challenge without a custom built 3D engine with fixed point. I know HP is expecting on releasing a new palmtop within the next couple months what the specs are i have no idea but hopefully it will be good enough to run a quake 2 port. Currently if we were to try and make a quake 2 port, i would not try it on anything less then a strong arm or a really fast mips processor. The math-co processor is a must. but being we don't have one we need to make up for it in fixed point like dan said. I know it would be possible to do a quake 2 port but on the current devices you'd be lucky if you could get a frame rate of anything over 3.2fps on a overclocked 233mhz mips. or anythything close. I do like the idea of a wolfenstein port but unfortunately i don't have the wolfenstein source if someone had it and could get me a copy i could start on a port of that. I know we could do a heretic port and a rott port those would be good. I do know that someone from the underground has supposedly succesfully ported hexen but i am seriously doubting that do to their lack of proof and they can't seem to give me a non corrupted file. I praise anyone involved in the current Quake port cause i know how much of a pain in the @$$ it is, and it is a really good start to get the ball rolling on other 3D game ports. Another good port would be Warcraft or a game along those lines. If anyone has any ideas on a good port let me know, I like the idea of a wolfenstein port, if anyone would like to help on that and could get me the source let me know.
Here's a good question, Anyone real good with Direct X Direct 3D Procedures!!!!!?????? If so plz let me know.
What's your question about D3D?
I need a list of Direct 3D outputs or commands. I got some of it done. but i need to know all of the direct 3D commands so i can do emulation procedures for them.
Well the list of entry points is going to be over a hundred APIs. For D3D8 apps, you can look at d3d8.h in the DX8 SDK. For anything that using versions of Direct3D prior to DX8, you'll need d3d.h PLUS all of the functions in ddraw.h. Oh and some apps might have used the D3DX helper library so that's going to be either d3dx.h or d3dx8.h (these include lots of other d3dx files). BTW, D3D8 also includes support for vertex and pixel shaders and those are written in D3D Shader assembly language. For true emulation you'll need to write an assembler or, at a minimum, a parser to handle this custom shader code.
You're better off coming up with a 3D rasterization library for the PocketPC (Jakko has done this already) and then port the app to use your library routines instead of Direct3D/DirectDraw. I've written floating point and integer rasterizers and I'm happy to answer any questions you might have if you choose to go this route. Good luck!
You're better off coming up with a 3D rasterization library for the PocketPC (Jakko has done this already) and then port the app to use your library routines instead of Direct3D/DirectDraw. I've written floating point and integer rasterizers and I'm happy to answer any questions you might have if you choose to go this route. Good luck!
It would really be one more reason to buy a PocketPC if you could port Duke 3d (I think that's one of the best single-player FPS games of all time).
GOOD LUCK with your ports!!!
GOOD LUCK with your ports!!!
OK i have the dx 7.0 SDK, and i found them thanks. I am making this so people that use dx can use the normal dx routines and have no problem getting them to work right or for games that use it able to take advantage of it. I got alot of ASM code already in it. The only problem i am having now is getting it into fixed point. All the direct sound and direct draw is just about complete. everything else besides the direct 3D has a few minor bugs and problems. that have to be worked out before the initial release.
Ok does anyone have the source code to wolfenstein or a link to where i may achieve it. I am going to do a pocket version of it. THE CLASSIC!! the one that started it all!. LOL alright now i just need the source and if anyone would like to help plz let me know.
yeah its on the idsoftware site
Brian, if you are looking for a home for your ports we would be happy to have you. Email me if you are interested. Matt@PocketMatrix.com I will be in and out for the next few days, so it may take a bit for me to get back to you.
Thanks,
Thanks,
I think that it isn't worth porting the DirectX (specially the Direct3D). It needs a lot of code (and then memory). It was thought to use with hardware accelerators. There was a time, when 3D cards where not so common, a little after Win95 appeared and when games for MS-DOS were still sold, that 3D games for DOS with their own 3D engine where faster than those made for Direct3D using the HEL. Direct3D is inefficient and DirectX 7 & 8 are a nosense without harware acceleration (trying to make a software pixel shader is meaningless, and we have slow processors at <200Mhz). Many years will pass till we see a 3D accelerator in a Pocket... Probably who make Pocket PC's think that if you want playing games anywhere you better buy a GameBoy, and that their machines are for more serious uses, but many ones who have a PocketPC want to play good games with it (because it is possible).
I think that the WindowsCE platform needs is its own 3D library based on its special characteristics. It should be adapted to every platform available and disposed widely and FREE (with sources free too) for developers. So they could concentrate on programming 'good' games based on it, which could be playable on every platform (Pocket, HPC - MIPS, SH3, SArm, etc). Really I don't know why such thing is not out there right now. Microsoft has made their GameAPI and I believe that if they had gone further to the 3D there would be many more good 3D games for the Windows CE.
I will think on the design of this library and if I have time I will make an attempt.
That's all.
I think that the WindowsCE platform needs is its own 3D library based on its special characteristics. It should be adapted to every platform available and disposed widely and FREE (with sources free too) for developers. So they could concentrate on programming 'good' games based on it, which could be playable on every platform (Pocket, HPC - MIPS, SH3, SArm, etc). Really I don't know why such thing is not out there right now. Microsoft has made their GameAPI and I believe that if they had gone further to the 3D there would be many more good 3D games for the Windows CE.
I will think on the design of this library and if I have time I will make an attempt.
That's all.
Actually, Angel, the next mobile Intel processor will include 3D graphics acceleration, the XSCALE processor. But these guys are talking about a stripped down version of DirectX, things like DirectSound,Draw,Input, etc. Of course they won't be programming in vertex and pixel shaders, environmental bump mapping, and particle acceleration support.