1.2.1.4 Describing an Object
Now that the camera is set up to record the scene, let's place a yellow sphere into the scene. We add the following
to our scene file:
sphere {
<0, 1, 2>, 2
texture {
pigment { color Yellow }
}
}
The first vector specifies the center of the sphere. In this example the x coordinate is zero so it is centered
left and right. It is also at y=1 or one unit up from the origin. The z coordinate is 2 which is five units in front
of the camera, which is at z=-3. After the center vector is a comma followed by the radius which in this case is two
units. Since the radius is half the width of a sphere, the sphere is four units wide.
|