Idea for 3D on elec /BBC... Am I mad?

Programming the 6502 microprocessor and its relatives in assembly and other languages.
Post Reply
Stonemonkey
Posts: 8
Joined: 19 Jul 2016

Idea for 3D on elec /BBC... Am I mad?

Post by Stonemonkey »

Hi all, first off I'll say I realise this is a big ask so I don't know if anyone will be interested, particularly as I don't know how well this could really work or if anyone here would really be interested in attempting such a thing.

My first computer was an electron when I was about 10 and I got into programming it straight away, mostly basic but I picked up a bit of assembly too. I dabbled with some 3D and had some slow wireframe shapes spinning around but I always wanted to create some sort of 3D maze to move through. I did buy one maze game for it but you had to wait a while as it drew each frame and you could only turn right angles or forward a block at a time.
Years later I have done a fair bit of graphics programming on PC and came up with a way of drawing something looking similar to raycasting vertical walls from a 2D map but done a very different way and I've always thought it might just be possible to get it running on an electron or BBC at a reasonable speed. I did make an attempt a few years ago on an emulator but got a bit lost with it and I've not got the code any more.
So, would anyone here have any interest in working or helping in such a thing? Or am I just crazy in wondering if it could be done?

Cheers, sm
White Flame
Posts: 704
Joined: 24 Jul 2012

Re: Idea for 3D on elec /BBC... Am I mad?

Post by White Flame »

There's been plenty of Wolfenstein 3D style graphics from the demoscene on 6502-based home computers. There's certainly nothing preventing such renderers from existing, just tradeoffs as to how fast you want it to run.
Stonemonkey
Posts: 8
Joined: 19 Jul 2016

Re: Idea for 3D on elec /BBC... Am I mad?

Post by Stonemonkey »

I'll have a look, any links or what to search for? Any that would have run on original electron or BBC hardware?
White Flame
Posts: 704
Joined: 24 Jul 2012

Re: Idea for 3D on elec /BBC... Am I mad?

Post by White Flame »

I'm a Commodore 64 guy, so here's a few examples from it. (1MHz, and a non-linear framebuffer with 8x8 pixel palette cells)

https://youtu.be/ZQZOvsIHLT0?t=364
https://www.youtube.com/watch?v=X3Oqz5WjDPI

and one on the Atari, which I believe is ~2MHz and has a linear framebuffer:

https://youtu.be/ZQZOvsIHLT0?t=364
Stonemonkey
Posts: 8
Joined: 19 Jul 2016

Re: Idea for 3D on elec /BBC... Am I mad?

Post by Stonemonkey »

Very cool thanks. Are there any articles on how they're done?
I wasn't thinking of texturing, only solid or checked pixels. A big difference though would be that walls could be positioned anywhere at angles and any length.
resman
Posts: 154
Joined: 12 Dec 2015
Location: Lake Tahoe
Contact:

Re: Idea for 3D on elec /BBC... Am I mad?

Post by resman »

Here is raycasting on Apple II lores, 40x48 16 colors:
https://www.youtube.com/watch?v=QUN5CSWiLaw

About 20-25 FPS
teamtempest
Posts: 443
Joined: 08 Nov 2009
Location: Minnesota
Contact:

Re: Idea for 3D on elec /BBC... Am I mad?

Post by teamtempest »

There's also a game called Wayout, from 1982. YouTube has a video of the Apple II version, also available for Atari and C64:

https://www.youtube.com/watch?v=frFvZwa_5bo
Post Reply