Static
getStatic
getReturns the position of a camera with the given orientation looking at the given targetPosition from the given distance.
Position of the camera
Static
getGets camera far distance given camera position and scene bounding box.
far distance
Static
getGets distance from given position (camera position) to center of bounding box.
focal distance
Static
getReturns the camera's horizontal angle from the given orientation. Can be used to control the OrbitingCameraController.
The orientation of the camera.
horizontal angle
Static
getGets the camera orientation from the horizontal and vertical angle values.
Horizontal rotation angle
Vertical rotation Angle
Camera direction
Static
getCalculate Orthographic camera orthoHeight Field to view bounding box.
Orthographic camera orthoHeight
Static
getGets the radius of the sphere enclosing the bounding box.
radius
Static
getStatic
getReturns the camera's vertical angle from the given orientation. Can be used to control the OrbitingCameraController.
The orientation of the camera.
vertical angle
Static
getCalculates a camera position where bounding box given is shown on the screen.
2D viewport defaults to 0.0f, which would result in an assumed aspect ratio of 1.0f. Use the actual width and height, in pixels, of the 3D view to use the correct aspect ratio in calculations.
Must be a bounding box with hasExtent(BoundingBoxType box)
Camera orientation
Camera field of view (also used in ortho camera).
Width/Height in pixels of the 3D view
New Camera Position
Contains common utility members for camera setup Other camera utilities: Interpolation utilities can be found in: Cogs.Foundation/Geometry/EasingFn.h Cogs.Foundation/Geometry/Interpolator.h Cogs.Foundation/Geometry/Interpolation.hpp
Component: CinematicCameraComponent Library: gl-matrix