OBD:M3GM: Difference between revisions
Jump to navigation
Jump to search
("generates its own"? "ignored"? what the?!) |
mNo edit summary |
||
Line 9: | Line 9: | ||
{{OBDtr|0x00|res_id |FF0000|01 D7 00 00|215 | 00215-door_1_0.M3GM}} | {{OBDtr|0x00|res_id |FF0000|01 D7 00 00|215 | 00215-door_1_0.M3GM}} | ||
{{OBDtr|0x04|lev_id |FFFF00|01 00 00 06|3 | level 3}} | {{OBDtr|0x04|lev_id |FFFF00|01 00 00 06|3 | level 3}} | ||
{{OBDtr|0x08|int32 |FFC8C8|00 00 00 00|0 | | {{OBDtr|0x08|int32 |FFC8C8|00 00 00 00|0 | runtime only }} | ||
{{OBDtr|0x0C|link |FFFFC8|01 DA 00 00|218 | link to [[OBD:PNTA|00218-.PNTA]] (vertex XYZs) }} | {{OBDtr|0x0C|link |FFFFC8|01 DA 00 00|218 | link to [[OBD:PNTA|00218-.PNTA]] (vertex XYZs) }} | ||
{{OBDtr|0x10|link |FFFFC8|01 F7 00 00|247 | link to [[OBD:VCRA|00247-.VCRA]] (vertex normals) }} | {{OBDtr|0x10|link |FFFFC8|01 F7 00 00|247 | link to [[OBD:VCRA|00247-.VCRA]] (vertex normals) }} |
Revision as of 22:17, 7 February 2008
|
Offset | Type | Raw Hex | Value | Description |
---|---|---|---|---|
0x00 | res_id | 01 D7 00 00 | 215 | 00215-door_1_0.M3GM |
0x04 | lev_id | 01 00 00 06 | 3 | level 3 |
0x08 | int32 | 00 00 00 00 | 0 | runtime only |
0x0C | link | 01 DA 00 00 | 218 | link to 00218-.PNTA (vertex XYZs) |
0x10 | link | 01 F7 00 00 | 247 | link to 00247-.VCRA (vertex normals) |
0x14 | link | 01 F0 00 00 | 240 | link to 00240-.VCRA (face normals) |
0x18 | link | 01 ED 00 00 | 237 | link to 00237-.TXCA (vertex UVs) |
0x1C | link | 01 0C 01 00 | 268 | link to 00268-.IDXA (triangle strips) |
0x20 | link | 01 11 01 00 | 273 | link to 00273-.IDXA (face groupings) |
0x24 | link | 01 D8 00 00 | 216 | link to 00216-.TXMP (texture) |
0x28 | link | 00 00 00 00 | unused | unused link; never used in Oni |
0x2C | char[20] | AD DE | dead | unused |
- Vertices
- XYZ and UV coordinates are stored in parallel (same number of entries in PNTA and TXCA).
- Vertex normals
- The first VCRA stores the normals for every vertex (same entries as in PNTA and TXCA).
- Vertex normals are used by Gouraud shading (directional lighting).
- Face normals
- The second VCRA stores the normals for every face (groups defined by the second IDXA).
- Face normals are used for backface culling.
- Triangle strips
- The first IDXA lists the triangles as strips. The IDs are the ones in PNTA and IDXA.
- The start of a new strip is signaled by a high bit in the ID of its first vertex.
- Strips are more optimal for rendering, they are generated when authoring an M3GM.
- Face groupings
- The second IDXA groups the triangles into faces (oriented by the second VCRA).
ONI BINARY DATA |
---|
M3GA << Other file types >> Mtrl |
M3GM : Geometry |
Generic file |