JPBRT 0.5

org.jpbrt.cameras
Class OrthoCamera

java.lang.Object
  extended by org.jpbrt.core.Camera
      extended by org.jpbrt.core.ProjectiveCamera
          extended by org.jpbrt.cameras.OrthoCamera

public class OrthoCamera
extends ProjectiveCamera

Takes a rectangular region of the scene and projects it onto the front face of the box that defines the region. It does not give the effect of foreshorting, but it does preserve parallel lines and relative distance between objects.

References:

Version:
1.0 2010-09-09 Created.
Author:
Werner Randelshofer

Field Summary
 
Fields inherited from class org.jpbrt.core.ProjectiveCamera
cameraToScreen, focalDistance, lensRadius, rasterToCamera, rasterToScreen, screenToRaster
 
Fields inherited from class org.jpbrt.core.Camera
cameraToWorld, film, shutterClose, shutterOpen
 
Constructor Summary
OrthoCamera(AnimatedTransform cam2world, float[] screenWindow, float sopen, float sclose, float lensr, float focald, Film f)
           
 
Method Summary
 float generateRay(CameraSample sample, Ray ray)
          page 264.
 float generateRayDifferential(CameraSample sample, RayDifferential ray)
           
 
Methods inherited from class org.jpbrt.core.ProjectiveCamera
toString
 
Methods inherited from class org.jpbrt.core.Camera
getFilm, setFilm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrthoCamera

public OrthoCamera(AnimatedTransform cam2world,
                   float[] screenWindow,
                   float sopen,
                   float sclose,
                   float lensr,
                   float focald,
                   Film f)
Method Detail

generateRay

public float generateRay(CameraSample sample,
                         Ray ray)
page 264.

Specified by:
generateRay in class Camera
Returns:
A weight for the effect that light arriving at the film plane along the generated ray will have on the final image. Most cameras always return a value of one, but cameras that simulate real physical lens systems might need to set this value based on the optics and the geometry of the virtual lens system.

generateRayDifferential

public float generateRayDifferential(CameraSample sample,
                                     RayDifferential ray)
Overrides:
generateRayDifferential in class Camera

Copyright 2010 © by the authors and contributors of the JPBRT project.
Some rights reserved.