
you can check it by following script yourself:P
Code: Select all
fname = getOpenFileName \
caption:"Model File" \
types:" Model File(*.dat)|*.dat" \
f = fopen fname "rb"
fsize = getFileSize fname
clearlistener()
Vert_array = #()
Normal_array = #()
UV_array = #()
Face_array = #()
print "file size check"
print fsize
c = 0
fseek f 160 #seek_cur
while c != 1 do (
sig1 = readlong f #unsigned
sig2 = readlong f #unsigned
sig3 = readlong f #unsigned
sig4 = readlong f #unsigned
cur_pos = ftell f
if sig1 == 2 do(
vx = readfloat f
vy = readfloat f
vz = readfloat f
unknown1 = readfloat f
append Vert_array[vx,vy,vz,unknown1]
)----if sig1 = 2
if cur_pos >= (fsize - 64) do (
c =1
)----if cur_pos >= (fsize - 64)
)---- while c != 1
print Vert_array.count
--print Vert_array
msh = mesh vertices:Vert_array faces:Face_array
msh.numTVerts = Vert_array.count
buildTVFaces msh
--for j = 1 to UV_array.count do setTVert msh j UV_array[j]
--for j = 1 to Face_array.count do setTVFace msh j Face_array[j]
--for j = 1 to Normal_array.count do setNormal msh j Normal_array[j]
--convertTo msh PolyMeshObject
gc()
fflush f
fclose f





