LBA2:3D model: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [unchecked revision] |
Content deleted Content added
Updating format fields |
|||
Line 23: | Line 23: | ||
40: u32 Number of polygons |
40: u32 Number of polygons |
||
44: u32 Offset to polygons |
44: u32 Offset to polygons |
||
48: u32 Number of |
48: u32 Number of lines |
||
4C: u32 Offset to |
4C: u32 Offset to lines |
||
50: u32 Number of spheres |
50: u32 Number of spheres |
||
54: u32 Offset to spheres |
54: u32 Offset to spheres |
||
58: u32 Number of textures |
|||
58: u32 Number of unknown3 //Probably Line And Texture Indexes; Colors, Textures, Maps, Etc. - Found By Mr. Quetch |
|||
5C: u32 Offset to textures |
|||
5C: u32 Offset to unknown4 //Probably Line And Texture Indexes; Colors, Textures, Maps, Etc. - Found By Mr. Quetch |
|||
[ / Header ] |
[ / Header ] |
||
Line 53: | Line 53: | ||
[ Unknown1 ] |
[ Unknown1 ] |
||
00: |
00: u16 ?? |
||
⚫ | |||
04: u16 ?? |
|||
06: u16 ?? |
|||
[ / Unknown1 ] |
[ / Unknown1 ] |
||
[ Polygon ] |
[ Polygon ] |
||
00: u16 flag (Use Texture/Is Transparency) |
|||
⚫ | |||
02: u16 Number of polygons |
02: u16 Number of polygons |
||
04: u16 Size of data |
04: u16 Size of data |
||
Line 65: | Line 68: | ||
[ / Polygon ] |
[ / Polygon ] |
||
[ |
[ Lines ] |
||
00: |
00: u16 ?? |
||
02: u16 colour |
|||
04: u16 vertex1 |
|||
06: u16 vertex2 |
|||
[ / Unknown2 ] |
[ / Unknown2 ] |
||
[ Sphere ] |
[ Sphere ] |
||
00: |
00: u16 ?? |
||
02: u16 colour |
|||
04: u16 vertex |
|||
06: u16 size (needs to be devided by 0x4000) |
|||
[ / Sphere ] |
[ / Sphere ] |
||
[ |
[ Textures ] |
||
00: |
00: u8 x |
||
01: u8 y |
|||
⚫ | |||
02: u8 w |
|||
03: u8 h |
|||
⚫ | |||
</pre> |
</pre> |
||
{{providers|[[provider::alexfont]]}} |
{{providers|[[provider::alexfont]]}} |
Revision as of 17:29, 6 July 2016
3D model | ||
---|---|---|
Extension |
LM2 |
|
Occurence |
LBA2 |
|
Colour |
|
|
Programs supporting this format | ||
(none) |
||
References | ||
LM2 files contain 3D models used for Actors and other objects in LBA2.
Specification
This article needs completion. Please provide more information if you can. |
[ Header ] 00: ?? ?? 20: u32 Number of bones 24: u32 Offset to bones 28: u32 Number of vertices 2C: u32 Offset to vertices 30: u32 Number of normals 34: u32 Offset to normals 38: u32 Number of unknown1 3C: u32 Offset to unknown1 40: u32 Number of polygons 44: u32 Offset to polygons 48: u32 Number of lines 4C: u32 Offset to lines 50: u32 Number of spheres 54: u32 Offset to spheres 58: u32 Number of textures 5C: u32 Offset to textures [ / Header ] [ Bone ] 00: u16 Parent bone 02: u16 Vertex 04: u16 ?? 06: u16 ?? [ / Bone ] [ Vertex ] 00: s16 x 02: s16 y 04: s16 z 06: u16 Bone [ / Vertex ] [ Normal ] 00: s16 x 02: s16 y 04: s16 z 06: u16 ?? [ / Normal ] [ Unknown1 ] 00: u16 ?? 02: u16 ?? 04: u16 ?? 06: u16 ?? [ / Unknown1 ] [ Polygon ] 00: u16 flag (Use Texture/Is Transparency) 02: u16 Number of polygons 04: u16 Size of data 06: u16 ?? Read (size - 8) * (number of polygons) That data contains polygons and colour information [ / Polygon ] [ Lines ] 00: u16 ?? 02: u16 colour 04: u16 vertex1 06: u16 vertex2 [ / Unknown2 ] [ Sphere ] 00: u16 ?? 02: u16 colour 04: u16 vertex 06: u16 size (needs to be devided by 0x4000) [ / Sphere ] [ Textures ] 00: u8 x 01: u8 y 02: u8 w 03: u8 h [ / Textures ]
Information provided by: alexfont