<<<<<<<<<<<<<<<<<

gert_camera(gert) Gert gert_camera(gert)

NAME

gert_camera

DESCRIPTION

Gert_camera is used in GERT system for generating primary rays.

SUPERCLASS

camera

INSTANCE VARIABLES

aperture_number is the instance variable equal to the ratio of focal_length to 2*lens_radius.

direction is the direction of primary ray emanating from the camera position into the scene. It is defined by normalized pixel coordinates (x,y) in the image space.

distribute is the indicator for randomization of the primary ray to make fuzzy boundaries. The default is 0 (false, no randomization).

focal_length is the focal length of the camera equal to 2*aperture_number*lens_radius.

image_distance is the distance from camera position to the image plane; calculated from focal_length and distance (distance is a distance from focal_point to position).

image_size is the (width, height) pair of image. Is not specified, it is computed from image_distance and view_angle.

lens_radius is the lens radius of camera equal to focal_length divided by 2*aperture_number.

origin is the origin of the primary ray. It is equal to camera position for the nondistributed ray tracing. It is jittered around camera position for distributed ray tracing.

right is the vector orthogonal to view_up and view_plane_normal vectors and pointing to the right if the sight is aligned with the camera axis looking into the scene.

MESSAGES

aperture_number=(+) argument sets (adds) the value of aperture_number. The default is 8.0.

aperture_number? returns the value of aperture_number.

direction= argument sets the value of direction. The default is (0,0,1).

direction? returns the value of direction.

distribute= argument sets the value of distribute. The default is 0 (false).

distribute? returns the value of distribute.

focal_length=(+) argument sets (adds) the value of focal_length. The default is 5.0.

focal_length? returns the value of focal_length.

image_size= argument sets the value of image_size. The default is (0,0).

image_size? returns the value of image_size.

initialize! sets the effective lens_radius, image_distance, right vector

origin= argument sets the value of origin. The default is (0,0,0).

origin? returns the value of origin.

view_transform: (x, y) sets the origin and direction of primary ray given the normalized pixel coordinates (x, y).

EXAMPLE

SEE ALSO

gert, h_hierarchy, kh_generator, ray, block, cone, cone, sphere


Please send comments and suggestions to
consult@rpi.edu