Camera (RW Section)

From GTAMods Wiki
Revision as of 00:54, 24 February 2021 by Muzzarino (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Camera
RenderWare Stream Section
Vendor Criterion Games
Module Core
Module ID 0x000000
Identifier 0x05
Chunk ID 0x00000005
Versions All
Hierarchy
Parents:
Clump
Children:
Struct
Extensions:
None
File Format

Camera is a section used in DFF files as child of a Clump section. It is normally accompanied by a Struct section. Note that RenderWare cameras are not used in GTA.

Structure

The section itself typically does not contain any content. All information about the camera is stored within a Struct section, directly following the camera section header. This structure contains the following information:

 4b - FLOAT    - Horizontal fov tangent
 4b - FLOAT    - Vertical fov tangent
 4b - FLOAT    - Viewport width
 4b - FLOAT    - Viewport height
 4b - FLOAT    - Near plane
 4b - FLOAT    - Far plane
 4b - FLOAT    - Fog distance
 4b - DWORD    - Projection mode

The projection mode can be one of the following values:

 0x01 - rwPERSPECTIVE - Perspective projection
 0x02 - rwPARALLEL    - Orthographic projection