Page 1 of 2

Pure demo .model files

Posted: Sat Sep 15, 2012 12:45 pm
by Bogus
hello all
can any of you know where they are vertices, faces and so on in .model files?
link to demo:
http://www.gamefront.com/files/Pure+Dem ... einfo.html

the download will take some time

Pure demo .model files

Posted: Thu Sep 20, 2012 8:37 am
by Bogus
does anyone answer me?
please

Re: Pure demo .model files

Posted: Thu Sep 20, 2012 10:33 pm
by finale00
I'm not downloading 2 gigs just send some models I mean, it's clearly free to obtain.

Re: Pure demo .model files

Posted: Fri Sep 21, 2012 7:30 am
by Bogus
ok
this i will give sample files

http://www.sendspace.com/file/sk6vrx

Re: Pure demo .model files

Posted: Fri Sep 21, 2012 10:53 am
by finale00
You should upload at least 10 samples of varying sizes and not all LOD's of basically the same model.

Re: Pure demo .model files

Posted: Fri Sep 21, 2012 12:42 pm
by Bogus

Re: Pure demo .model files

Posted: Mon Sep 24, 2012 8:45 am
by Bogus
some progress?
unless hard is crack this format

Re: Pure demo .model files

Posted: Tue Sep 25, 2012 11:55 am
by shakotay2
maybe packed vertices?

This is a dump of SWINGARM_01_LOD3.model:

Code: Select all

# SWINGARM_01_LOD3.model
# 16 (18) verts
# 1.       0x08: hex dump
# D0 B6 03 34 6D B9 00 3C AA 17 54 B9 F8 B9 E0 C1 BF B2 9D 32 09 39 00 00 
# D0 B6 FC 33 3A B9 00 3C 97 17 F8 B9 54 39 E0 C1 BB 39 1A 32 0B 39 00 00 
# E8 36 08 34 6A B9 00 3C AA 17 54 B9 F8 B9 A8 43 CA B6 94 32 9E 38 00 00 
# E8 36 03 34 3C B9 00 3C 97 17 F8 B9 54 39 A8 43 68 3B 11 32 9F 38 00 00 
# D0 B6 FC 33 3A B9 00 3C 97 17 F8 B9 54 39 E0 C1 8A 34 1A 32 0B 39 00 00 
# D0 B6 64 34 37 B9 00 3C AA 17 54 39 F8 39 E0 C1 D8 3C 97 31 0C 39 00 00 
# E8 36 03 34 3C B9 00 3C 97 17 F8 B9 54 39 A8 43 C0 2C 11 32 9F 38 00 00 
# E8 36 5F 34 39 B9 00 3C AA 17 54 39 F8 39 A8 43 B3 3D 8E 31 A0 38 00 00 
# D0 B6 64 34 37 B9 00 3C AA 17 54 39 F8 39 E0 C1 BF B2 97 31 0C 39 00 00 
# D0 B6 69 34 69 B9 00 3C 97 17 F8 39 54 B9 E0 C1 BB 39 1A 32 0B 39 00 00 
# E8 36 5F 34 39 B9 00 3C AA 17 54 39 F8 39 A8 43 CA B6 8E 31 A0 38 00 00 
# E8 36 64 34 67 B9 00 3C 97 17 F8 39 54 B9 A8 43 68 3B 11 32 9F 38 00 00 
# D0 B6 69 34 69 B9 00 3C 97 17 F8 39 54 B9 E0 C1 8A 34 1A 32 0B 39 00 00 
# D0 B6 03 34 6D B9 00 3C AA 17 54 B9 F8 B9 E0 C1 D8 3C 9D 32 09 39 00 00 
# E8 36 64 34 67 B9 00 3C 97 17 F8 39 54 B9 A8 43 C0 2C 11 32 9F 38 00 00 
# E8 36 08 34 6A B9 00 3C AA 17 54 B9 F8 B9 A8 43 B3 3D 94 32 9E 38 00 00 

# D0 B6 FC 33 3A B9 00 3C E8 36 08 34 6A B9 00 3C D0 B6 03 34 6D B9 00 3C 
# E8 36 64 34 67 B9 00 3C D0 B6 69 34 69 B9 00 3C E8 36 5F 34 39 B9 00 3C 

# 0x08: as integers
v 46800 13315 47469 15360 6058 47444 47608 49632 45759 12957 14601 0 
v 46800 13308 47418 15360 6039 47608 14676 49632 14779 12826 14603 0 
v 14056 13320 47466 15360 6058 47444 47608 17320 46794 12948 14494 0 
v 14056 13315 47420 15360 6039 47608 14676 17320 15208 12817 14495 0 
v 46800 13308 47418 15360 6039 47608 14676 49632 13450 12826 14603 0 
v 46800 13412 47415 15360 6058 14676 14840 49632 15576 12695 14604 0 
v 14056 13315 47420 15360 6039 47608 14676 17320 11456 12817 14495 0 
v 14056 13407 47417 15360 6058 14676 14840 17320 15795 12686 14496 0 
v 46800 13412 47415 15360 6058 14676 14840 49632 45759 12695 14604 0 
v 46800 13417 47465 15360 6039 14840 47444 49632 14779 12826 14603 0 
v 14056 13407 47417 15360 6058 14676 14840 17320 46794 12686 14496 0 
v 14056 13412 47463 15360 6039 14840 47444 17320 15208 12817 14495 0 
v 46800 13417 47465 15360 6039 14840 47444 49632 13450 12826 14603 0 
v 46800 13315 47469 15360 6058 47444 47608 49632 15576 12957 14601 0 
v 14056 13412 47463 15360 6039 14840 47444 17320 11456 12817 14495 0 
v 14056 13320 47466 15360 6058 47444 47608 17320 15795 12948 14494 0 

