PocketMatrix forums

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

PocketPC demoscene?

I'm wondering if there are any (ex-)democoders around here...

Programming PocketPC devices (especially graphic-apps) heavily reminds me of democoding back in the days (assembly optimizing, no fpu, tricky optimzation stuff, Module playing etc.)

Maybe even some PocketPC demos exist?
PocketPC demos (goggled link):
http://www.pouet.net/prodlist.php?platform=PocketPC

I was a wanna-be demo coder. I used to play around with effects but never released anything, per se.
I attended some smaller parties and was member of a german group around '96 but i lost interest when 3D accelarator cards became standard!
I recently began porting some of my old effects to my PocketPC and it's really fun to watch all those little effects on such a tiny device...
Yesterday I did a grid-tunnel-raytracer thing (6DOF) which runs pretty fast and is even cache-optimized that way ;)

Maybe we can share some thoughts and ideas about this topic!
xPeterx wrote:
I attended some smaller parties and was member of a german group around '96 but i lost interest when 3D accelarator cards became standard!
I recently began porting some of my old effects to my PocketPC and it's really fun to watch all those little effects on such a tiny device...
Yesterday I did a grid-tunnel-raytracer thing (6DOF) which runs pretty fast and is even cache-optimized that way ;)

Maybe we can share some thoughts and ideas about this topic!


count me in!
I've made a tunnel effect, it's very fast (10ms for a whole frame, including screen blitting to video mem) but it do not have 6deg of freedom like yours...

Mine is using a quite lame precalculated tunnel table and a render loop with cache optimisation ( 16*16 box drawing)

I plan to use this routine (with some improvments) in a game....

and.. hmm.. I would like to see your pre-demo, I could post mine as well...
I was a pretty successful (i.e., somewhat well-known) demo coder back in the C64 days, but when I jumped to PC's around 1990 I didn't do much aside from some BBS demos early on. Count me in for any sharing of knowledge, although I'm not sure I'd have too much to contribute.
I have no idea what these demos/intros/parties are. Somebody explain? Is it just a small app designed to do funky effects? And these parties, do people just show off their intros? (Farb-rausch? I downloaded those)
A demo is exactly that: a showcase for one's programming abilities. It's a showcase usually for graphics AND sound programming, and yes, you tend to just throw a bunch of effects together. Well, that WAS true... demos over the past I'd say five years have gotten VERY sophisticated... It's not unusual to see something like an entire 3D engine doing real-time rendering of some complex stuff.

