org.jpbrt.cameras
Class OrthoCamera
java.lang.Object
org.jpbrt.core.Camera
org.jpbrt.core.ProjectiveCamera
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:
- M. Pharr, G. Humphreys. (2010). Physically Based Rendering, 2nd Edition.
Morgan Kaufmann.
CHAPTER 06.
- Version:
- 1.0 2010-09-09 Created.
- Author:
- Werner Randelshofer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OrthoCamera
public OrthoCamera(AnimatedTransform cam2world,
float[] screenWindow,
float sopen,
float sclose,
float lensr,
float focald,
Film f)
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