CustomCamera QML Type | Qt Quick 3D 5.14.2

Qt 5.14 | Qt Quick 3D | QML Types | CustomCamera QML Type

Qt 5.14.2 Reference Documentation

# CustomCamera QML Type

Defines a Custom Camera for viewing the content of a 3D scene. More...

Import Statement: | import QtQuick3D 1.14
Inherits: | Camera

- List of all members, including inherited members

## Properties

- projection : matrix4x4

## Detailed Description

A Camera is always necessary to view the content of a 3D scene. A camera defines how to project the content of a 3D scene into a 2D coordinate space, which can then be used on a 2D surface. When a camera is present in the scene it can be used to direct what is displayed in a View3D.

To determine the projection of this camera a high level API is provided. First it is possible to position this Camera like any other spatial Node in the scene. This determines where the Camera is in the scene, and what direction it is facing. The default direction of the camera is such that the forward vector is looking up the +Z axis, and the up direction vector is up the +Y axis. With this in mind any transformation applied to the camera as well as the transformations inherited from it's parent Nodes you can define exactly where and in what direction your camera is facing.

If you need full-control over how the projection matrix is created, this is the camera to use.

See also PerspectiveCamera, OrthographicCamera, and FrustumCamera.

## Property Documentation

projection : matrix4x4

This property defines a custom projection matrix.