01-23-2017, 09:45 PM
You can get the camera matrices with using GetCameraMatrixes method on the Ab3d.PowerToys Camera.
On the existing camera instance, you can use the following method:
bool GetCameraMatrixes(out Matrix3D viewMatrix, out Matrix3D projectionMatrix)
Or you can use any of the following static methods on Ab3d.Cameras.BaseCamera:
bool GetCameraMatrixes(Viewport3D viewport3D, out Matrix3D viewMatrix, out Matrix3D projectionMatrix)
bool GetCameraMatrixes(Camera camera, double viewportAspectRatio, out Matrix3D viewMatrix, out Matrix3D projectionMatrix)
bool GetCameraMatrixes(BaseCamera camera, double viewportAspectRatio, out Matrix3D viewMatrix, out Matrix3D projectionMatrix)
On the existing camera instance, you can use the following method:
bool GetCameraMatrixes(out Matrix3D viewMatrix, out Matrix3D projectionMatrix)
Or you can use any of the following static methods on Ab3d.Cameras.BaseCamera:
bool GetCameraMatrixes(Viewport3D viewport3D, out Matrix3D viewMatrix, out Matrix3D projectionMatrix)
bool GetCameraMatrixes(Camera camera, double viewportAspectRatio, out Matrix3D viewMatrix, out Matrix3D projectionMatrix)
bool GetCameraMatrixes(BaseCamera camera, double viewportAspectRatio, out Matrix3D viewMatrix, out Matrix3D projectionMatrix)
Andrej Benedik

