Jump to content

XML:ONLV: Difference between revisions

1,380 bytes removed ,  2 November 2023
m
mNo edit summary
Line 219: Line 219:


==CRSA==
==CRSA==
[[Image:ONLV_CRSA_XSI_aided_import.jpg|thumb|200px]]
Wanted: "How to add corpses" tutorial
:Some related information can be found at [[Authoring custom camera animations]].
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=150px| XML tag
!width=150px| XML tag
Line 274: Line 268:
|
|
|}
|}
The level importer supports importing corpses from an XML file with the same format as described above or the following simplified format:
{| class="wikitable" width="100%"
!width=150px| XML tag
!width=120px| Content type
! Description
|-
| <Corpses>
|
|
|-
|valign="top"| <Corpse>
|valign="top"| -
|
|-
| <Class>
| link
| [[XML:ONCC|ONCC]]''name''
|-
| <Transforms>
| -
| There are 19 <Matrix> for each <Transforms> (which represents a body part).
|-
| <Matrix>
| matrix
| Float 3x3 + float x3 for the last 3 values (X Y Z position). For more information about the matrix, see [[OBD:CRSA]].
|-
| <BoundingBox>
| -
| Bounding box of the whole corpse. Optional; if not provided, OniSplit will generate an approximate one. Currently it doesn't try to locate the ONCC to compute an exact bounding box.
|-
| <Min>
| float x3
|
|-
| <Max>
| float x3
|
|}
An empty Corpse element (<Corpse />) is treated as unused and placed at the end of the array. If no such empty elements are provided, OniSplit automatically adds 5. OniSplit also ensures that there are at least 20 corpses in the array.
If you created CRSA data using the Mod Tool addon, add <Oni> and </Oni> tags at the start and end of the file.


==M3GA==
==M3GA==
8,047

edits