pinhole Element Reference
Basic pinhole camera using perspective projection (aka Camera Obscura). More...
Inheritance diagram for pinhole:

Attributes | |
| vector3 | eye |
| Camera location (position of eye). | |
| vector3 | focus |
| Point where the camera should point towards (implicitly specifying look vector). | |
| vector3 | look |
| Camera look direction. | |
| vector3 | up |
| Camera up direction (orients camera). | |
| real_t | heightAngle |
| Vertical height angle of camera frustum. | |
| real_t | aspectRatio |
| Aspect ratio of camera frustum. | |
| real_t | near |
| Near clipping plane for OpenGL preview. | |
| real_t | far |
| Far clipping plane for OpenGL preview. | |
Detailed Description
Basic pinhole camera using perspective projection (aka Camera Obscura).A pinhole camera is a special case of the thin lens model, in which the camera's aperture is infinitesmally small such that all rays which pass through the aperture focus at one unique location on the film plane. PinholeCamera, therefore, subclasses ThinLensCamera.
- Note:
- pinhole corresponds to the underlying Milton class 'PinholeCamera.'
Attribute Documentation
| vector3 pinhole::eye |
Camera location (position of eye).
| type | vector3 |
| optional | true |
| default | 2,2,1 |
| vector3 pinhole::focus |
| vector3 pinhole::look |
Camera look direction.
- Note:
- If "focus" is specified, it will override the value of "look"
| type | vector3 |
| optional | true |
| default | towards origin |
| vector3 pinhole::up |
Camera up direction (orients camera).
| type | vector3 |
| optional | true |
| default | 0,1,0 |
| restrictions | Must not be collinear to look vector |
| real_t pinhole::heightAngle |
| real_t pinhole::aspectRatio |
| real_t pinhole::near |
| real_t pinhole::far |
Generated on 28 Feb 2009 for MiltonScenefileFormat by
1.5.6