An intro is usually associated with pirated software or old-fashioned Bulletin Board Systems (BBS's). A BBS, for anyone that hasn't been around long enough to remember, was simply someone setting up their computer to recieve incoming phone calls, and when the caller logged in, you got to what you can think of as a very simplistic web page (sort of... the analogy's not perfect, but it's kind of hard to describe if you have no frame of reference, and a web site is about the closest thing your likely to recognize to it).

For pirated software, most cracking (or importing groups back in the day) had one or more small programs that were kind of like mini-demos, but the point was to show who cracked or released the software, usually greetings to other "elite" people and groups, and many times BBS #'s to call for more pirated warez or to contact members of the group. Many intros were (are) fairly advanced in their own right, but not to the same extent that demos were. In fact, years ago, it wasn't uncommon for a group to release a demo that was just a bunch of their intros crammed together.

As for demo parties, it's more than just showing off your work... Most, if not all, demo parties also include a number of competitions. You would actually code something on the spot, either alone or in teams, to try and win prizes. Some of the bigger parties, like Assembly, actually gave away some rather impressive prizes and had quite large turnouts. Incidentally, demo parties were and still are something that largely is outside the United States. I'm not sure why it is, but most parties are generally in countries like Finland.

That's a two-minute history lesson for ya :)
fzammetti wrote:
For pirated software, most cracking (or importing groups back in the day) had one or more small programs that were kind of like mini-demos, but the point was to show who cracked or released the software, usually greetings to other "elite" people and groups, and many times BBS #'s to call for more pirated warez or to contact members of the group.


...and to enable cheats.

Dan East
True, to an extent... A trainer (which is essentially a program hack that allows various types of cheats in a game) is really a different animal, but, it's certainly true that where there was an intro, a trainer was likely to follow.

Those were simpler times, weren't they?? Much more fun in my book too.
We'll I've been a fan of x demo groups in eary 90's. I also made some demos during the OLD DOS DAYS... using asm, pascal and c/c++. I know you will remember my Nick ID 'DenthorQ' ... I got this from the famous Denthor of Asphyxia :-) check google and seach for Denthor of Asphyxia. Maybe some of the demos are still alive.

Cheers.
StephC wrote:
I've made a tunnel effect, it's very fast (10ms for a whole frame, including screen blitting to video mem) but it do not have 6deg of freedom like yours...

Mine is using a quite lame precalculated tunnel table and a render loop with cache optimisation ( 16*16 box drawing)

I plan to use this routine (with some improvments) in a game....

and.. hmm.. I would like to see your pre-demo, I could post mine as well...


I'm using 8x8 blocks for accuracy reasons and basically i'm using the same technique as you do but i'm raytracing the grid (with some limitations as i'm using fixedpoint math) every frame and i'm getting around 17-18 fps on my MIPS casio EM500 which is quite fast for such a slow device!
I also added the possibility to move the viewer arbitrarily through the tunnel which is pretty cool (no collision with the tunnelborders yet ;) )
Tell me if you're still interested in the raytracing-techniqe... :roll:
denthorq wrote:
We'll I've been a fan of x demo groups in eary 90's. I also made some demos during the OLD DOS DAYS... using asm, pascal and c/c++. I know you will remember my Nick ID 'DenthorQ' ... I got this from the famous Denthor of Asphyxia :-) check google and seach for Denthor of Asphyxia. Maybe some of the demos are still alive.

Cheers.


Hey, i remember you!

I've seen quite alot of pascal stuff from you back then...

Cool!
rcp wrote:

count me in!


Ever thought about programming a 6DOF terrain (voxel) renderer on PocketPC? I've seen a pretty fast implementation in a late 90's demo ('toasted' by cubic team... maybe you can find it on the net) and i've always wondered how they did it but i've never came up with a decent solution!
Or does something like this exist already? I mean 4DOF is quite easy to implement but 6DOF is so much more sophisticated.
It would be cool if we would port our old demos/intros/effects to PPC and put them online. That might encourage others to follow suit.

Btw., will someone go to evoke demo party (http://www.evoke-net.de) in august? I'll be participating in the 4k intro competition :)

cryo
cryo wrote:
It would be cool if we would port our old demos/intros/effects to PPC and put them online. That might encourage others to follow suit.

Btw., will someone go to evoke demo party (http://www.evoke-net.de) in august? I'll be participating in the 4k intro competition :)

cryo


Nice idea... Maybe I can provide some free webspace without banners and stuff so we can put up a little PocketPC democoding site!

Evoke? Hm, that's quite far away from where i'm living because i don't own a car... :(
Cologne, huh? :) My web-servers are situated in Cologne.

I too can provide free web-space (and install/maintain a postnuke+phpbb setup), if necessary.
xPeterx wrote:
I'm using 8x8 blocks for accuracy reasons and basically i'm using the same technique as you do but i'm raytracing the grid (with some limitations as i'm using fixedpoint math) every frame and i'm getting around 17-18 fps on my MIPS casio EM500 which is quite fast for such a slow device!
I also added the possibility to move the viewer arbitrarily through the tunnel which is pretty cool (no collision with the tunnelborders yet ;) )
Tell me if you're still interested in the raytracing-techniqe... :roll:


Since the illusion of mvt is mainly due to the moving texture you might store the raytracing grid and recalc it at a lot slower rate than the framerate, and recalc only 1/8 or 1/16 of the grid each frame...

Just for info, it's for the texture mapping on screen that I use 16*16 blocks...
StephC wrote:


Ahhhh, i think i'm getting the idea behind your techniqe...

