Show us yer programming projects!
Re: Show us yer programming projects!
This is always a good place to look if you want to understand the HW in an arcade machine
http://mamedev.org/source/src/mame/drivers/polepos.c
http://mamedev.org/source/src/mame/drivers/polepos.c
Re: Show us yer programming projects!
That is a really impressive conversion. The only downside is that I have always been awful at racing games 
Re: Show us yer programming projects!
Thanks everybody for your comments.
@Muttley - I have to admit that Cannonball helped to inspire this project. I bow down to the dedication of the guy who created that - not only has he reverse engineered the game logic, but also the low-level sound code! I *think* he took some of the graphics handlng code from the MAME Outrun driver rather than reinventing the wheel though. I'd still imagine that the work undertaken on Cannonball is in the region of 5-10 times the effort I've had to put in.
@gravy - I have been thinking of blogging about some of the things I've learned over recent months. There seems to be a greater appetite for information on reverse engineering of games than there is actual information on the subject. I'll be sure to report back if I do manage to get anything written. With respect to the link you've provided to the MAME Pole Position driver, I can indeed confirn that this was extremely useful to me, helping me understand the format of the ROM files, address space, and where the ROM files get loaded to. Most of the driver code beyond that goes right over my head though!
@gilesgoat - now that you point out the specific details, I can see that I was a little hasty in dismissing the technical manual/schematics. It's just that anything I've ever tried to read that goes anywhere near the realm of electronics rather than software just doesn't make much sense! I wrote an IBM PC emulator around 12 years ago with a limited degree of success and even got several games running. However, I could never get the finer details of things like the PIC/PIT chips right as a result of reading documents that talked about things "going high" or "going low" and other such terms!
@Goatfoam - thanks for your kind words. I'll tackle a platform or shooter next time
@Muttley - I have to admit that Cannonball helped to inspire this project. I bow down to the dedication of the guy who created that - not only has he reverse engineered the game logic, but also the low-level sound code! I *think* he took some of the graphics handlng code from the MAME Outrun driver rather than reinventing the wheel though. I'd still imagine that the work undertaken on Cannonball is in the region of 5-10 times the effort I've had to put in.
@gravy - I have been thinking of blogging about some of the things I've learned over recent months. There seems to be a greater appetite for information on reverse engineering of games than there is actual information on the subject. I'll be sure to report back if I do manage to get anything written. With respect to the link you've provided to the MAME Pole Position driver, I can indeed confirn that this was extremely useful to me, helping me understand the format of the ROM files, address space, and where the ROM files get loaded to. Most of the driver code beyond that goes right over my head though!
@gilesgoat - now that you point out the specific details, I can see that I was a little hasty in dismissing the technical manual/schematics. It's just that anything I've ever tried to read that goes anywhere near the realm of electronics rather than software just doesn't make much sense! I wrote an IBM PC emulator around 12 years ago with a limited degree of success and even got several games running. However, I could never get the finer details of things like the PIC/PIT chips right as a result of reading documents that talked about things "going high" or "going low" and other such terms!
@Goatfoam - thanks for your kind words. I'll tackle a platform or shooter next time
Re: Show us yer programming projects!
I, er, got a bit carried away.
What started a week or so back as a little star trail generator has turned into a fully fledged deep sky astro photography image stacker, with auto image alignment and things like that.
Here's a test from 6 poorly aligned and noisy images of Orions sword taken by a mate of mine.
http://www.spectral3d.co.uk/misc/sword.jpg
I'm aiming to put a release together soon.
What started a week or so back as a little star trail generator has turned into a fully fledged deep sky astro photography image stacker, with auto image alignment and things like that.
Here's a test from 6 poorly aligned and noisy images of Orions sword taken by a mate of mine.
http://www.spectral3d.co.uk/misc/sword.jpg
I'm aiming to put a release together soon.
- super charlie
- Baaaaa!

- Posts: 1809
- Joined: Wed Mar 31, 2004 7:53 pm 0
- Location: Ipswich, suffolk
- Contact:
Re: Show us yer programming projects!
Been working on getting things running on vita for the last couple of weeks. It's going ok, though it's still missing particles and audio.
It might just be that my desktops are old and slow or something, but the vita is a surprisingly quick little thing. not had to change anything from the pc version at all yet.
Cheers
Charlie
It might just be that my desktops are old and slow or something, but the vita is a surprisingly quick little thing. not had to change anything from the pc version at all yet.
Cheers
Charlie
Visit my website here to have a look at my game.
- nyarla
- Baaaaaa!

