7297bc5c17
Add Camera::LookAt
...
This is identical to the POV-Ray look_at keyword for cameras. In fact, I stole the code almost directly from them… It's super handy for panning and tilting the camera towards a particular point, and saves me having to do dubiously accurate direction vector calculations by hand.
I still need to figure out what exactly this math is doing.
2014-08-03 18:34:00 -07:00
82c7e75e11
Normalize primary ray direction vectors
2014-08-02 14:10:28 -07:00
c564791d1a
Camera doesn't inherit from Object; defines its own origin.
2014-07-20 12:37:04 -07:00
6f04526d36
Default and copy constructors for Perspective and Orthographic cameras
2014-07-19 20:56:47 -07:00
b85a6aed7b
Bit more clean up of cameras
2014-07-19 17:24:52 -07:00
daf5c7d8a6
Clean up camera module
2014-07-19 16:30:26 -07:00
899064ce42
Add a perspective camera
...
Finally! :D Verified (mostly) and carefully thought through by looking at the
Pov-Ray code and doing the linear algebra by hand. Fun times.
2014-07-16 23:31:39 -07:00
360bc52080
I don't really know if this is correct; I have not verified it
2014-07-16 23:30:25 -07:00
0e1106aa41
Update the call signature of compute_primary_ray
...
It takes the current X and Y coordinates and the height and width of the image.
2014-07-16 23:29:54 -07:00
72e93eccb3
Reformat description of OrthographicCamera::compute_primary_ray
2014-07-16 23:26:41 -07:00
8eb98270af
Add Up and Right vectors to the camera
2014-07-16 23:25:54 -07:00
8336753bcf
Remove pixel dimensions from camera
...
The scene computes those and gives them to the camera for each ray
2014-07-16 23:24:32 -07:00
f6e92f2571
Fix compiler errors in camera module
2013-09-20 09:21:25 -07:00
746731398a
Accessors for Camera attributes
2013-09-20 09:10:56 -07:00
764afab8ac
Camera stuff -- empty implementations of compute_primary_ray
2013-09-20 09:10:56 -07:00