You're using a large array which holds u/v coordinates in your texture map and movement is done through adding an offset to your texture coordinates, right?
And drawing is done using 16x16 blocks...
Correct me if i'm still getting your idea wrong 8O

Okay my techniqe is this:

I'm raytracing a grid (in my case 30x40 because i want to do 8x8 block drawing) and i'm storing u/v coordinates for the gridpoints as well!
Afterwards i'm using (bi)linear interpolation to get the u/v values for the inbetween points in the grid in order to scale the resolution to 240x320...
That's all :roll:


So long,

Peter
xPeterx wrote:
Ahhhh, i think i'm getting the idea behind your techniqe...

You're using a large array which holds u/v coordinates in your texture map and movement is done through adding an offset to your texture coordinates, right?
And drawing is done using 16x16 blocks...
Correct me if i'm still getting your idea wrong


Yes that's it. The only trick is the "box" drawing...
Nils Pipenbrinck · 01 Aug 2003, 15:36 UTC
xPeterx":uoppy7wl]


Nice to find someone who remembers the best code I've ever written 8 years later :)

It was a easy effect, just audacious to do on a P90.

It's just did adaptive raytracing. We raytraced the heightfield in 8x8 blocks and adaptive subdivided based on the ray-heightfield intersection-points Z value and the color difference.

The trick to make it fast is just what we call mipmapping today: Make yourself a 8x8 or 16x16 heightfield where each texel represents the highest texel from the original heightfield part to cull out most unessesary raytrace tests and their memory-accesses.

It was all done in fixed point, and to our surprise the 6dof voxelspace was *way* faster than all we ever did with raycasting (the traditional heightfield effect .. e.g. mars demo).

As a bonus we where able to generate a nice z-buffer for free, and it was possible to draw ordinary 3d meshes into the raytraced voxel scene.

Btw, it wasn't completly our idea. We met an amiga-coder (tts/oxyron) on a coder-meeting in '95 who played around with 6DOF heightfields. His approach was entire brute force. We just added the mipmap optimizations, wrote tight assembler code, added the adaptive subdivision and almost won the assembly with it :)
Nils Pipenbrinck wrote:

Nice to find someone who remembers the best code I've ever written 8 years later :)

It was a easy effect, just audacious to do on a P90.

It's just did adaptive raytracing. We raytraced the heightfield in 8x8 blocks and adaptive subdivided based on the ray-heightfield intersection-points Z value and the color difference.

The trick to make it fast is just what we call mipmapping today: Make yourself a 8x8 or 16x16 heightfield where each texel represents the highest texel from the original heightfield part to cull out most unessesary raytrace tests and their memory-accesses.

It was all done in fixed point, and to our surprise the 6dof voxelspace was *way* faster than all we ever did with raycasting (the traditional heightfield effect .. e.g. mars demo).

As a bonus we where able to generate a nice z-buffer for free, and it was possible to draw ordinary 3d meshes into the raytraced voxel scene.

Btw, it wasn't completly our idea. We met an amiga-coder (tts/oxyron) on a coder-meeting in '95 who played around with 6DOF heightfields. His approach was entire brute force. We just added the mipmap optimizations, wrote tight assembler code, added the adaptive subdivision and almost won the assembly with it :)


Damn you did it? I'll kill you :wink:
Back then it was just amazing! It was so incredible fast...
I always thought it was done using blocks since it was so fast it had to be done using cache optimization!

:D

Okay since now i know for sure how you did it i will hopefully get something similiar running!

Big thanks for the explanation!

Peter
I'm interested, how did you find this thread? Random googling for your name?
Nils Pipenbrinck · 04 Aug 2003, 10:22 UTC
sponge wrote:
I'm interested, how did you find this thread? Random googling for your name?


You ask me? Don't know, but I'll answer anyways.

I'll lurk at this forum every once a while (say: one visit per month). I was involved with pocketpc programming for the michael schumacher kart racing game, and I still sit at home tweaking poly-fillers just for my personal satisfaction sometimes (just writing asm-code, I don't even have a pocketpc at home).

