XML:M3GM: Difference between revisions
Jump to navigation
Jump to search
Paradox-01 (talk | contribs) mNo edit summary |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 172: | Line 172: | ||
Or use [[Vago_(tool)|Vago]]. | Or use [[Vago_(tool)|Vago]]. | ||
This command was broken in OniSplit v0.9.86.0 | |||
===dat to oni=== | ===dat to oni=== | ||
Line 182: | Line 184: | ||
==Import== | ==Import== | ||
onisplit -create:m3gm ''output_folder'' -tex:''input_folder''/TXMP''file_name''.oni ''input_folder''/''file_name''.obj | onisplit -create:m3gm ''output_folder'' -tex:''input_folder''/TXMP''file_name''.oni ''input_folder''/''file_name''.obj | ||
-tex argument is optional but should be always used. | |||
Or use [[Vago_(tool)|Vago]]. | Or use [[Vago_(tool)|Vago]]. |
Revision as of 18:17, 5 May 2013
M3GM : Geometry | ||
---|---|---|
XML
M3GA << Other file types >> Mtrl |
General information
- The xml code on this page was tested with onisplit v0.9.86.0
- M3GM files local (levelN) and global (level0).
- Most global M3GMs are used by particle.
- Most local M3GMs are doors or animated objects.
M3GM
XML tag | content type | description |
---|---|---|
<M3GM id="..."> | integer | |
<Points> | link | "#" + instance Id of PNTA.
|
<VertexNormals> | link | "#" + instance Id of VCRA.
|
<FaceNormals> | link | "#" + instance Id of VCRA.
|
<TextureCoordinates> | link | "#" + instance Id of TXCA.
|
<TriangleStrips> | link | "#" + instance Id of IDXA.
|
<FaceNormalIndices> | link | "#" + instance Id of IDXA.
|
<Texture> | link | TXMPname |
PNTA
XML tag | content type | description |
---|---|---|
<PNTA id="..."> | integer | Instance Id. |
<BoundingBox> | - | |
<Min> | float x3 | |
<Max> | float x3 | |
<BoundingSphere> | - | |
<Center> | float x3 | |
<Radius> | float | |
<Positions> | - | This is an int32 array for the <Vector3> tags. |
<Vector3> | float x3 | X Y Z coordinate of the point. |
VCRA
XML tag | content type | description |
---|---|---|
<VCRA id="..."> | integer | Instance Id. |
<Normals> | - | This is an int32 array for the <Vector3> tags. |
<Vector3> | float x3 | X Y Z coordinate of the normal vector. |
TXCA
XML tag | content type | description |
---|---|---|
<TXCA id="..."> | integer | Instance Id. |
<TexCoords> | - | This is an int32 array for the <Vector2> tags. |
<Vector2> | float x2 | X Y coordinates. |
IDXA
XML tag | content type | description |
---|---|---|
<IDXA id="..."> | integer | Instance Id. |
<Indices> | - | This is an int32 array for the <Int32> tags. |
<Int32> | int32 |
|
Export
oni to obj
onisplit -extract:obj output_folder input_folder/M3GMfile_name.oni
Or use Vago.
This command was broken in OniSplit v0.9.86.0
dat to oni
onisplit -export:object_name output_folder input_folder/file_name.dat
File prefix M3GM in object_name is optional.
The command's integration into Vago has been requested.
Import
onisplit -create:m3gm output_folder -tex:input_folder/TXMPfile_name.oni input_folder/file_name.obj
-tex argument is optional but should be always used.
Or use Vago.