Difference between revisions of "HowTo:Use the plane object"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
==The Plane== | ==The Plane== | ||
In POV a plane is considered to have a volume, any point that is "under" the plane is inside, and any point that is "above" the plane is outside. This becomes important when you use a plane in CSG. A plane is defined in POV by a direction vector, and a float distance. The direction vector indicates the "up" direction, and the distance is how far in that direction from the origin the surface begins. | In POV a plane is considered to have a volume, any point that is "under" the plane is inside, and any point that is "above" the plane is outside. This becomes important when you use a plane in CSG. A plane is defined in POV by a direction vector, and a float distance. The direction vector indicates the "up" direction, and the distance is how far in that direction from the origin the surface begins. | ||
− | + | <source lang="pov"> | |
− | + | #include "colors.inc" | |
− | + | plane {y,-1 | |
− | + | pigment {checker White Tan} | |
− | + | } | |
− | + | </source> | |
This uses the default y vector for "up", it's easy enough to rotate a plane to the desired angles after creating it, but vrotate can be used to rotate the vector before defining the plane. | This uses the default y vector for "up", it's easy enough to rotate a plane to the desired angles after creating it, but vrotate can be used to rotate the vector before defining the plane. |
Revision as of 09:33, 27 December 2007
The Plane
In POV a plane is considered to have a volume, any point that is "under" the plane is inside, and any point that is "above" the plane is outside. This becomes important when you use a plane in CSG. A plane is defined in POV by a direction vector, and a float distance. The direction vector indicates the "up" direction, and the distance is how far in that direction from the origin the surface begins.
#include "colors.inc"
plane {y,-1
pigment {checker White Tan}
}
This uses the default y vector for "up", it's easy enough to rotate a plane to the desired angles after creating it, but vrotate can be used to rotate the vector before defining the plane.