Difference between revisions of "Camera (RW Section)"
Jump to navigation
Jump to search
(Created page with "{{RW Section | NAME = Camera | VENDORNAME = Criterion Games | MODULENAME = Core | MODULEID = 000000 | IDENTIFIER = 05 | PARENTS = Clump | CHILDREN = S...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 15: | Line 15: | ||
The section itself typically does not contain any content. All information about the camera is stored within a [[Struct (RW Section)|Struct]] section, directly following the camera section header. This structure contains the following information: | The section itself typically does not contain any content. All information about the camera is stored within a [[Struct (RW Section)|Struct]] section, directly following the camera section header. This structure contains the following information: | ||
− | 4b - FLOAT | + | 4b - FLOAT - Horizontal fov tangent |
+ | 4b - FLOAT - Vertical fov tangent | ||
4b - FLOAT - Viewport width | 4b - FLOAT - Viewport width | ||
4b - FLOAT - Viewport height | 4b - FLOAT - Viewport height |
Latest revision as of 00:54, 24 February 2021
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