class documentation
class PerspectiveCamera(BaseValidatedDataClass): (source)
Constructor: PerspectiveCamera(position, look_at, up, aspect, ...)
Represents the configuration of a 3D perspective camera.
Parameters | |
position | the position of the camera. If None, the camera position is calculated based on the bounding box of the scene |
look | the point the camera is looking at. If None, the camera looks at the center of the scene |
up | the orthonormal axis that is considered up. Must be one of "X", "Y", or "Z". If None, it will fallback to the global up as defined in 3D plugin settings. If that too is not defined, it will fallback to "Y" |
aspect | the aspect ratio of the camera. If None, the aspect ratio is calculated based on the width and height of the canvas |
fov | camera frustum vertical field of view in degrees. If None, the field of view is 50 degrees |
near | the near clipping plane of the camera |
far | the far clipping plane of the camera |
Method | __init__ |
Undocumented |
Method | as |
Undocumented |
Method | aspect |
Undocumented |
Method | far |
Undocumented |
Method | fov |
Undocumented |
Method | look |
Undocumented |
Method | near |
Undocumented |
Method | position |
Undocumented |
Method | up |
Undocumented |
Property | aspect |
Undocumented |
Property | far |
Undocumented |
Property | fov |
Undocumented |
Property | look |
Undocumented |
Property | near |
Undocumented |
Property | position |
Undocumented |
Property | up |
Undocumented |
Static Method | _from |
Undocumented |
Instance Variable | _aspect |
Undocumented |
Instance Variable | _far |
Undocumented |
Instance Variable | _fov |
Undocumented |
Instance Variable | _look |
Undocumented |
Instance Variable | _near |
Undocumented |
Instance Variable | _position |
Undocumented |
Instance Variable | _up |
Undocumented |
Inherited from BaseValidatedDataClass
:
Method | __eq__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __setattr__ |
Undocumented |