14db2752ae
Log where the camera is looking
2014-08-03 20:13:00 -07:00
08bd04d8da
Fancier way of logging the camera's parameters
2014-08-03 20:12:00 -07:00
5ac721d601
Lots of comments about what LookAt is doing
2014-08-03 20:11:22 -07:00
c2a4372467
Add Camera::IsLeftHanded()
...
A method that returns true if the camera's coordinate system is left-handed.
2014-08-03 20:10:52 -07:00
a7020545c1
New header comment for camera.cc
2014-08-03 19:10:43 -07:00
f99608085e
Log the camera before rendering
...
Implement an operator<< for Cameras. Log the scene's camera.
2014-08-03 19:10:31 -07:00
bcf93bb4ce
LookAt comments
2014-08-03 18:51:49 -07:00
0df6244b8b
Bit of code clean up in LookAt
2014-08-03 18:51:41 -07:00
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