Wiki

Clone wiki

tintai / wmo2obj

wmo2obj extracts the 3D data of any wmo model to an waveform obj output.


This tool is under construction



Version 0.2

First and internal only release.
It alows only a very merge extraction of the 3D model and the raw texture infomations.
Additional values for the materials as well for the intire wmo model will be ignored.

Input

WMO2OBJ - Tintai WMO 0.2
Usage:  WMO2OBJ <wmofile> (outputdir)

Output

Creates an $file.obj and $file.mtl file.

#Created with Tintai
#------------------------------------------------
mtllib $file.mtl

v 0.0 0.0 0.0
v 0.0 0.0 0.0
v 0.0 0.0 0.0

vn 0.0 0.0 0.0
vn 0.0 0.0 0.0
vn 0.0 0.0 0.0

vt 0.0 0.0 0.0
vt 0.0 0.0 0.0
vt 0.0 0.0 0.0

# N faces
g $file_00N.wmo
usemtl textN
f 1/1/1 2/2/2 3/3/3

The tool extracts any v, vn and vt value present in the model. Some of them may be not used in the rendering because they represent collision data or something else.
Groups are used for different wmo group files.
Material sections are used for texturing only. They are based on the render branches.

#Created with Tintai
#------------------------------------------------

newmtl INVISIBLE
illum 0
Kd 1.00 0.00 0.00
Ka 1.00 0.00 0.00
Tf 1.00 0.00 0.00
d 0.0

newmtl textN
illum 4
Kd 1.00 1.00 1.00
Ka 1.00 1.00 1.00
Tf 1.00 1.00 1.00
map_Kd file.png

Any infomation besides the texture name is static.
The texture file extension and its path will be removed.



Version 0.3

Internal only release.
It alows the extraction of the 3D model, collision data, bounding boxes, surfaces and the raw texture infomations.
Additional values for the materials as well for the intire wmo model will be ignored.

Input

WMO2OBJ - Tintai WMO 0.3
Usage: test [-options] [files...]

where options include:
   -o <???>
   -outdir <???>         to set the output direcotry
   -? -help              prints this help message
   -v -version           prints product version

Updated