Urban Chaos PRM: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks (→PRM) |
imported>Ikskoks No edit summary |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 12: | Line 12: | ||
// PRM file format (3D Model) | // PRM file format (3D Model) | ||
//header | |||
UINT16 Magic // "\xA2\x16" | |||
char(x) - Model Name // for example "ambulance" | |||
UINT16 First point ID | |||
UINT16 Last point ID | |||
UINT16 First quadrangle ID | |||
UINT16 Last quadrangle ID | |||
UINT16 First triangle ID | |||
UINT16 Last triangle ID | |||
// | //properties | ||
UINT8 Collision type | |||
BOOL8 Reaction to an impact by a vehicle | |||
UINT8 Shadow type | |||
BOOL8 Various properties | |||
//points coordinates | |||
num_of_points * | |||
{ | |||
INT16 Position X | |||
INT16 Position Y | |||
INT16 Position Z | |||
} | |||
//quadrangles structure | |||
num_of_quadrangles * | |||
{ | |||
UINT8 Texture ID group | |||
BOOL8 Properties | |||
UINT16 Point A ID | |||
UINT16 Point B ID | |||
UINT16 Point C ID | |||
UINT16 Point D ID | |||
UINT8 U position of the point A on the texture grid (u) | |||
UINT8 V position of the point A on the texture grid (v) | |||
UINT8 U position of the point B on the texture grid (u) | |||
UINT8 V position of the point B on the texture grid (v) | |||
UINT8 U position of the point C on the texture grid (u) | |||
UINT8 V position of the point C on the texture grid (v) | |||
UINT8 U position of the point D on the texture grid (u) | |||
UINT8 V position of the point D on the texture grid (v) | |||
UINT16 Unknown | |||
UINT16 Unknown | |||
UINT16 Unknown | |||
UINT16 Unknown | |||
UINT32 Unknown | |||
BOOL8 Properties | |||
UINT8 More properties | |||
UINT16 Unknown | |||
} | |||
//triangles structure | |||
num_of_triangles * | |||
{ | |||
// same as quadrangles but without the D point | |||
} | |||
</pre> | </pre> | ||
</div> | </div> | ||
| Line 24: | Line 80: | ||
* Files with this file format can be found inside "\Urban Chaos\server\prims\" folder. | * Files with this file format can be found inside "\Urban Chaos\server\prims\" folder. | ||
* PRM files are also known as "Prim Objects". | |||
=== Compatible Programs === | === Compatible Programs === | ||
* [http://code.vonc.fr/?a=60 PRM Model Viewer] | |||
| Line 36: | Line 93: | ||
[[Category:Extension_prm | Extension: prm]] | [[Category:Extension_prm | Extension: prm]] | ||
[[Category:BMS_None | BMS: None]] | [[Category:BMS_None | BMS: None]] | ||
[[Category:File Format]] | |||
Latest revision as of 17:06, 25 January 2021
PRM
- Game : Urban Chaos
- Format Type : 3D Model
- Endian Order : Little Endian
Format Specifications
// Urban Chaos
// PRM file format (3D Model)
//header
UINT16 Magic // "\xA2\x16"
char(x) - Model Name // for example "ambulance"
UINT16 First point ID
UINT16 Last point ID
UINT16 First quadrangle ID
UINT16 Last quadrangle ID
UINT16 First triangle ID
UINT16 Last triangle ID
//properties
UINT8 Collision type
BOOL8 Reaction to an impact by a vehicle
UINT8 Shadow type
BOOL8 Various properties
//points coordinates
num_of_points *
{
INT16 Position X
INT16 Position Y
INT16 Position Z
}
//quadrangles structure
num_of_quadrangles *
{
UINT8 Texture ID group
BOOL8 Properties
UINT16 Point A ID
UINT16 Point B ID
UINT16 Point C ID
UINT16 Point D ID
UINT8 U position of the point A on the texture grid (u)
UINT8 V position of the point A on the texture grid (v)
UINT8 U position of the point B on the texture grid (u)
UINT8 V position of the point B on the texture grid (v)
UINT8 U position of the point C on the texture grid (u)
UINT8 V position of the point C on the texture grid (v)
UINT8 U position of the point D on the texture grid (u)
UINT8 V position of the point D on the texture grid (v)
UINT16 Unknown
UINT16 Unknown
UINT16 Unknown
UINT16 Unknown
UINT32 Unknown
BOOL8 Properties
UINT8 More properties
UINT16 Unknown
}
//triangles structure
num_of_triangles *
{
// same as quadrangles but without the D point
}
MultiEx BMS Script
Not written yet.
Notes and Comments
- Files with this file format can be found inside "\Urban Chaos\server\prims\" folder.
- PRM files are also known as "Prim Objects".