- Posts: 2820
- Joined: Tue Jan 14, 2003 1:53 pm 0
- Location: i said kiss me you're beautiful these are truly the last days
- Contact:
Re: Show us yer programming projects!
ahh looking really lovely charlie!
i just got a new desktop pc, my first in many years, for the purposes of vita dev.. haven't delved into that yet (a bit scared!) but tonight i finished porting my OSX game framework to Windows and made this stupid video of some of my little WIP things all running at the same time... i've probably posted some of these in this thread before. none of them have progressed much in the last few months. and now i have to ignore them again for awhile while i get my head around vita code..
i just got a new desktop pc, my first in many years, for the purposes of vita dev.. haven't delved into that yet (a bit scared!) but tonight i finished porting my OSX game framework to Windows and made this stupid video of some of my little WIP things all running at the same time... i've probably posted some of these in this thread before. none of them have progressed much in the last few months. and now i have to ignore them again for awhile while i get my head around vita code..
Re: Show us yer programming projects!
After playing the Amiga version of Jimmy Whites Snooker and remembering just how good a piece of programming it was Iam now looking at doing a remake of it on the PC by reverse engineering the Amiga/ST version (mainly to understand just how these versions were so smooth).
I understand some of the optimisations but before I start poking around its code (I haven't done any 68000 coding for about 20+ years) I have a few questions.
Has it already been remade?
Has anyone else on here already looked at it?
Does anyone on here have any idea of how/why the polygon drawing routines were so much quicker than anything else around at the time?
I understand some of the optimisations but before I start poking around its code (I haven't done any 68000 coding for about 20+ years) I have a few questions.
Has it already been remade?
Has anyone else on here already looked at it?
Does anyone on here have any idea of how/why the polygon drawing routines were so much quicker than anything else around at the time?
Re: Show us yer programming projects!
IIRC when you pick your shot, direction and strength the cue pulls back and forth a few times and during that time the game does a shit load of pre-calculation for rendering the shot.
Re: Show us yer programming projects!
Yes, a very clever idea to precalculate everything like that.
I was also told that the table 'bed', because its always drawn first, only needs to fill in 1 of the 'bit-planes' (on the Amiga anyway).
And that the drawing order of each cushion, with respect to the balls, is based on whether the front or back cushion polygon is drawn.
So, if the front of the cushion actually needs to be drawn then the cushion is drawn before the balls but if it doesn't need to be drawn then the cushion is drawn after the balls.
Obvious when you think about it, but very clever!
I was also told that the table 'bed', because its always drawn first, only needs to fill in 1 of the 'bit-planes' (on the Amiga anyway).
And that the drawing order of each cushion, with respect to the balls, is based on whether the front or back cushion polygon is drawn.
So, if the front of the cushion actually needs to be drawn then the cushion is drawn before the balls but if it doesn't need to be drawn then the cushion is drawn after the balls.
Obvious when you think about it, but very clever!
Re: Show us yer programming projects!
You can also render realistically lit spheres insanely fast because it's a simple mathematical equation and it can be table-driven.
Pete Cooke worked that out when he was thinking about Gyron and realised you could do that to do all sorts of interesting graphical effects, hence coming up with Tau Ceti.
Pete Cooke worked that out when he was thinking about Gyron and realised you could do that to do all sorts of interesting graphical effects, hence coming up with Tau Ceti.
Re: Show us yer programming projects!
If I remember right the spheres are stored in a 2 dimensional table with each element pointing to an array of x/y coordinates with one of the array dimensions being sphere 'size' (distance) and the other being sphere 'tilt' (as the balls are all 2 colours).
Just to make it a bit more interesting/difficult I've started writing it using software rendering only!
Just to make it a bit more interesting/difficult I've started writing it using software rendering only!
Re: Show us yer programming projects!
IMAP wrote:If I remember right the spheres are stored in a 2 dimensional table with each element pointing to an array of x/y coordinates with one of the array dimensions being sphere 'size' (distance) and the other being sphere 'tilt' (as the balls are all 2 colours).
Just to make it a bit more interesting/difficult I've started writing it using software rendering only!
This screams, a perfect example of real-time ray tracing
Re: Show us yer programming projects!
It's got to be good old solid 3D Iam afraid!
I've made a start on the renderer and have something which resembles the snooker table.
As it's an 'old school' flat shaded software render with no Z-buffer Iam already having problems with the drawing order....
I've made a start on the renderer and have something which resembles the snooker table.
As it's an 'old school' flat shaded software render with no Z-buffer Iam already having problems with the drawing order....
- super charlie
- Baaaaa!

- Posts: 1809
- Joined: Wed Mar 31, 2004 7:53 pm 0
- Location: Ipswich, suffolk
- Contact:
Re: Show us yer programming projects!
particles are in as well as audio, though it's a bit overbright and quiet in this video.
It's running super smooth now. Just need to add a few more levels in.
Cheers
Charlie
It's running super smooth now. Just need to add a few more levels in.
Cheers
Charlie
Visit my website here to have a look at my game.



