MakeTool:
PROC [
toolName: ROPE ¬ NIL, -- name of the tool
rayProc: RayProc ¬ NIL, -- position of the eye
client: Client ¬ [],
extraControls: ControlList ¬ NIL, -- in addition to the standard set
extraButtons: ButtonList ¬ NIL] -- in addition to the standard set
RETURNS [Tool];
The ray-traced image is shown on the color display.
rayProc is called with a unit length ray.
The standard set of controls includes:
X x-position of the camera
Y y-position of the camera
Z z-position of the camera
Scale scale of the camera
XRot x-rotation of the camera
YRot y-rotation of the camera
ZRot z-rotation of the camera
Fov field-of-view of the camera
The camera provides a view of the ray tracing world, including the object being ray-traced, the image plane, the eye-point and eye-direction, and, optionally, individual rays.
The standard set of buttons includes:
Start Begin or resume ray-tracing
Stop Suspend ray-tracing
Reset Reset the pixel index to the beginning of the frame
Display Options Select from various display/diagnostic options
Parameters Set such parameters as image width and height and ray-mode
Eye Set the position of the eye
View Set the view direction of the eye
Up Set the up direction relative to the view direction
Fov Set the image field-of-view