|
| SkewedPerspectiveCamera (vec3 lookFrom=cameradefaults::lookFrom, vec3 lookTo=cameradefaults::lookTo, vec3 lookUp=cameradefaults::lookUp, float nearPlane=cameradefaults::nearPlane, float farPlane=cameradefaults::farPlane, float aspectRatio=cameradefaults::aspectRatio, float fieldOfView=cameradefaults::fieldOfView, vec2 frustumOffset=vec2(0.0f, 0.0f)) |
|
| SkewedPerspectiveCamera (const SkewedPerspectiveCamera &other) |
|
SkewedPerspectiveCamera & | operator= (const SkewedPerspectiveCamera &other) |
|
virtual SkewedPerspectiveCamera * | clone () const override |
|
virtual std::string | getClassIdentifier () const override |
|
virtual void | updateFrom (const Camera &source) override |
|
virtual void | configureProperties (CameraProperty &cameraProperty, bool attach) override |
|
float | getFovy () const |
|
void | setFovy (float val) |
|
const vec2 & | getOffset () const |
|
void | setOffset (vec2 val) |
|
virtual void | zoom (float factor, std::optional< mat4 > boundingBox) override |
|
virtual void | setLookFrom (vec3 val) override |
|
virtual void | setLookTo (vec3 val) override |
|
virtual void | serialize (Serializer &s) const override |
|
virtual void | deserialize (Deserializer &d) override |
|
| Camera (vec3 lookFrom, vec3 lookTo, vec3 lookUp, float nearPlane, float farPlane, float aspectRatio) |
| Create a camera.
|
|
| Camera (const Camera &other)=default |
|
Camera & | operator= (const Camera &other)=default |
|
| Camera (Camera &&other) noexcept=default |
|
Camera & | operator= (Camera &&other) noexcept=default |
|
const vec3 & | getLookFrom () const |
|
const vec3 & | getLookTo () const |
|
const vec3 & | getLookUp () const |
|
virtual void | setLookUp (vec3 val) |
|
virtual float | getAspectRatio () const |
|
virtual void | setAspectRatio (float val) |
|
vec3 | getDirection () const |
| Get unnormalized direction of camera: lookTo - lookFrom.
|
|
virtual void | setNearPlaneDist (float distance) |
| Set distance to the near plane from lookFrom.
|
|
float | getNearPlaneDist () const |
|
virtual void | setFarPlaneDist (float distance) |
| Set distance to the far plane from lookFrom.
|
|
float | getFarPlaneDist () const |
|
const mat4 & | getViewMatrix () const |
|
const mat4 & | getProjectionMatrix () const |
|
const mat4 & | getInverseViewMatrix () const |
|
const mat4 & | getInverseProjectionMatrix () const |
|
vec3 | getWorldPosFromNormalizedDeviceCoords (const vec3 &ndcCoords) const |
| Convert from normalized device coordinates (xyz in [-1 1]) to world coordinates.
|
|
virtual vec4 | getClipPosFromNormalizedDeviceCoords (const vec3 &ndcCoords) const |
| Convert from normalized device coordinates (xyz in [-1 1]) to clip coordinates, where z value of -1 correspond to the near plane and 1 to the far plane. Coordinates outside of the [-1 1]^3 range will be clipped.
|
|
vec3 | getNormalizedDeviceFromNormalizedScreenAtFocusPointDepth (const vec2 &normalizedScreenCoord) const |
|
Camera with off axis perspective projection.
The camera with unsymmetrical frustum for stereo in VR Kooima, Robert. "Generalized perspective projection." School of Elect. Eng. and Computer Science (2008): 1-7.
- See also
- Camera