# 2.     1C8:
f 1 2 3 
f 2 4 3 
f 5 6 7 
f 6 8 7 
f 9 10 11 
f 10 12 11 
f 13 14 15 
f 14 16 15 
f 1 2 3 
f 2 4 3 
f 3 4 5 
f 4 6 5 
f 5 6 7 
f 6 8 7 
f 7 8 1 
f 8 2 1 
# face index min/max: 1 / 16
choosing columns 6 to 8 gives you some kind of cubus:

Code: Select all

# D:\SWINGARM_01_LOD3.model
# 16 verts
# 1.       8:
v 47444 47608 49632 
v 47608 14676 49632 
v 47444 47608 17320 
v 47608 14676 17320 
v 47608 14676 49632 
v 14676 14840 49632 
v 47608 14676 17320 
v 14676 14840 17320 
v 14676 14840 49632 
v 14840 47444 49632 
v 14676 14840 17320 
v 14840 47444 17320 
v 14840 47444 49632 
v 47444 47608 49632 
v 14840 47444 17320 
v 47444 47608 17320 

# 2.     1b8:
f 1 2 3 
f 2 4 3 
f 5 6 7 
f 6 8 7 
f 9 10 11 
f 10 12 11 
f 13 14 15 
f 14 16 15 
f 1 2 3 
f 2 4 3 
f 3 4 5 
f 4 6 5 
f 5 6 7 
f 6 8 7 
f 7 8 1 
f 8 2 1 
# face index min/max: 1 / 16
From BRAKE_01_LOD1.model I extracted a plane.

Code: Select all

# D:\BRAKE_01_LOD1.model
# 16 verts ?

# 1.       0x8: hex dump
# B0 2E 57 35 E1 B9 00 3C 00 3C 00 00 00 00 E7 3B 56 22 D3 35 E6 33 00 00 5C 5C 5C 7F 
# B0 2E FF 31 E1 B9 00 3C 00 3C 00 00 00 00 E7 3B E7 3B D3 35 68 35 00 00 5C 5C 5C 7F 
# B0 2E 57 35 B6 B8 00 3C 00 3C 00 00 00 00 56 22 56 22 5D 34 E6 33 00 00 5C 5C 5C 7F 
# B0 2E FF 31 B6 B8 00 3C 00 3C 00 00 00 00 56 22 E7 3B 5D 34 68 35 00 00 5C 5C 5C 7F 
# B2 2E FF 31 B6 B8 00 3C 00 BC 01 00 00 00 56 22 E7 3B 5D 34 68 35 00 00 5C 5C 5C 7F 
# B2 2E FF 31 E1 B9 00 3C 00 BC 01 00 00 00 E7 3B E7 3B D3 35 68 35 00 00 5C 5C 5C 7F 
# B2 2E 57 35 B6 B8 00 3C 00 BC 01 00 00 00 56 22 56 22 5D 34 E6 33 00 00 5C 5C 5C 7F 
# B2 2E 57 35 E1 B9 00 3C 00 BC 01 00 00 00 E7 3B 56 22 D3 35 E6 33 00 00 5C 5C 5C 7F 
# A9 2E 57 35 B6 B8 00 3C 00 BC 00 00 00 00 56 22 56 22 5D 34 E6 33 00 00 5C 5C 5C 7F 
# A9 2E FF 31 B6 B8 00 3C 00 BC 00 00 00 00 56 22 E7 3B 5D 34 68 35 00 00 5C 5C 5C 7F 
# A9 2E 57 35 E1 B9 00 3C 00 BC 00 00 00 00 E7 3B 56 22 D3 35 E6 33 00 00 5C 5C 5C 7F 
# A9 2E FF 31 E1 B9 00 3C 00 BC 00 00 00 00 E7 3B E7 3B D3 35 68 35 00 00 5C 5C 5C 7F 
# A8 2E FF 31 E1 B9 00 3C 00 3C 01 00 00 00 E7 3B E7 3B D3 35 68 35 00 00 5C 5C 5C 7F 
# A8 2E FF 31 B6 B8 00 3C 00 3C 01 00 00 00 56 22 E7 3B 5D 34 68 35 00 00 5C 5C 5C 7F 
# A8 2E 57 35 E1 B9 00 3C 00 3C 01 00 00 00 E7 3B 56 22 D3 35 E6 33 00 00 5C 5C 5C 7F 
# A8 2E 57 35 B6 B8 00 3C 00 3C 01 00 00 00 56 22 56 22 5D 34 E6 33 00 00 5C 5C 5C 7F 

