Asteroids on Oscilloscope

The Joy of Tech - Anything and everything about all things shiny..
Post Reply
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

It's not the same without blaming somebody else with absolute conviction and making a whole bunch of bug tickets about it.
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

Today I'm trying to put all the different parts of my ship game together: got a music system, sound system, text, cutscenes and 3D. And right now if there's music playing, two characters talking and text displayed, I'm using about 16000 bytes of my 16384 bytes of ram... And that's a bit of a rough calculation, but if the double-buffered visual instruction queue bumps up to the bottom of the stack (which is gonna jump up in size when I allocate a temp array for affine transforming 2d shapes) everything go bang. (Thankfully not physically!)
User avatar
venusian
Baaaaaaa!
Baaaaaaa!
Posts: 6653
Joined: Wed Nov 06, 2002 2:22 pm 0
Location: South Gloucestershire

Re: Asteroids on Oscilloscope

Post by venusian »

They say you can't cross the same river twice. Is also true for functions which trash their own stacks.
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

One of the most display instruction hungry things to draw is text. I have to write the dialogue sequences with that in mind otherwise the two faces and the text exceed the buffer size and all manner of things get clobbered. But since the main loop stuff is much slower in comparison to the DMA interrupt handler that slurps up instructions from the queue and turns them into SPI instructions super quick, as the letters get added one by one, there's a split second where the instruction queue overwrites its own terminator and the interrupt routine is free to run into unrelated memory and draw whatever it likes.

"H.e.l.l.o, m.y. n.a.m.e. i.s. s.t.a.r.l.y.n.x. i.t.s. n.i.c.e. t.o. m.e.e.t. y. OUASOD ANIWENB!"I£I!"£!_________"
User avatar
super charlie
Baaaaa!
Baaaaa!
Posts: 1809
Joined: Wed Mar 31, 2004 7:53 pm 0
Location: Ipswich, suffolk
Contact:

Re: Asteroids on Oscilloscope

Post by super charlie »

What's stopping you from adding more memory, especially as it seems you'll get better results? Whatever though, this is still super cool. Get your proto finished and kickstart some vectrex-esque units.

Cheers
Charlie
Visit my website here to have a look at my game.
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

It's a dsPIC MCU so I could get more (or less) memory if I really needed by swapping it for another one from the series - there's hundreds of different variations and the code would be almost certainly compatible between 'em. I'm not particularly attached the one I'm using, I got it because it was pretty juicy (40 MIPS, 128k rom, 16k ram) and had internal dual DACs (which I didn't use in the end). I could lose the DACs and up the processing and RAM if I was desperate.

As for video output, anything other than phosphors would be pointless and anything other than LCDs would be too expensive... is there a market for crt TV conversion kits?
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12525
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Re: Asteroids on Oscilloscope

Post by tufty »

Just had my mind totally blown. Like, really, 100%, totally fucked out of my earholes.

Jerobeam Fenderson's "Oscilloscope music"
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
User avatar
fred_zen
Baaaa!
Baaaa!
Posts: 743
Joined: Mon Jun 26, 2006 3:15 pm 0
Location: France

Re: Asteroids on Oscilloscope

Post by fred_zen »

I’m sure your Ocelot would look amazing on a laser show Kami

adam
Baaaaaa!
Baaaaaa!
Posts: 4418
Joined: Sat Jun 24, 2006 9:15 pm 0

Re: Asteroids on Oscilloscope

Post by adam »

can't remember if i've already mentioned, but my friend found an old disco laser in a skip and put it under arduino control, had it drawing pics etc as i recall, he did a nice tie fighter
User avatar
skab
Baaaaaa!
Baaaaaa!
Posts: 3448
Joined: Sat Apr 27, 2002 1:53 am 0
Location: Barnyard, Ruhr area, Germany

Re: Asteroids on Oscilloscope

Post by skab »

tufty wrote:Just had my mind totally blown. Like, really, 100%, totally fucked out of my earholes.

Jerobeam Fenderson's "Oscilloscope music"
Mind-boggling, isn't it? First it's like chiptunes synced to some vector graphics. And then you realize that it's the pure audio that is generating the graphics. Incredibly beautiful and geeky to the max.

Even more fitting to this thread:



And this of course was the first time I heard about all this:

User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

Game stuff is all done. All the title sequences and highscores and whatnot.

I just need to write the music and sound effects, which means porting my old midi->ocelot convertor code for Mattsteroids from cpp to python so it fits in with everything else.

Here's a test!
https://www.youtube.com/watch?v=vfkkYuF7a0c
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

Alright, my fancy game is all done!

Now... laser projectors, huh? Where do I start with those?
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

I finally got out my DSLR and took some nice pictures in the dark...

Image
Image

How I'm ever going to do videos of this I don't know!
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: Asteroids on Oscilloscope

Post by Kamineko »

Image
Image
Image
Image
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Re: Asteroids on Oscilloscope

Post by Firefox »

That looks the business!

You'll have to ask Santa for some probes for your scope, now. :wink:
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
Post Reply