Home » Archimedes archive » Acorn User » AU 1993-08.adf » !3DGraphic/!Help

!3DGraphic/!Help

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 » Acorn User » AU 1993-08.adf
Filename: !3DGraphic/!Help
Read OK:
File size: 061C bytes
Load address: FFFFFF44
Exec address: AA4104C0
File contents
3D Graphics: A New Dimension (Part 3) 
By Dave Acton

Run this application to open a directory containing the programs from the third part of the series on 3D graphics.

Note 1: Before running any of the example programs, double-click on the BAU3D module to load it, and double-click on the Obey file ThisDir to set the CSD properly.

Note 2: If you have Risc OS 2, you must load the ColourTrans module before running any of these programs. This module can be found in the !System.Modules directory on Applications Disc One.

Note 3: ShowCity will not work on 1Mb machines. On other machines, make the Next slot as large as possible. If you get the error 'No room for this DIM', then make more memory free and increase the Next slot further.

Double-click on 3DDemo3 to display a rotating cathedral, the definition of which is stored inside the Objects directory.

Double-click on ShowCity to create a rotating animation of a city. Note that the program first sets up all the frames in the animation, and the images will flicker in the process. After a short while, the actual animation will be shown.

The source code for the BAU3D module is contained in BAU3DSrce and inside the Source directory. The program MakeCity creates a random city definition in the file Objects.world3. If you wish to run this program to create a new city definition, you should copy the MakeCity program and Objects directory to another disc, as the compression method used on this disc is read-only.

For more information, see the article on page 83.

