Rotating 3D Earth (Elk/Beeb)
Rotating 3D Earth (Elk/Beeb)
Demonstration of fake spherical image mapping.
Cross-platform demo. Runs on Acorn Electron and BBC Micro, Master 128. PAGE needs to be &E00 though!
SPACE toggles between raster version and solid version.
Real time calculation (using lookup tables obviously), not some animation frames read from disk
Cross-platform demo. Runs on Acorn Electron and BBC Micro, Master 128. PAGE needs to be &E00 though!
SPACE toggles between raster version and solid version.
Real time calculation (using lookup tables obviously), not some animation frames read from disk
Last edited by 0xC0DE on Wed May 20, 2020 11:42 am, edited 1 time in total.
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: Rotating 3D Earth (Elk/Beeb)
Nice demo .... looks great ......
Greetings
Kees
Greetings
Kees
Re: Rotating 3D Earth (Elk/Beeb)
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: Rotating 3D Earth (Elk/Beeb)
Nice, now for MODE 0 with dither
Re: Rotating 3D Earth (Elk/Beeb)
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: Rotating 3D Earth (Elk/Beeb)
Trying to run this in JSBeeb - I set PAGE to &E00 but I still get the message about setting PAGE. What am I doing wrong?
Re: Rotating 3D Earth (Elk/Beeb)
DFS is in the way on a regular BBC Micro. Altering PAGE manually won't change that.
Try BBC Master 128 mode of jsbeeb: https://bbc.godbolt.org/?&model=Master
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
- marcusjambler
- Posts: 1147
- Joined: Mon May 22, 2017 12:20 pm
- Location: Bradford
- Contact:
Re: Rotating 3D Earth (Elk/Beeb)
Like it
Re: Rotating 3D Earth (Elk/Beeb)
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: Rotating 3D Earth (Elk/Beeb)
Thanks that works! Out of interest how would you get it running on a Model B? I there a way to load it into memory, disable DFS and then run?0xC0DE wrote: ↑Wed May 20, 2020 12:20 pm DFS is in the way on a regular BBC Micro. Altering PAGE manually won't change that.
Try BBC Master 128 mode of jsbeeb: https://bbc.godbolt.org/?&model=Master
Re: Rotating 3D Earth (Elk/Beeb)
Yes, that is one possibility (but I was lazy for this version ). The other option is to use a DFS ROM that keeps PAGE at &E00.pdjstone wrote: ↑Wed May 20, 2020 12:39 pmThanks that works! Out of interest how would you get it running on a Model B? I there a way to load it into memory, disable DFS and then run?0xC0DE wrote: ↑Wed May 20, 2020 12:20 pm DFS is in the way on a regular BBC Micro. Altering PAGE manually won't change that.
Try BBC Master 128 mode of jsbeeb: https://bbc.godbolt.org/?&model=Master
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: Rotating 3D Earth (Elk/Beeb)
!BOOT:pdjstone wrote: ↑Wed May 20, 2020 12:39 pmThanks that works! Out of interest how would you get it running on a Model B? I there a way to load it into memory, disable DFS and then run?0xC0DE wrote: ↑Wed May 20, 2020 12:20 pm DFS is in the way on a regular BBC Micro. Altering PAGE manually won't change that.
Try BBC Master 128 mode of jsbeeb: https://bbc.godbolt.org/?&model=Master
Code: Select all
*BASIC
MODE 7:*LOAD 0xC0DE 5000
OS."TAPE":OS."FX143,12,255":F.A%=0TO&25FFS.4:A%!&E00=A%!&5000:N.:MO.2:MO.5:V.23,1,0;0;0;0;19,1,4;0;19,3,7;0;12,21:CALL &E00
Code: Select all
$ bbcbasic
PDP11 BBC BASIC IV Version 0.45
(C) Copyright J.G.Harston 1989,2005-2024
>_
Re: Rotating 3D Earth (Elk/Beeb)
Well, somebody wasn't lazy like I was, thanks!jgharston wrote: ↑Wed May 20, 2020 12:57 pm!BOOT:pdjstone wrote: ↑Wed May 20, 2020 12:39 pmThanks that works! Out of interest how would you get it running on a Model B? I there a way to load it into memory, disable DFS and then run?0xC0DE wrote: ↑Wed May 20, 2020 12:20 pm DFS is in the way on a regular BBC Micro. Altering PAGE manually won't change that.
Try BBC Master 128 mode of jsbeeb: https://bbc.godbolt.org/?&model=MasterCode: Select all
*BASIC MODE 7:*LOAD 0xC0DE 5000 OS."TAPE":OS."FX143,12,255":F.A%=0TO&25FFS.4:A%!&E00=A%!&5000:N.:MO.2:MO.5:V.23,1,0;0;0;0;19,1,4;0;19,3,7;0;12,21:CALL &E00
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: Rotating 3D Earth (Elk/Beeb)
Could even put it in the code.0xC0DE wrote: ↑Wed May 20, 2020 1:04 pmWell, somebody wasn't lazy like I was, thanks!jgharston wrote: ↑Wed May 20, 2020 12:57 pm !BOOT:Code: Select all
*BASIC MODE 7:*LOAD 0xC0DE 5000 OS."TAPE":OS."FX143,12,255":F.A%=0TO&25FFS.4:A%!&E00=A%!&5000:N.:MO.2:MO.5:V.23,1,0;0;0;0;19,1,4;0;19,3,7;0;12,21:CALL &E00
Set load address=FFFF5000
Set exec address=FFFF7628 (whatever L7628 turns out to be)
Append:
.L7600
.loop2
LDA vdu,Y:JSR OSWRCH
INY:CPY #L7628-vdu:BNE loop2
JMP &E00
.vdu
EQUS CHR$22+CHR$2+CHR$22+CHR$5
EQUS CHR$23+CHR$1+STRING$(8,CHR$0)
EQUS CHR$19+CHR$1+CHR$4+STRING$(3,CHR$0)
EQUS CHR$19+CHR$3+CHR$7+STRING$(3,CHR$0)
.L7628 :\ check this
LDA #140:JSR OSBYTE :\ Select tape
LDA #143:LDX #12:LDY #255:JSR OSBYTE :\ Turn off NMIs
LDY #0:STY &70:STY &72 :\ Copy from 5000 -> 0E00
LDA #&50:STA &71
LDA #&0E:STA &73
.loop1
LDA (&70),Y:STA (&72),Y:INY:BNE loop1
INC &71:INC &73
LDA &73:CMP #&76:BNE loop1
JMP &3400
...except my arithmetic tells me the code lives at &E00-&3400, and the MODE 2 will overwrite the code at &3000-&3400.
Code: Select all
$ bbcbasic
PDP11 BBC BASIC IV Version 0.45
(C) Copyright J.G.Harston 1989,2005-2024
>_