OrthographicCamera¶
-
class
pyrender.camera.OrthographicCamera(xmag, ymag, znear=0.05, zfar=100.0, name=None)[source]¶ Bases:
pyrender.camera.CameraA perspective camera for perspective projection.
Parameters: - xmag (float) – The floating-point horizontal magnification of the view.
- ymag (float) – The floating-point vertical magnification of the view.
- znear (float) – The floating-point distance to the near clipping plane. If not specified, defaults to 0.05.
- zfar (float) – The floating-point distance to the far clipping plane.
zfarmust be greater thanznear. If not specified, defaults to 100.0. - name (str, optional) – The user-defined name of this object.
Attributes Summary
nameThe user-defined name of this object. xmagThe horizontal magnification of the view. ymagThe vertical magnification of the view. zfarThe distance to the far clipping plane. znearThe distance to the near clipping plane. Methods Summary
get_projection_matrix([width, height])Return the OpenGL projection matrix for this camera. Attributes Documentation
Methods Documentation