Show us yer programming projects!

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Show us yer programming projects!

Post by gravy »

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
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Show us yer programming projects!

Post by GoatFoam »

That is a really impressive conversion. The only downside is that I have always been awful at racing games :)
chicane
Posts: 5
Joined: Sat Jan 04, 2014 12:01 pm 0

Re: Show us yer programming projects!

Post by chicane »

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 :D
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Show us yer programming projects!

Post by GoatFoam »

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.
User avatar
super charlie
Baaaaa!
Baaaaa!
Posts: 1809
Joined: Wed Mar 31, 2004 7:53 pm 0
Location: Ipswich, suffolk
Contact:

Re: Show us yer programming projects!

Post by super charlie »

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
Visit my website here to have a look at my game.
User avatar
nyarla
Baaaaaa!
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!

Post by nyarla »

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.. :)

IMAP
Baa!
Baa!
Posts: 47
Joined: Sun Aug 12, 2007 8:44 pm 0
Location: Jarrow

Re: Show us yer programming projects!

Post by IMAP »

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?
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Show us yer programming projects!

Post by gravy »

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.
IMAP
Baa!
Baa!
Posts: 47
Joined: Sun Aug 12, 2007 8:44 pm 0
Location: Jarrow

Re: Show us yer programming projects!

Post by IMAP »

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!
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: Show us yer programming projects!

Post by Dio »

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.
IMAP
Baa!
Baa!
Posts: 47
Joined: Sun Aug 12, 2007 8:44 pm 0
Location: Jarrow

Re: Show us yer programming projects!

Post by IMAP »

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!
User avatar
sdetoni
Baaaaa!
Baaaaa!
Posts: 1368
Joined: Tue Jun 18, 2002 4:14 am 0
Location: New Sheepland

Re: Show us yer programming projects!

Post by sdetoni »

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 :D
IMAP
Baa!
Baa!
Posts: 47
Joined: Sun Aug 12, 2007 8:44 pm 0
Location: Jarrow

Re: Show us yer programming projects!

Post by IMAP »

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....
User avatar
Istar
Baaaaaa!
Baaaaaa!
Posts: 4869
Joined: Mon Apr 22, 2002 4:42 pm 0
Location: London, UK.

Re: Show us yer programming projects!

Post by Istar »

User avatar
super charlie
Baaaaa!
Baaaaa!
Posts: 1809
Joined: Wed Mar 31, 2004 7:53 pm 0
Location: Ipswich, suffolk
Contact:

Re: Show us yer programming projects!

Post by super charlie »

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
Visit my website here to have a look at my game.
Post Reply