6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 9:39 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Jul 19, 2016 12:57 am 
Offline

Joined: Tue Jul 19, 2016 12:24 am
Posts: 8
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 19, 2016 5:34 am 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
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.

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 19, 2016 6:28 am 
Offline

Joined: Tue Jul 19, 2016 12:24 am
Posts: 8
I'll have a look, any links or what to search for? Any that would have run on original electron or BBC hardware?


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 19, 2016 7:10 am 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 679
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

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 19, 2016 11:59 am 
Offline

Joined: Tue Jul 19, 2016 12:24 am
Posts: 8
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.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 21, 2016 12:10 am 
Offline

Joined: Sat Dec 12, 2015 7:48 pm
Posts: 145
Location: Lake Tahoe
Here is raycasting on Apple II lores, 40x48 16 colors:
https://www.youtube.com/watch?v=QUN5CSWiLaw

About 20-25 FPS


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 21, 2016 2:05 am 
Offline

Joined: Sun Nov 08, 2009 1:56 am
Posts: 411
Location: Minnesota
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron