A camera model used for ray tracing.
#include <RayTracer.h>
|
|
| RayCamera ()=default |
| | Create a RayCamera.
|
| |
| | RayCamera (const Vec3 &position, const Vec3 &focus, const Vec3 &up, float tnear, float tfar) |
| | Create a RayCamera. More...
|
| |
| virtual RTCRayHit | gen_ray (float s, float t) const =0 |
| | Generate an embree rayhit structure. More...
|
| |
|
| Camera ()=default |
| | Create a Camera with default paramters.
|
| |
| | Camera (const Vec3 &position, const Vec3 &focus, const Vec3 &up, float tnear, float tfar) |
| | Create a Camera. More...
|
| |
|
void | lookat (const Vec3 &position, const Vec3 &focus, const Vec3 &up) |
| | Pose the camera according to the parameteres.
|
| |
| void | set_range (float tnear, float tfar) |
| | Set the range of the ray. More...
|
| |
|
| Film | film |
| | The film plane. More...
|
| |
|
Eigen::Vector3f | pos { 0.0f, 0.0f, 0.0f } |
| | Position.
|
| |
|
Eigen::Vector3f | u { 1.0f, 0.0f, 0.0f } |
| | Right vector.
|
| |
|
Eigen::Vector3f | v { 0.0f, 1.0f, 0.0f } |
| | Up vector.
|
| |
|
Eigen::Vector3f | dir { 0.0f, 0.0f, 1.0f } |
| | Negative view vector.
|
| |
|
float | tnear = 0.0f |
| | The near plane.
|
| |
|
float | tfar = std::numeric_limits<float>::max() |
| | The far plane.
|
| |
|
|
using | Vec3 = Eigen::Vector3f |
| |
| Euclid::RayCamera::RayCamera |
( |
const Vec3 & |
position, |
|
|
const Vec3 & |
focus, |
|
|
const Vec3 & |
up, |
|
|
float |
tnear, |
|
|
float |
tfar |
|
) |
| |
|
inline |
- Parameters
-
| position | Position. |
| focus | Focus. |
| up | Rough up direction. |
| tnear | The near clipping plane. |
| tfar | The far clipping plane. |
| virtual RTCRayHit Euclid::RayCamera::gen_ray |
( |
float |
s, |
|
|
float |
t |
|
) |
| const |
|
pure virtual |
| Film Euclid::RayCamera::film |
- Parameters
-
| tnear | The near range of ray. |
| tfar | The far range of ray. |
The documentation for this class was generated from the following files: