C# Class THREE.PerspectiveCamera

Inheritance: Camera
Datei anzeigen Open project: guidovanhilst/SharpThreejs Class Usage Examples

Public Properties

Property Type Description
aspect double
fov double
zoom double

Public Methods

Method Description
PerspectiveCamera ( double fov, double aspect, double near, double far ) : System

fov — Camera frustum vertical field of view. aspect — Camera frustum aspect ratio. near — Camera frustum near plane. far — Camera frustum far plane.

setLens ( double focalLength, double frameSize ) : void

focalLength — focal length frameSize — frame size Uses focal length (in mm) to estimate and set FOV 35mm (fullframe) camera is used if frame size is not specified. Formula based on http://www.bobatkins.com/photography/technical/field_of_view.html

setViewOffset ( double fullWidth, double fullHeight, double x, double y, double width, double height ) : void

fullWidth — full width of multiview setup fullHeight — full height of multiview setup x — horizontal offset of subcamera y — vertical offset of subcamera width — width of subcamera height — height of subcamera Sets an offset in a larger frustum. This is useful for multi-window or multi-monitor/multi-machine setups.

Method Details

PerspectiveCamera() public method

fov — Camera frustum vertical field of view. aspect — Camera frustum aspect ratio. near — Camera frustum near plane. far — Camera frustum far plane.
public PerspectiveCamera ( double fov, double aspect, double near, double far ) : System
fov double
aspect double
near double
far double
return System

setLens() public method

focalLength — focal length frameSize — frame size Uses focal length (in mm) to estimate and set FOV 35mm (fullframe) camera is used if frame size is not specified. Formula based on http://www.bobatkins.com/photography/technical/field_of_view.html
public setLens ( double focalLength, double frameSize ) : void
focalLength double
frameSize double
return void

setViewOffset() public method

fullWidth — full width of multiview setup fullHeight — full height of multiview setup x — horizontal offset of subcamera y — vertical offset of subcamera width — width of subcamera height — height of subcamera Sets an offset in a larger frustum. This is useful for multi-window or multi-monitor/multi-machine setups.
public setViewOffset ( double fullWidth, double fullHeight, double x, double y, double width, double height ) : void
fullWidth double
fullHeight double
x double
y double
width double
height double
return void

Property Details

aspect public_oe property

public double aspect
return double

fov public_oe property

public double fov
return double

zoom public_oe property

public double zoom
return double