# B0 2E 57 35 E1 B9 00 3C   B0 2E FF 31 E1 B9 00 3C 
# B0 2E 57 35 B6 B8 00 3C   B0 2E FF 31 B6 B8 00 3C 
# B2 2E FF 31 B6 B8 00 3C   B2 2E FF 31 E1 B9 00 3C 
# B2 2E 57 35 B6 B8 00 3C   B2 2E 57 35 E1 B9 00 3C 

# A9 2E 57 35 B6 B8 00 3C   A9 2E FF 31 B6 B8 00 3C 
# A9 2E 57 35 E1 B9 00 3C   A9 2E FF 31 E1 B9 00 3C
# A8 2E FF 31 E1 B9 00 3C   A8 2E FF 31 B6 B8 00 3C 
# A8 2E 57 35 E1 B9 00 3C   A8 2E 57 35 B6 B8 00 3C 

# 1.       0x8: some integers selected
v 15335 8790 13779
v 15335 15335 13779
v 8790 8790 13405
v 8790 15335 13405
v 8790 15335 13405
v 15335 15335 13779
v 8790 8790 13405
v 15335 8790 13779
v 8790 8790 13405
v 8790 15335 13405
v 15335 8790 13779
v 15335 15335 13779
v 15335 15335 13779
v 8790 15335 13405
v 15335 8790 13779
v 8790 8790 13405

#11952 13655 47585 15360 
#11952 12799 47585 15360 
#11952 13655 47286 15360 
#11952 12799 47286 15360 
#11954 12799 47286 15360 
#11954 12799 47585 15360 
#11954 13655 47286 15360 
#11954 13655 47585 15360 
#11945 13655 47286 15360 
#11945 12799 47286 15360 
#11945 13655 47585 15360 
#11945 12799 47585 15360 
#11944 12799 47585 15360 
#11944 12799 47286 15360 
#11944 13655 47585 15360 
#11944 13655 47286 15360 

# 2.     0x248:
f 1 2 3 
f 2 4 3 
f 5 6 7 
f 6 8 7 
f 9 10 11 
f 10 12 11 
f 13 14 15 
f 14 16 15 
f 1 2 3 
f 2 4 3 
f 5 6 7 
f 6 8 7 
f 9 10 11 
f 10 12 11 
f 13 14 15 
f 14 16 15 
# face index min/max: 1 / 16

Re: Pure demo .model files

Posted: Tue Sep 25, 2012 5:19 pm
by Bogus
shakotay2
I checked and the vertices are not displayed
don't know why
do not know should look like script on vertices
with msh files was easily

Re: Pure demo .model files

Posted: Tue Sep 25, 2012 10:42 pm
by finale00
Sounds like a bunch of cars, not really interested.

Anyways this is how you would probably parse it

Code: Select all

int32 unk # 5?
int32 meshOfs
Read meshOfs, add 8, then seek to it.
You'll then come to

Code: Select all

int32 numMesh
numMesh {
   byte nameLen
   char[nameLen] mesh name
}
...
Figure out how to parse the struct, and then somewhere near the bottom you'll get vert Counts and face Counts amongst other things.

Re: Pure demo .model files

Posted: Wed Sep 26, 2012 1:08 am
by shakotay2
Bogus wrote:shakotay2
I checked and the vertices are not displayed
Did you import the cubus thingie using blender's wavefront obj importer?
Anyway my method does not seem to be a solution so far.
With Faring_01_parts_01_LOD1.model I'm getting a tangle of planes.
finale00 wrote:Figure out how to parse the struct, [...]
Seems this doesn't really help.

I made a comparison between the "struct" parts of FARING_01_PARTS_01_LOD1.model and BRAKE_01_LOD1.model.
The highlighted bytes mark the differences to the Brake-model; mainly three (rotation?) matrices.
comparison_Brake_Faring.JPG
Image

Re: Pure demo .model files

Posted: Wed Sep 26, 2012 1:14 am
by finale00
I couldn't figure out how to determine how many vertices/indices to read so I figured it should just be grabbed from the bottom.

Re: Pure demo .model files

Posted: Wed Sep 26, 2012 1:40 am
by shakotay2
finale00 wrote:I couldn't figure out how to determine how many vertices/indices to read so I figured it should just be grabbed from the bottom.
Ok. :)
(I used the max face index before you gave this info.)

Any idea on the "packed" vertices?
(They are packed, aren't they?)

I think you need a factor for packed vertices but this will not unravel the tangle for sure...

Re: Pure demo .model files

Posted: Wed Sep 26, 2012 2:16 am
by finale00
Maybe they're just half-floats.

Re: Pure demo .model files

Posted: Wed Sep 26, 2012 12:38 pm
by Bogus
this format is difficult but I'll try to write an importer