![]() |
PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
|
This struct implements an observer seeing the world through an orthogonal projection. More...
Public Member Functions | |
Transformation | GetTransf () |
void | SetTransf (Transformation tr) |
OrthogonalCamera (float aspectRatio=1.0f) | |
OrthogonalCamera (float aspectRatio, Transformation tr) | |
Ray | FireRay (float u, float v) |
Shoot a ray through the camera's screen More... | |
Ray | FireRay (float u, float v) |
Transformation | GetTransf () |
void | SetTransf (Transformation tr) |
Public Attributes | |
float | AspectRatio |
The parameter aspect_ratio defines how larger than the height is the image. For fullscreen images, you should probably set aspect_ratio to 16/9, as this is the most used aspect ratio used in modern monitors. | |
Transformation | Transf |
This struct implements an observer seeing the world through an orthogonal projection.
Ray PGENLib.OrthogonalCamera.FireRay | ( | float | u, |
float | v | ||
) |
Shoot a ray through the camera's screen
u | x-axis |
v | y-axis |
The coordinates (u, v) specify the point on the screen where the ray crosses it. The following diagram represents the coordinates (0,0); (1,0); (0,1); (1,1): (0, 1) (1, 1) +---------------------------—+
+---------------------------—+ (0, 0) (1, 0)
Implements PGENLib.ICamera.
Transformation PGENLib.OrthogonalCamera.GetTransf | ( | ) |
Implements PGENLib.ICamera.
void PGENLib.OrthogonalCamera.SetTransf | ( | Transformation | tr | ) |
Implements PGENLib.ICamera.