IntrinsicsCamera¶
-
class
pyrender.IntrinsicsCamera(fx, fy, cx, cy, znear=0.05, zfar=100.0, name=None)[source]¶ Bases:
pyrender.camera.CameraA perspective camera with custom intrinsics.
Parameters: - fx (float) – X-axis focal length in pixels.
- fy (float) – Y-axis focal length in pixels.
- cx (float) – X-axis optical center in pixels.
- cy (float) – Y-axis optical center in pixels.
- 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
cxX-axis optical center in pixels. cyY-axis optical center in pixels. fxX-axis focal length in meters. fyY-axis focal length in meters. nameThe user-defined name of this object. 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