XML:ONWC: Difference between revisions

140 bytes added ,  20 April 2012
m
no edit summary
No edit summary
mNo edit summary
Line 428: Line 428:


=M3GM=
=M3GM=
'''export'''
: ''onisplit -extract:obj output_folder input_folder\ONWCfile.oni''
'''import'''
Are there some tags which make together the mesh but you basically need to know that you can replace that content with data from another M3GM.
Are there some tags which make together the mesh but you basically need to know that you can replace that content with data from another M3GM.


You can create M3GM meshes from obj files. OniSplit v0.9.61.0 refuse to create a single M3GM. Instead, use OniSplit [http://mods.oni2.net/node/38 v0.9.41.0]
You can create M3GM meshes from obj files.
: ''onisplit -create:m3gm output_folder -tex:weapon_tex input_folder/weapon.obj''
:: -tex is optional
:: The TXMP file must created separately (if needed).


Then you can convert the file to xml and replace the ONWC's old M3GM xml code (in case you didn't start from scratch).
Then you can convert the file to xml and replace the ONWC's old M3GM xml code (in case you didn't start from scratch).


Remember to change the links (#N) and instance IDs of the new data.
Remember to change the links (#N) and instance IDs of the new data.
8,245

edits