home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Graphics
/
graphics-16000.iso
/
msdos
/
raytrace
/
rt800
/
csg.scn
< prev
next >
Wrap
Text File
|
1992-07-26
|
1KB
|
57 lines
% example to be traced with parameters like
% w512 p2 A0.1 t1 I1 - good quality
% or then
% w512 p3 A.05 t1 I1 j1 - very good quality
%%%%% start
eye 5 2 2
fov 20
background light_sky_blue
ambient mono 0.2 % dark grey
light point 3 5 4 white
surface matte red % default surface
%%%%% a simple CSG example
csg subtraction begin
% no attributes for this CSG, so it uses the attributes
% of its nodes...
% left node
csg subtraction
% attributes of this CSG object
surface matte white
texture scale 0.2
checkers surface matte mono 0.3 translate 0.1 0.1 0.1
data begin
box 0 0 0 1 1 1
csg next
box 0 0 0 1.01 0.5 0.5
list begin
% a cylinder must be enclosed in a list, because it is
% not a closed object, but 3 objects joined together
cylinder 0 1.01 0 0 -1.01 0 0.5
list end
csg end
csg next
% right node
sphere 1 1 1 0.5 % default surface assumed
sphere 1 1 -1 0.5
sphere surface matte blue data 1 -1 1 0.5
sphere surface matte blue data 1 -1 -1 0.5
csg end
%%%%% some 3D text
text3d file surface matte yellow data csg.t3d % data is in file
%%%%% end