#include <fbmodel.h>
When you look at a scene in the MotionBuilder Viewer, you are using a camera view.
There are two types of cameras:
When you create a camera you should make it visible with the show property (inherited from FBModel).
Use FBCameraSwitcher to get and set the current camera. For usage, see the Python sample CameraSwitcher.py.
To see how to create a camera with a marker as an interest, see the Python sample code in FBCamera.py. For usage in C++, see the manipcamera sample.
Definition at line 1181 of file fbmodel.h.
Public Member Functions |
|
FBCamera (char *pName, HIObject pObject=NULL) | |
Constructor. |
|
double * | GetMatrix (FBCameraMatrixType pType) |
Obtain the camera's transformation matrix
(either Model or Projection View). |
|
Public Attributes |
|
FBPropertyBool | SystemCamera |
Read Only Property: Indicate if this
a producer (default or system) camera or a custom (user-created)
camera. |
|
FBPropertyCameraFrameSizeMode | FrameSizeMode |
Read Write Property: Frame size
standard mode. |
|
FBPropertyCameraResolutionMode | ResolutionMode |
Read Write Property: Resolution
standard mode. |
|
FBPropertyDouble | ResolutionWidth |
Read Write Property: Resolution
width. |
|
FBPropertyDouble | ResolutionHeight |
Read Write Property: Resolution
height. |
|
FBPropertyDouble | WindowHeight |
Read Only Property: Window height.
|
|
FBPropertyDouble | PixelAspectRatio |
Read Write Property: Pixel aspect
ratio. |
|
FBPropertyDouble | NearPlaneDistance |
Read Write Property: Near plane
distance. |
|
FBPropertyDouble | FarPlaneDistance |
Read Write Property: Far plane
distance. |
|
FBPropertyBool | MouseLockCamera |
Read Write Property: Mouse lock for
camera? |
|
FBPropertyCameraType | Type |
Read Write Property: Type of camera
|
|
FBPropertyCameraApertureMode | ApertureMode |
Read Write Property: Aperture mode.
|
|
FBPropertyAnimatableDouble | FieldOfView |
Read Write Property: Field of View
(used when in horizontal or vertical aperture modes). |
|
FBPropertyAnimatableDouble | FieldOfViewX |
Read Write Property: Field of View X
angle (used in horizontal and vertical aperture mode). |
|
FBPropertyAnimatableDouble | FieldOfViewY |
Read Write Property: Field of View Y
angle (used in horizontal and vertical aperture mode). |
|
FBPropertyAnimatableDouble | OpticalCenterX |
Read Write Property: Optical Center X
(mm). |
|
FBPropertyAnimatableDouble | OpticalCenterY |
Read Write Property: Optical Center Y
(mm). |
|
FBPropertyAnimatableDouble | FocalLength |
Read Write Property: Focal Length.
|
|
FBPropertyCameraFilmBackType | FilmBackType |
Read Write Property: Film back
standard type. |
|
FBPropertyDouble | FilmSizeWidth |
Read Write Property: Width of the
film. |
|
FBPropertyDouble | FilmSizeHeight |
Read Write Property: Height of the
film. |
|
FBPropertyDouble | FilmAspectRatio |
Read Write Property: Film aspect
ratio. |
|
FBPropertyDouble | SqueezeRatio |
Read Write Property: Squeeze ratio.
|
|
FBPropertyDouble | OrthogonalVerticalSize |
Read Write Property: Near plane
distance. |
|
FBPropertyVideo | BackGroundMedia |
Read Write Property: BackGround Image
|
|
FBPropertyCameraViewPlaneMode | ViewBackGroundPlaneMode |
Read Write Property: Background plane
view mode |
|
FBPropertyBool | BackGroundImageCenter |
Read Write Property: Center the
background image |
|
FBPropertyBool | BackGroundImageFit |
Read Write Property: Fit the
background image |
|
FBPropertyBool | BackGroundImageKeepRatio |
Read Write Property: Keep the
background image's ratio |
|
FBPropertyBool | BackGroundImageCrop |
Read Write Property: Crop the
background image |
|
FBPropertyDouble | BackGroundPlaneDistance |
Read Write Property: Set the distance
for the background plane. |
|
FBPropertyCameraDistanceMode | BackGroundPlaneDistanceMode |
Read Write Property: Select mode for
the background plane's distance. |
|
FBPropertyAnimatableDouble | ForeGroundAlpha |
Read Write Property: Opacity of
foreground. |
|
FBPropertyDouble | ForeGroundMaterialThreshold |
Read Write Property: Material
threshold for a transparent foreground. |
|
FBPropertyBool | ForeGroundTransparent |
Read Write Property: Is the
foreground transparent? |
|
FBPropertyVideo | ForeGroundMedia |
Read Write Property: ForeGround Image
|
|
FBPropertyCameraViewPlaneMode | ViewForeGroundPlaneMode |
Read Write Property: Foreground plane
view mode |
|
FBPropertyBool | ForeGroundImageCenter |
Read Write Property: Center the
foreground image |
|
FBPropertyBool | ForeGroundImageFit |
Read Write Property: Fit the
foreground image |
|
FBPropertyBool | ForeGroundImageKeepRatio |
Read Write Property: Keep the
foreground image's ratio? |
|
FBPropertyBool | ForeGroundImageCrop |
Read Write Property: Crop the
foreground image |
|
FBPropertyDouble | ForeGroundPlaneDistance |
Read Write Property: Set the distance
for the foreground plane. |
|
FBPropertyCameraDistanceMode | ForeGroundPlaneDistanceMode |
Read Write Property: Select mode for
the foreground plane's distance. |
|
FBPropertyBool | ViewCameraInterest |
Read Write Property: Show the camera
interest? |
|
FBPropertyBool | ViewNearFarPlane |
Read Write Property: Show near/far
planes? |
|
FBPropertyBool | ViewShowGrid |
Read Write Property: Show grid?
|
|
FBPropertyBool | ViewShowAxis |
Read Write Property: Show axis?
|
|
FBPropertyBool | ViewShowTimeCode |
Read Write Property: Show time code?
|
|
FBPropertyBool | ViewDisplaySafeArea |
Read Write Property: Display safe
area? |
|
FBPropertyBool | ViewOpticalCenter |
Read Write Property: View optical
center? |
|
FBPropertyCameraSafeAreaMode | SafeAreaMode |
Read Write Property: Select mode for
safe area. |
|
FBPropertyAnimatableColor | BackGroundColor |
Read Write Property: Background color
for camera. |
|
FBPropertyBool | UseFrameColor |
Read Write Property: Use frame color?
|
|
FBPropertyColor | FrameColor |
Read Write Property: Frame color for
camera. |
|
FBPropertyBool | UseAntiAliasing |
Read Write Property: Use
anti-aliasing? |
|
FBPropertyBool | UseDepthOfField |
Read Write Property: Use depth of
field calculations? |
|
FBPropertyBool | InteractiveMode |
Read Write Property: Interactive
mode? |
|
FBPropertyDouble | AntiAliasingIntensity |
Read Write Property: Anti-aliasing
intensity. |
|
FBPropertyCameraAntiAliasingMethod | AntiAliasingMethod |
Read Write Property: Anti-aliasing
method. |
|
FBPropertyInt | NumberOfSamples |
Read Write Property: Number of
samples to oversample with. |
|
FBPropertyCameraSamplingType | SamplingType |
Read Write Property: Type of over
sampling. |
|
FBPropertyBool | UseAccumulationBuffer |
Read Write Property: Use accumulation
buffer? |
|
FBPropertyCameraFocusDistanceSource | FocusDistanceSource |
Read Write Property: Select source
for focusing. |
|
FBPropertyDouble | FocusSpecificDistance |
Read Write Property: Specfic distance
for focusing. |
|
FBPropertyDouble | FocusAngle |
Read Write Property: Focus Angle
(rendering dof). |
|
FBPropertyBool | Use2DMagnifier |
Read Write Property: Enable/Disable
the 2D Magnifier. |
|
FBPropertyBool | Display2DMagnifierFrame |
Read Write Property: Enable/Disable
the drawing of the 2D Magnifier frame box. |
|
FBPropertyAnimatableDouble | MagnifierZoom |
Read Write Property: 2D Magnifier
Zoom value. |
|
FBPropertyAnimatableDouble | MagnifierPosX |
Read Write Property: 2D Magnifier X
Position. |
|
FBPropertyAnimatableDouble | MagnifierPosY |
Read Write Property: 2D Magnifier Y
Position. |
|
FBPropertyModel | Interest |
Read Write Property: Direct camera's
interest. |
|
FBPropertyAnimatableDouble | Roll |
Read Write Property: Camera's roll on
it's Z axis. |
|
FBPropertyAnimatableDouble | TurnTable |
Read Write Property: Camera's
rotation around its interest. |
|
FBPropertyBool | DisplayTurnTableIcon |
Read Write Property: Enable/Disable
the drawing of the Turn Table icon. |
FBCamera | ( | char * | pName, | |
HIObject | pObject = NULL |
|||
) |
Constructor.
pName | Name of camera. | |
pObject | For internal use only(default=NULL). |
double* GetMatrix | ( | FBCameraMatrixType | pType | ) |
Obtain the camera's transformation matrix (either Model or Projection View).
pType | Matrix type to obtain. |
FBPropertyCameraFrameSizeMode FrameSizeMode |
FBPropertyCameraResolutionMode ResolutionMode |
FBPropertyCameraType Type |
FBPropertyCameraApertureMode ApertureMode |
FBPropertyCameraFilmBackType FilmBackType |
FBPropertyVideo BackGroundMedia |
FBPropertyCameraViewPlaneMode ViewBackGroundPlaneMode |
FBPropertyCameraDistanceMode BackGroundPlaneDistanceMode |
FBPropertyVideo ForeGroundMedia |
FBPropertyCameraViewPlaneMode ViewForeGroundPlaneMode |
FBPropertyCameraDistanceMode ForeGroundPlaneDistanceMode |
FBPropertyCameraSafeAreaMode SafeAreaMode |
FBPropertyCameraAntiAliasingMethod AntiAliasingMethod |
FBPropertyCameraSamplingType SamplingType |
FBPropertyCameraFocusDistanceSource FocusDistanceSource |
FBPropertyModel Interest |