home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
graphics
/
a270_1
/
!RelativRT
/
!Help
next >
Wrap
Text File
|
1992-07-01
|
1KB
|
30 lines
Submitted-by: osmith@acorn.co.uk
Here is Paul Ballister's relativistic ray tracing source code. You can mail
him as pnb12@phx.cam.ac.uk Please note that this is not production quality
code, and getting it to do what you want is tricky. Adding objects to the
scene requires you to write code - the existing objects (most of them
commented out) are at the end of the program. As supplied, the program will
ray trace to a mode 28 screen, the scene is a shiny sphere above a chess
board, with the sphere moving at 0.5C to the right and 0.1C downwards.
The code is supplied as three files. The !Run file, AsLib BASIC library and
RayTrace BASIC program should all be in the same directory. Pressing 'A'
after the trace will cause the scene to be saved with the filename at the
start of the code. To change the screen mode used and other bits and pieces,
change the variables at the start of the program.
---
Owen Smith:
A minor addition to the instructions for running the relativistic ray
tracing code (after it crashed for someone here). Run the desktop in Mode 28
(or whatever mode the ray tracer is set to trace in) before running it.
Otherwise you will get an address exception due to insufficient screen
memory being allocated.
Brian Brunswick:
Alternatively just change the `MODE0' to `MODE MD%'