Wireframe raycaster
Wireframe raycaster
Wireframe raycaster for Acorn Electron and BBC Micro.
Video only at the moment (running on Elk): https://www.youtube.com/watch?v=C2SSCCcKdY8
Runs about twice as fast on Beeb of course.
Don't know where this is going but it was good fun getting this to work in the first place
Video only at the moment (running on Elk): https://www.youtube.com/watch?v=C2SSCCcKdY8
Runs about twice as fast on Beeb of course.
Don't know where this is going but it was good fun getting this to work in the first place
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
Re: Wireframe raycaster
Looking good and faster than I would have expected.
- dominicbeesley
- Posts: 2212
- Joined: Tue Apr 30, 2013 12:16 pm
- Contact:
Re: Wireframe raycaster
Wow! How did you do that
Re: Wireframe raycaster
Thanks tricky and dominic!
I started by reading the tutorial at https://permadi.com/1996/05/ray-casting ... -contents/.
Then I wrote my version of a raycaster in C (using floating point at first, then fixed point integers only), which I subsequently translated by hand to 6502 asm. What followed was a long process of optimisations (tables, tables, tables) and sacrifices (like choosing a smaller viewport and using extra fat vertical slices). There is more info (and work in progress videos) on my Twitter timeline.
I started by reading the tutorial at https://permadi.com/1996/05/ray-casting ... -contents/.
Then I wrote my version of a raycaster in C (using floating point at first, then fixed point integers only), which I subsequently translated by hand to 6502 asm. What followed was a long process of optimisations (tables, tables, tables) and sacrifices (like choosing a smaller viewport and using extra fat vertical slices). There is more info (and work in progress videos) on my Twitter timeline.
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
Re: Wireframe raycaster
Now with shaded walls and floor https://www.youtube.com/watch?v=wR54miNxQDg
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
- Cybershark
- Posts: 741
- Joined: Wed Jun 14, 2006 11:16 pm
- Contact:
Re: Wireframe raycaster
That is quite some tech demo!
Re: Wireframe raycaster
Excellent work as always
Have you seen this for the C64 in C with source code?
https://drmortalwombat.itch.io/minotrace
Have you seen this for the C64 in C with source code?
https://drmortalwombat.itch.io/minotrace
Pitfall, Gridrunner, Matrix: Gridrunner 2, LaserZone, AcornViewer, AcornPad
Re: Wireframe raycaster
Thank you!
Wow, that is really fast and impressive. It is not for the first time I wish the Electron had a true text mode for this kind of thing.fizgog wrote: ↑Sun Nov 06, 2022 9:43 pm Have you seen this for the C64 in C with source code?
https://drmortalwombat.itch.io/minotrace
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
Re: Wireframe raycaster
Jafa only, that is if it really gives mode 7 as I'm not really sure what it is
I guess like me and my games a base electron is a must. I have done a couple that need sideways ram, but I guess that is on a par with a plus 1 - assuming that is the most common expansion.
I guess like me and my games a base electron is a must. I have done a couple that need sideways ram, but I guess that is on a par with a plus 1 - assuming that is the most common expansion.
Re: Wireframe raycaster
I'm sure this will sound familiar to you: I like diving right into the tricky, technical bits and almost always want to see them work on a vanilla machine (Electron of course, and if I can be bothered the Beeb as well ) That is where the challenge and fun is for me.
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
Re: Wireframe raycaster
Yep, 100% and when most of the reward is in the doing, you have to enjoy it.
You may have noticed that my "secret" project is B/B+ only but it does need two ROMs/SWRAM banks.
You may have noticed that my "secret" project is B/B+ only but it does need two ROMs/SWRAM banks.