Last week I was looking for an assembler division routine (a real one, no approximation). I still don't know how a "fast implementation" should look like. Mine is ok, but will suck on xscale cpu's.
Go pick up a $200 Dell, I'm sure the community could always use more developers, especially those experienced in 3D :P
to Nils Pipenbrinck:

I've got a brute-force 8x8 6DOF voxel running but i'm not quite sure what you mean with adaptive subdividing the grid using the intersection points of the ray and the heightfield :(.
Could you please explain it a little bit more detailed?

Thanks,

Peter
Nils Pipenbrinck · 05 Aug 2003, 11:59 UTC
xPeterx wrote:
I've got a brute-force 8x8 6DOF voxel running but i'm not quite sure what you mean with adaptive subdividing the grid using the intersection points of the ray and the heightfield :(.
Could you please explain it a little bit more detailed?


Hi Peter,

Sure I can.

You raytrace in 8x8. That's fine. I hope you get a z-depth and a color as a result.

Now take a look at the 4 corners:

Build the average z-value from them. If any corner point is more then.. say .. 4 meters away from the average z of the current cell, you need to split the 8x8 cell into 4 4x4 cells. If the 4x4 cells still have wide spread z-values split them into 2x2 cells.

This will make sure the horizons and contours don't look blocky.

Once your cells pass the distance test you can start to fill the block. One posibility is to use straight texture mapping. We've however choosed just to read out the 4 corner texels and fill with gouraud (faster 'cause we don't need to read texels from memory.. less bandwith = faster throughput. This will be especially true on that slow pocketpc memory).

We also used the color difference of the corners into the subdivision scheme. This was nessesary because the gouraud fillig made ugly artifacts.

You can optimize the shit of it (and you should do so):

* Also make your Z-compare thresold adaptive, so you don't subdivide with the same precision at the horizion as you do directly in front of you.

* Code a special-case for rays that can only hit the sky.

* Use the height-mipmap, that I've mentioned. This will speed up things up at least a magnitude if done right).

* Use mipmaps for the texture image.

* Be a proud coder and write everything in assembler once your prototype is looking good.

Hope it helps.. If you need more hints let me know. I always enjoy coder talk. you can reach me at pn@inverse-entertainment.de (change the first two chars, I want to avoid getting even more spam. :)

Nils
to Nils Pipenbrinck:

Thanks for the very detailed information.
I'm still having one last problem, i wrote you an e-mail about it and i'm writing this to make sure it doesn't end up in some junkmail folder :)
Nils Pipenbrinck · 06 Aug 2003, 15:29 UTC
xPeterx wrote:
to Nils Pipenbrinck:
... wrote you an e-mail about it and i'm writing this to make sure it doesn't end up in some junkmail folder :)


Nah.. I just have a lot to do right now. No time to write a longer email right now.
check out the brand new demo by Kolor and Haujobb, called "Green-Cheese", relesead at Evoke Z003. you can see some screenshots and download the dvix version over here: http://www.kaoz.org/kolor/index.php?view=releasedetails&ReleaseID;=31 though, the binaries aren't released yet :(
pazazzo wrote:
check out the brand new demo by Kolor and Haujobb, called "Green-Cheese", relesead at Evoke Z003. you can see some screenshots and download the dvix version over here: http://www.kaoz.org/kolor/index.php?view=releasedetails&ReleaseID;=31 though, the binaries aren't released yet :(


I've seen this demo, and I simply can't believe it run on a PocketPC with decent FPS..

Is it magic or ultra overclocking ?

I wonder why they don't release the binary.
concerning the binaries: the newspoint on the kolor-site says that you'll have to wait a little bit, but i guess, then you'll be able to prove it running smooth without overclocking on your own device ;)

24|08|2003 : MOBILECHEESE
We won the Console-Compettion at Evoke Z003 with our title 'Green Cheese', in cooperation with people from Haujobb and Park. The binary will be made available later this week, the video this evening.