picogl.core.camera
Shared camera defaults used by Qt, GLUT, and backend projection helpers.
Attributes
Classes
Perspective projection parameters used by PicoGL camera helpers. |
|
Look-at parameters that build a view matrix. |
|
Bundled camera pose plus projection settings. |
Module Contents
- class picogl.core.camera.ProjectionConfig[source]
Perspective projection parameters used by PicoGL camera helpers.
- with_aspect(aspect: float) ProjectionConfig[source]
Return a copy with
aspectset.
- with_size(width: float, height: float) ProjectionConfig[source]
Return a copy with aspect from
width / max(height, 1).
- class picogl.core.camera.CameraParameters[source]
Look-at parameters that build a view matrix.
Example:
camera = CameraParameters(eye=glm.vec3(4, 3, zoom_distance)) view = camera.view_matrix()
- classmethod tutorial(distance: float = 3.0, *, z_sign: float = 1.0) CameraParameters[source]
OpenGL-tutorial style eye at
(4, 3, z_sign * distance).
- class picogl.core.camera.CameraConfig[source]
Bundled camera pose plus projection settings.
- projection: ProjectionConfig[source]
- camera_parameters() CameraParameters[source]
Look-at triple for this camera (ignores projection).