home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
DOS
/
GRAFISCH
/
RAYTRACE
/
VIVID
/
CLIP3.V
< prev
next >
Wrap
Text File
|
1992-03-15
|
1KB
|
54 lines
// clip3.v -- test out new clipping planes with rings, polygons
#include color.vc
studio {
from 1 -6 5
at 0 0 .5
up 0 0 1
angle 30
res 640 480
antialias quick
aspect 4/3
background {
greys.map
}
ambient white * .2
}
light {
type point
falloff 0
position 1 -.5 5
color white * .5
}
light {
type point
falloff 0
position -2 -4 5
color white * .5
}
// base surface
surface {
diff plum * .5 // dark plum
}
ring { center 0 0 0 normal 0 0 1 radius 1000 }
// clip rings
surf {
diff 0 .5 1
shine 20 white
}
// 5 rings with same cliping plane
ring { center 0 0 0.1 normal 0 0 1 min_radius .3 max_radius 1 clip { center 0 0 .5 normal -1 1 -2 } }
ring { center 0 0 0.3 normal 0 0 1 min_radius .3 max_radius 1 clip { center 0 0 .5 normal -1 1 -2 } }
ring { center 0 0 0.5 normal 0 0 1 min_radius .3 max_radius 1 clip { center 0 0 .5 normal -1 1 -2 } }
ring { center 0 0 0.7 normal 0 0 1 min_radius .3 max_radius 1 clip { center 0 0 .5 normal -1 1 -2 } }
ring { center 0 0 0.9 normal 0 0 1 min_radius .3 max_radius 1 clip { center 0 0 .5 normal -1 1 -2 } }