Cameras have a representation in the node graph and can be animated. An important aspect is that the camera itself is also part of the scenegraph. This
means, any values such as the look-at vector are not *absolute*, they're relative to the coordinate system defined by the node which corresponds
to the camera. This allows for camera animations. For static cameras parameters like the 'look-at' or 'up' vectors are usually specified directly in
aiCamera, but beware, they could also be encoded in the node transformation.
struct aiCamera {
struct aiString mName;
struct aiVector3D mPosition;
struct aiVector3D mUp;
struct aiVector3D mLookAt;
float mHorizontalFOV;
float mClipPlaneNear;
float mClipPlaneFar;
float mAspect;
float mOrthographicWidth;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | AICamera.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | MASPECT
The struct member offsets. |
| public static final int | MCLIPPLANEFAR
The struct member offsets. |
| public static final int | MCLIPPLANENEAR
The struct member offsets. |
| public static final int | MHORIZONTALFOV
The struct member offsets. |
| public static final int | MLOOKAT
The struct member offsets. |
| public static final int | MNAME
The struct member offsets. |
| public static final int | MORTHOGRAPHICWIDTH
The struct member offsets. |
| public static final int | MPOSITION
The struct member offsets. |
| public static final int | MUP
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | AICamera(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static AICamera | |
| public static AICamera. | calloc(int
the buffer capacity capacity)Returns a new |
| public static AICamera | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AICamera. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AICamera | |
| public static AICamera | |
| public static AICamera. | |
| public static AICamera. | |
| protected AICamera | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static AICamera | |
| public static AICamera | |
| public static AICamera. | create(int
the buffer capacity capacity)Returns a new |
| public static AICamera. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static AICamera | |
| public static AICamera. | |
| public static AICamera | |
| public static AICamera. | malloc(int
the buffer capacity capacity)Returns a new |
| public static AICamera | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AICamera. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AICamera | |
| public static AICamera | |
| public static AICamera. | |
| public static AICamera. | |
| public float | |
| public AICamera | |
| public float | |
| public AICamera | |
| public float | |
| public AICamera | |
| public float | |
| public AICamera | |
| public AIVector3D | mLookAt()
'LookAt' - vector of the camera coordinate system relative to the coordinate space defined by the corresponding node. |
| public AICamera | |
| public AICamera | |
| public AIString | |
| public AICamera | |
| public AICamera | |
| public float | |
| public AICamera | |
| public AIVector3D | mPosition()
Position of the camera relative to the coordinate space defined by the corresponding node. |
| public AICamera | |
| public AICamera | |
| public AIVector3D | mUp()
'Up' - vector of the camera coordinate system relative to the coordinate space defined by the corresponding node. |
| public AICamera | |
| public AICamera | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static AIVector3D | |
| public static void | |
| public static AIString | |
| public static void | |
| public static float | |
| public static void | |
| public static AIVector3D | |
| public static void | |
| public static AIVector3D | |
| public static void | |
| public AICamera | set(AIString mName, AIVector3D mPosition, AIVector3D mUp, AIVector3D mLookAt, float mHorizontalFOV, float mClipPlaneNear, float mClipPlaneFar, float mAspect, float mOrthographicWidth)
Initializes this struct with the specified values. |
| public AICamera | |
| public int |