� Copyright BBC Acorn User 1993
00000000  33 44 20 47 72 61 70 68  69 63 73 3a 20 41 20 4e  |3D Graphics: A N|
00000010  65 77 20 44 69 6d 65 6e  73 69 6f 6e 20 28 50 61  |ew Dimension (Pa|
00000020  72 74 20 33 29 20 0a 42  79 20 44 61 76 65 20 41  |rt 3) .By Dave A|
00000030  63 74 6f 6e 0a 0a 52 75  6e 20 74 68 69 73 20 61  |cton..Run this a|
00000040  70 70 6c 69 63 61 74 69  6f 6e 20 74 6f 20 6f 70  |pplication to op|
00000050  65 6e 20 61 20 64 69 72  65 63 74 6f 72 79 20 63  |en a directory c|
00000060  6f 6e 74 61 69 6e 69 6e  67 20 74 68 65 20 70 72  |ontaining the pr|
00000070  6f 67 72 61 6d 73 20 66  72 6f 6d 20 74 68 65 20  |ograms from the |
00000080  74 68 69 72 64 20 70 61  72 74 20 6f 66 20 74 68  |third part of th|
00000090  65 20 73 65 72 69 65 73  20 6f 6e 20 33 44 20 67  |e series on 3D g|
000000a0  72 61 70 68 69 63 73 2e  0a 0a 4e 6f 74 65 20 31  |raphics...Note 1|
000000b0  3a 20 42 65 66 6f 72 65  20 72 75 6e 6e 69 6e 67  |: Before running|
000000c0  20 61 6e 79 20 6f 66 20  74 68 65 20 65 78 61 6d  | any of the exam|
000000d0  70 6c 65 20 70 72 6f 67  72 61 6d 73 2c 20 64 6f  |ple programs, do|
000000e0  75 62 6c 65 2d 63 6c 69  63 6b 20 6f 6e 20 74 68  |uble-click on th|
000000f0  65 20 42 41 55 33 44 20  6d 6f 64 75 6c 65 20 74  |e BAU3D module t|
00000100  6f 20 6c 6f 61 64 20 69  74 2c 20 61 6e 64 20 64  |o load it, and d|
00000110  6f 75 62 6c 65 2d 63 6c  69 63 6b 20 6f 6e 20 74  |ouble-click on t|
00000120  68 65 20 4f 62 65 79 20  66 69 6c 65 20 54 68 69  |he Obey file Thi|
00000130  73 44 69 72 20 74 6f 20  73 65 74 20 74 68 65 20  |sDir to set the |
00000140  43 53 44 20 70 72 6f 70  65 72 6c 79 2e 0a 0a 4e  |CSD properly...N|
00000150  6f 74 65 20 32 3a 20 49  66 20 79 6f 75 20 68 61  |ote 2: If you ha|
00000160  76 65 20 52 69 73 63 20  4f 53 20 32 2c 20 79 6f  |ve Risc OS 2, yo|
00000170  75 20 6d 75 73 74 20 6c  6f 61 64 20 74 68 65 20  |u must load the |
00000180  43 6f 6c 6f 75 72 54 72  61 6e 73 20 6d 6f 64 75  |ColourTrans modu|
00000190  6c 65 20 62 65 66 6f 72  65 20 72 75 6e 6e 69 6e  |le before runnin|
000001a0  67 20 61 6e 79 20 6f 66  20 74 68 65 73 65 20 70  |g any of these p|
000001b0  72 6f 67 72 61 6d 73 2e  20 54 68 69 73 20 6d 6f  |rograms. This mo|
000001c0  64 75 6c 65 20 63 61 6e  20 62 65 20 66 6f 75 6e  |dule can be foun|
000001d0  64 20 69 6e 20 74 68 65  20 21 53 79 73 74 65 6d  |d in the !System|
000001e0  2e 4d 6f 64 75 6c 65 73  20 64 69 72 65 63 74 6f  |.Modules directo|
000001f0  72 79 20 6f 6e 20 41 70  70 6c 69 63 61 74 69 6f  |ry on Applicatio|
00000200  6e 73 20 44 69 73 63 20  4f 6e 65 2e 0a 0a 4e 6f  |ns Disc One...No|
00000210  74 65 20 33 3a 20 53 68  6f 77 43 69 74 79 20 77  |te 3: ShowCity w|
00000220  69 6c 6c 20 6e 6f 74 20  77 6f 72 6b 20 6f 6e 20  |ill not work on |
00000230  31 4d 62 20 6d 61 63 68  69 6e 65 73 2e 20 4f 6e  |1Mb machines. On|
00000240  20 6f 74 68 65 72 20 6d  61 63 68 69 6e 65 73 2c  | other machines,|
00000250  20 6d 61 6b 65 20 74 68  65 20 4e 65 78 74 20 73  | make the Next s|
00000260  6c 6f 74 20 61 73 20 6c  61 72 67 65 20 61 73 20  |lot as large as |
00000270  70 6f 73 73 69 62 6c 65  2e 20 49 66 20 79 6f 75  |possible. If you|
00000280  20 67 65 74 20 74 68 65  20 65 72 72 6f 72 20 27  | get the error '|
00000290  4e 6f 20 72 6f 6f 6d 20  66 6f 72 20 74 68 69 73  |No room for this|
000002a0  20 44 49 4d 27 2c 20 74  68 65 6e 20 6d 61 6b 65  | DIM', then make|
000002b0  20 6d 6f 72 65 20 6d 65  6d 6f 72 79 20 66 72 65  | more memory fre|
000002c0  65 20 61 6e 64 20 69 6e  63 72 65 61 73 65 20 74  |e and increase t|
000002d0  68 65 20 4e 65 78 74 20  73 6c 6f 74 20 66 75 72  |he Next slot fur|
000002e0  74 68 65 72 2e 0a 0a 44  6f 75 62 6c 65 2d 63 6c  |ther...Double-cl|
000002f0  69 63 6b 20 6f 6e 20 33  44 44 65 6d 6f 33 20 74  |ick on 3DDemo3 t|
00000300  6f 20 64 69 73 70 6c 61  79 20 61 20 72 6f 74 61  |o display a rota|
00000310  74 69 6e 67 20 63 61 74  68 65 64 72 61 6c 2c 20  |ting cathedral, |
00000320  74 68 65 20 64 65 66 69  6e 69 74 69 6f 6e 20 6f  |the definition o|
00000330  66 20 77 68 69 63 68 20  69 73 20 73 74 6f 72 65  |f which is store|
00000340  64 20 69 6e 73 69 64 65  20 74 68 65 20 4f 62 6a  |d inside the Obj|
00000350  65 63 74 73 20 64 69 72  65 63 74 6f 72 79 2e 0a  |ects directory..|
00000360  0a 44 6f 75 62 6c 65 2d  63 6c 69 63 6b 20 6f 6e  |.Double-click on|
00000370  20 53 68 6f 77 43 69 74  79 20 74 6f 20 63 72 65  | ShowCity to cre|
00000380  61 74 65 20 61 20 72 6f  74 61 74 69 6e 67 20 61  |ate a rotating a|
00000390  6e 69 6d 61 74 69 6f 6e  20 6f 66 20 61 20 63 69  |nimation of a ci|
000003a0  74 79 2e 20 4e 6f 74 65  20 74 68 61 74 20 74 68  |ty. Note that th|
000003b0  65 20 70 72 6f 67 72 61  6d 20 66 69 72 73 74 20  |e program first |
000003c0  73 65 74 73 20 75 70 20  61 6c 6c 20 74 68 65 20  |sets up all the |
000003d0  66 72 61 6d 65 73 20 69  6e 20 74 68 65 20 61 6e  |frames in the an|
000003e0  69 6d 61 74 69 6f 6e 2c  20 61 6e 64 20 74 68 65  |imation, and the|
000003f0  20 69 6d 61 67 65 73 20  77 69 6c 6c 20 66 6c 69  | images will fli|
00000400  63 6b 65 72 20 69 6e 20  74 68 65 20 70 72 6f 63  |cker in the proc|
00000410  65 73 73 2e 20 41 66 74  65 72 20 61 20 73 68 6f  |ess. After a sho|
00000420  72 74 20 77 68 69 6c 65  2c 20 74 68 65 20 61 63  |rt while, the ac|
00000430  74 75 61 6c 20 61 6e 69  6d 61 74 69 6f 6e 20 77  |tual animation w|
00000440  69 6c 6c 20 62 65 20 73  68 6f 77 6e 2e 0a 0a 54  |ill be shown...T|
00000450  68 65 20 73 6f 75 72 63  65 20 63 6f 64 65 20 66  |he source code f|
00000460  6f 72 20 74 68 65 20 42  41 55 33 44 20 6d 6f 64  |or the BAU3D mod|
00000470  75 6c 65 20 69 73 20 63  6f 6e 74 61 69 6e 65 64  |ule is contained|
00000480  20 69 6e 20 42 41 55 33  44 53 72 63 65 20 61 6e  | in BAU3DSrce an|
00000490  64 20 69 6e 73 69 64 65  20 74 68 65 20 53 6f 75  |d inside the Sou|
000004a0  72 63 65 20 64 69 72 65  63 74 6f 72 79 2e 20 54  |rce directory. T|
000004b0  68 65 20 70 72 6f 67 72  61 6d 20 4d 61 6b 65 43  |he program MakeC|
000004c0  69 74 79 20 63 72 65 61  74 65 73 20 61 20 72 61  |ity creates a ra|
000004d0  6e 64 6f 6d 20 63 69 74  79 20 64 65 66 69 6e 69  |ndom city defini|
000004e0  74 69 6f 6e 20 69 6e 20  74 68 65 20 66 69 6c 65  |tion in the file|
000004f0  20 4f 62 6a 65 63 74 73  2e 77 6f 72 6c 64 33 2e  | Objects.world3.|
00000500  20 49 66 20 79 6f 75 20  77 69 73 68 20 74 6f 20  | If you wish to |
00000510  72 75 6e 20 74 68 69 73  20 70 72 6f 67 72 61 6d  |run this program|
00000520  20 74 6f 20 63 72 65 61  74 65 20 61 20 6e 65 77  | to create a new|
00000530  20 63 69 74 79 20 64 65  66 69 6e 69 74 69 6f 6e  | city definition|
00000540  2c 20 79 6f 75 20 73 68  6f 75 6c 64 20 63 6f 70  |, you should cop|
00000550  79 20 74 68 65 20 4d 61  6b 65 43 69 74 79 20 70  |y the MakeCity p|
00000560  72 6f 67 72 61 6d 20 61  6e 64 20 4f 62 6a 65 63  |rogram and Objec|
00000570  74 73 20 64 69 72 65 63  74 6f 72 79 20 74 6f 20  |ts directory to |
00000580  61 6e 6f 74 68 65 72 20  64 69 73 63 2c 20 61 73  |another disc, as|
00000590  20 74 68 65 20 63 6f 6d  70 72 65 73 73 69 6f 6e  | the compression|
000005a0  20 6d 65 74 68 6f 64 20  75 73 65 64 20 6f 6e 20  | method used on |
000005b0  74 68 69 73 20 64 69 73  63 20 69 73 20 72 65 61  |this disc is rea|
000005c0  64 2d 6f 6e 6c 79 2e 0a  0a 46 6f 72 20 6d 6f 72  |d-only...For mor|
000005d0  65 20 69 6e 66 6f 72 6d  61 74 69 6f 6e 2c 20 73  |e information, s|
000005e0  65 65 20 74 68 65 20 61  72 74 69 63 6c 65 20 6f  |ee the article o|
000005f0  6e 20 70 61 67 65 20 38  33 2e 0a 0a a9 20 43 6f  |n page 83.... Co|
00000600  70 79 72 69 67 68 74 20  42 42 43 20 41 63 6f 72  |pyright BBC Acor|
00000610  6e 20 55 73 65 72 20 31  39 39 33 0a              |n User 1993.|
0000061c