The RenderMan Interface - Paul Bourke
The RenderMan Interface - Paul Bourke
The RenderMan Interface - Paul Bourke
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
not support the special projection specified, it is ignored and an orthographic projection<br />
is used. If RiProjection is not called, the screen transformation defaults to the<br />
identity matrix, so screen space and camera space are identical.<br />
RIB BINDING<br />
Projection ”perspective” ...parameterlist...<br />
Projection ”orthographic”<br />
Projection name ...parameterlist...<br />
EXAMPLE<br />
RiProjection (RI ORTHOGRAPHIC, RI NULL);<br />
RtFloat fov = 45.0;<br />
RiProjection (RI PERSPECTIVE, ”fov”, &fov, RI NULL);<br />
SEE ALSO<br />
RiPerspective, RiClipping<br />
RiClipping ( RtFloat near, RtFloat far )<br />
Sets the position of the near and far clipping planes along the direction of view.<br />
near and far must both be positive numbers. near must be greater than or equal<br />
to RI EPSILON and less than far. far must be greater than near and may be equal to<br />
RI INFINITY. <strong>The</strong>se values are used by RiProjection to generate a screen projection<br />
such that depth values are scaled to equal zero at z=near and one at z=far. Notice<br />
that the rendering system will actually clip geometry which lies outside of z=(0,1)<br />
in the screen coordinate system, so non-identity screen transforms may affect which<br />
objects are actually clipped.<br />
For reasons of efficiency, it is generally a good idea to bound the scene tightly with<br />
the near and far clipping planes.<br />
RIB BINDING<br />
Clipping near far<br />
EXAMPLE<br />
Clipping 0.1 10000<br />
SEE ALSO<br />
RiBound, RiProjection, RiClippingPlane<br />
RiClippingPlane ( RtFloat x, RtFloat y, RtFloat z, RtFloat nx, RtFloat ny, RtFloat nz)<br />
Adds a user-specified clipping plane. <strong>The</strong> plane is specified by giving any point on<br />
its surface, (x, y, z), and the plane normal, (nx, ny, nz). All geometry on the positive<br />
side of the plane (that is, in the direction that the normal points) will be clipped from<br />
the scene. <strong>The</strong> point and normal parameters are interpreted as being in the active<br />
local coordinate system at the time that the RiClippingPlane statement is issued.<br />
26