26.01.2015 Views

The RenderMan Interface - Paul Bourke

The RenderMan Interface - Paul Bourke

The RenderMan Interface - Paul Bourke

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EXAMPLE<br />

RiFrameAspectRatio (4.0/3.0);<br />

SEE ALSO<br />

RiDisplay, RiFormat<br />

RiScreenWindow ( RtFloat left, RtFloat right, RtFloat bottom, RtFloat top )<br />

This procedure defines a rectangle in the image plane that gets mapped to the raster<br />

coordinate system and that corresponds to the display area selected. <strong>The</strong> rectangle<br />

specified is in the screen coordinate system. <strong>The</strong> values left, right, bottom, and top are<br />

mapped to the respective edges of the display.<br />

<strong>The</strong> default values for the screen window coordinates are:<br />

(–frameaspectratio, frameaspectratio, –1, 1).<br />

if frameaspectratio is greater than or equal to one, or<br />

(–1, 1, –1/frameaspectratio, 1/frameaspectratio).<br />

if frameaspectratio is less than or equal to one. For perspective projections, this default<br />

gives a centered image with the smaller of the horizontal and vertical fields of<br />

view equal to the field of view specified with RiProjection. Note that if the camera<br />

transformation preserves relative x and y distances, and if the ratio<br />

abs(right − left)<br />

abs(top − bottom)<br />

is not the same as the frame aspect ratio of the display area, the displayed image will<br />

be distorted.<br />

RIB BINDING<br />

ScreenWindow left right bottom top<br />

ScreenWindow [left right bottom top]<br />

EXAMPLE<br />

ScreenWindow -1 1 -1 1<br />

SEE ALSO<br />

RiCropWindow, RiFormat, RiFrameAspectRatio, RiProjection<br />

RiCropWindow ( RtFloat xmin, RtFloat xmax, RtFloat ymin, RtFloat ymax )<br />

Render only a subrectangle of the image. This command does not affect the mapping<br />

from screen to raster coordinates. This command is used to facilitate debugging regions<br />

of an image, and to help in generating panels of a larger image. <strong>The</strong>se values<br />

are specified as fractions of the raster window defined by RiFormat and RiFrameAspectRatio,<br />

and therefore lie between 0 and 1. By default the entire raster window is<br />

rendered. <strong>The</strong> integer image locations corresponding to these limits are given by<br />

24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!