Home » Archimedes archive » Archimedes World » AW-1991-11.adf » November91 » !AWNov91/Goodies/3DGraphics/Demos/A+B
!AWNov91/Goodies/3DGraphics/Demos/A+B
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Archimedes World » AW-1991-11.adf » November91 |
Filename: | !AWNov91/Goodies/3DGraphics/Demos/A+B |
Read OK: | ✔ |
File size: | 048B bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM >A+B 20: 30REM set up program mode, variables etc, 40: 50*RMENSURE 3DGraphics 0.01 RMLOAD 3DGRAPHICS 60MODE0 70ORIGIN 640,512 80OFF 90DIM block% 1024 100DIM plot_block% 1024 110: 120REM Read in Co-Ordinates 130: 140T%=0 150REPEAT 160READ v% 170!(block%+(T%*4))=v% 180T%+=1 190UNTIL v%=256 200: 210REM Set up initial angles 220: 230x%=0 240y%=180 250z%=270 260view%=0 270: 280REPEAT 290SYS 6,113,2:SYS 6,112,1:PROCscreen 300SYS 6,113,1:SYS 6,112,2:PROCscreen 310UNTIL FALSE 320: 330DEFPROCscreen 340z%+=2 350y%+=1 360: 370REM The following line calculates all the 3D points into 2D points 380: 390SYS "Vector_CalculateObject",block%,plot_block%,x%,y%,z%,view% 400: 410REM The following line plots the 2D points on the screen 420: 430CLS 440SYS "Vector_PlotObjectLine",plot_block% 450ENDPROC 460: 470REM Co-Ordinate Data 480REM <DATA 256,0,0,0> Terminates Data Block 490: 500DATA 4,100,100,0 510DATA 5,100,300,0 520DATA 5,250,300,0 530DATA 5,250,100,0 540DATA 4,100,150,0 550DATA 5,250,150,0 560DATA 4,275,200,0 570DATA 5,375,200,0 580DATA 4,325,250,0 590DATA 5,325,150,0 600DATA 4,400,100,0 610DATA 5,400,300,0 620DATA 5,550,300,0 630DATA 5,550,225,0 640DATA 5,500,200,0 650DATA 5,400,200,0 660DATA 4,500,200,0 670DATA 5,550,175,0 680DATA 5,550,100,0 690DATA 5,400,100,0 700DATA 256,0,0,0
� >A+B : )� set up program mode, variables etc, (: 2/*RMENSURE 3DGraphics 0.01 RMLOAD 3DGRAPHICS <�0 Fȑ 640,512 P� Z� block% 1024 d� plot_block% 1024 n: x� Read in Co-Ordinates �: �T%=0 �� �� v% �!(block%+(T%*4))=v% � T%+=1 �� v%=256 �: �� Set up initial angles �: �x%=0 � y%=180 � z%=270 view%=0 : � "!ș 6,113,2:ș 6,112,1:�screen ,!ș 6,113,1:ș 6,112,2:�screen 6� � @: J��screen T z%+=2 ^ y%+=1 h: rD� The following line calculates all the 3D points into 2D points |: �Aș "Vector_CalculateObject",block%,plot_block%,x%,y%,z%,view% �: �:� The following line plots the 2D points on the screen �: �� �*ș "Vector_PlotObjectLine",plot_block% �� �: �� Co-Ordinate Data �,� <DATA 256,0,0,0> Terminates Data Block �: �� 4,100,100,0 �� 5,100,300,0 � 5,250,300,0 � 5,250,100,0 � 4,100,150,0 &� 5,250,150,0 0� 4,275,200,0 :� 5,375,200,0 D� 4,325,250,0 N� 5,325,150,0 X� 4,400,100,0 b� 5,400,300,0 l� 5,550,300,0 v� 5,550,225,0 �� 5,500,200,0 �� 5,400,200,0 �� 4,500,200,0 �� 5,550,175,0 �� 5,550,100,0 �� 5,400,100,0 �� 256,0,0,0 �
00000000 0d 00 0a 0a f4 20 3e 41 2b 42 0d 00 14 05 3a 0d |..... >A+B....:.| 00000010 00 1e 29 f4 20 73 65 74 20 75 70 20 70 72 6f 67 |..). set up prog| 00000020 72 61 6d 20 6d 6f 64 65 2c 20 76 61 72 69 61 62 |ram mode, variab| 00000030 6c 65 73 20 65 74 63 2c 0d 00 28 05 3a 0d 00 32 |les etc,..(.:..2| 00000040 2f 2a 52 4d 45 4e 53 55 52 45 20 33 44 47 72 61 |/*RMENSURE 3DGra| 00000050 70 68 69 63 73 20 30 2e 30 31 20 52 4d 4c 4f 41 |phics 0.01 RMLOA| 00000060 44 20 33 44 47 52 41 50 48 49 43 53 0d 00 3c 06 |D 3DGRAPHICS..<.| 00000070 eb 30 0d 00 46 0e c8 91 20 36 34 30 2c 35 31 32 |.0..F... 640,512| 00000080 0d 00 50 05 87 0d 00 5a 11 de 20 62 6c 6f 63 6b |..P....Z.. block| 00000090 25 20 31 30 32 34 0d 00 64 16 de 20 70 6c 6f 74 |% 1024..d.. plot| 000000a0 5f 62 6c 6f 63 6b 25 20 31 30 32 34 0d 00 6e 05 |_block% 1024..n.| 000000b0 3a 0d 00 78 1a f4 20 52 65 61 64 20 69 6e 20 43 |:..x.. Read in C| 000000c0 6f 2d 4f 72 64 69 6e 61 74 65 73 0d 00 82 05 3a |o-Ordinates....:| 000000d0 0d 00 8c 08 54 25 3d 30 0d 00 96 05 f5 0d 00 a0 |....T%=0........| 000000e0 08 f3 20 76 25 0d 00 aa 17 21 28 62 6c 6f 63 6b |.. v%....!(block| 000000f0 25 2b 28 54 25 2a 34 29 29 3d 76 25 0d 00 b4 09 |%+(T%*4))=v%....| 00000100 54 25 2b 3d 31 0d 00 be 0c fd 20 76 25 3d 32 35 |T%+=1..... v%=25| 00000110 36 0d 00 c8 05 3a 0d 00 d2 1b f4 20 53 65 74 20 |6....:..... Set | 00000120 75 70 20 69 6e 69 74 69 61 6c 20 61 6e 67 6c 65 |up initial angle| 00000130 73 0d 00 dc 05 3a 0d 00 e6 08 78 25 3d 30 0d 00 |s....:....x%=0..| 00000140 f0 0a 79 25 3d 31 38 30 0d 00 fa 0a 7a 25 3d 32 |..y%=180....z%=2| 00000150 37 30 0d 01 04 0b 76 69 65 77 25 3d 30 0d 01 0e |70....view%=0...| 00000160 05 3a 0d 01 18 05 f5 0d 01 22 21 c8 99 20 36 2c |.:......."!.. 6,| 00000170 31 31 33 2c 32 3a c8 99 20 36 2c 31 31 32 2c 31 |113,2:.. 6,112,1| 00000180 3a f2 73 63 72 65 65 6e 0d 01 2c 21 c8 99 20 36 |:.screen..,!.. 6| 00000190 2c 31 31 33 2c 31 3a c8 99 20 36 2c 31 31 32 2c |,113,1:.. 6,112,| 000001a0 32 3a f2 73 63 72 65 65 6e 0d 01 36 07 fd 20 a3 |2:.screen..6.. .| 000001b0 0d 01 40 05 3a 0d 01 4a 0c dd f2 73 63 72 65 65 |..@.:..J...scree| 000001c0 6e 0d 01 54 09 7a 25 2b 3d 32 0d 01 5e 09 79 25 |n..T.z%+=2..^.y%| 000001d0 2b 3d 31 0d 01 68 05 3a 0d 01 72 44 f4 20 54 68 |+=1..h.:..rD. Th| 000001e0 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6c 69 6e 65 |e following line| 000001f0 20 63 61 6c 63 75 6c 61 74 65 73 20 61 6c 6c 20 | calculates all | 00000200 74 68 65 20 33 44 20 70 6f 69 6e 74 73 20 69 6e |the 3D points in| 00000210 74 6f 20 32 44 20 70 6f 69 6e 74 73 0d 01 7c 05 |to 2D points..|.| 00000220 3a 0d 01 86 41 c8 99 20 22 56 65 63 74 6f 72 5f |:...A.. "Vector_| 00000230 43 61 6c 63 75 6c 61 74 65 4f 62 6a 65 63 74 22 |CalculateObject"| 00000240 2c 62 6c 6f 63 6b 25 2c 70 6c 6f 74 5f 62 6c 6f |,block%,plot_blo| 00000250 63 6b 25 2c 78 25 2c 79 25 2c 7a 25 2c 76 69 65 |ck%,x%,y%,z%,vie| 00000260 77 25 0d 01 90 05 3a 0d 01 9a 3a f4 20 54 68 65 |w%....:...:. The| 00000270 20 66 6f 6c 6c 6f 77 69 6e 67 20 6c 69 6e 65 20 | following line | 00000280 70 6c 6f 74 73 20 74 68 65 20 32 44 20 70 6f 69 |plots the 2D poi| 00000290 6e 74 73 20 6f 6e 20 74 68 65 20 73 63 72 65 65 |nts on the scree| 000002a0 6e 0d 01 a4 05 3a 0d 01 ae 05 db 0d 01 b8 2a c8 |n....:........*.| 000002b0 99 20 22 56 65 63 74 6f 72 5f 50 6c 6f 74 4f 62 |. "Vector_PlotOb| 000002c0 6a 65 63 74 4c 69 6e 65 22 2c 70 6c 6f 74 5f 62 |jectLine",plot_b| 000002d0 6c 6f 63 6b 25 0d 01 c2 05 e1 0d 01 cc 05 3a 0d |lock%.........:.| 000002e0 01 d6 16 f4 20 43 6f 2d 4f 72 64 69 6e 61 74 65 |.... Co-Ordinate| 000002f0 20 44 61 74 61 0d 01 e0 2c f4 20 3c 44 41 54 41 | Data...,. <DATA| 00000300 20 32 35 36 2c 30 2c 30 2c 30 3e 20 54 65 72 6d | 256,0,0,0> Term| 00000310 69 6e 61 74 65 73 20 44 61 74 61 20 42 6c 6f 63 |inates Data Bloc| 00000320 6b 0d 01 ea 05 3a 0d 01 f4 11 dc 20 34 2c 31 30 |k....:..... 4,10| 00000330 30 2c 31 30 30 2c 30 0d 01 fe 11 dc 20 35 2c 31 |0,100,0..... 5,1| 00000340 30 30 2c 33 30 30 2c 30 0d 02 08 11 dc 20 35 2c |00,300,0..... 5,| 00000350 32 35 30 2c 33 30 30 2c 30 0d 02 12 11 dc 20 35 |250,300,0..... 5| 00000360 2c 32 35 30 2c 31 30 30 2c 30 0d 02 1c 11 dc 20 |,250,100,0..... | 00000370 34 2c 31 30 30 2c 31 35 30 2c 30 0d 02 26 11 dc |4,100,150,0..&..| 00000380 20 35 2c 32 35 30 2c 31 35 30 2c 30 0d 02 30 11 | 5,250,150,0..0.| 00000390 dc 20 34 2c 32 37 35 2c 32 30 30 2c 30 0d 02 3a |. 4,275,200,0..:| 000003a0 11 dc 20 35 2c 33 37 35 2c 32 30 30 2c 30 0d 02 |.. 5,375,200,0..| 000003b0 44 11 dc 20 34 2c 33 32 35 2c 32 35 30 2c 30 0d |D.. 4,325,250,0.| 000003c0 02 4e 11 dc 20 35 2c 33 32 35 2c 31 35 30 2c 30 |.N.. 5,325,150,0| 000003d0 0d 02 58 11 dc 20 34 2c 34 30 30 2c 31 30 30 2c |..X.. 4,400,100,| 000003e0 30 0d 02 62 11 dc 20 35 2c 34 30 30 2c 33 30 30 |0..b.. 5,400,300| 000003f0 2c 30 0d 02 6c 11 dc 20 35 2c 35 35 30 2c 33 30 |,0..l.. 5,550,30| 00000400 30 2c 30 0d 02 76 11 dc 20 35 2c 35 35 30 2c 32 |0,0..v.. 5,550,2| 00000410 32 35 2c 30 0d 02 80 11 dc 20 35 2c 35 30 30 2c |25,0..... 5,500,| 00000420 32 30 30 2c 30 0d 02 8a 11 dc 20 35 2c 34 30 30 |200,0..... 5,400| 00000430 2c 32 30 30 2c 30 0d 02 94 11 dc 20 34 2c 35 30 |,200,0..... 4,50| 00000440 30 2c 32 30 30 2c 30 0d 02 9e 11 dc 20 35 2c 35 |0,200,0..... 5,5| 00000450 35 30 2c 31 37 35 2c 30 0d 02 a8 11 dc 20 35 2c |50,175,0..... 5,| 00000460 35 35 30 2c 31 30 30 2c 30 0d 02 b2 11 dc 20 35 |550,100,0..... 5| 00000470 2c 34 30 30 2c 31 30 30 2c 30 0d 02 bc 0f dc 20 |,400,100,0..... | 00000480 32 35 36 2c 30 2c 30 2c 30 0d ff |256,0,0,0..| 0000048b