Page 7 of 34

Re: Extracting simple models

Posted: Mon Oct 19, 2015 10:57 pm
by shakotay2
yeah, we've definitely hit the 1000 downloads limit with hex2obj.

update: 4th of June, 2000 downloads (v0.22: 1250, v0.24c: 750)
1000 in 225 days (10/19/15): 4 per day

That's a little bit funny since from the few feedbacks I guess there might be 5 to 10 people only
who really use it.

Not to talk about the Make_H2O project which comes with C source which nobody seems to use except me.
(Maybe due to my crappy coding style but it's too late to change it, sry.)

Anyway - those tools serve me as lifetime savers. Without them I'd really given up 3D models' analysing.

cheers
shak-otay

Make_H2O - a project to show how to create H2O parameter files for hex2obj:
viewtopic.php?f=29&t=12756

Re: Extracting simple models

Posted: Thu Oct 29, 2015 4:30 pm
by Casedey
Can someone help me to take a look at this model, i'm still a bit confused.
http://www.mediafire.com/download/agvmw ... 5g/x77.rar

Re: Extracting simple models

Posted: Thu Oct 29, 2015 7:19 pm
by shakotay2
It's not a matter of hex2obj - it's pure ASCII data:
"vertices" : 49954,
"faces" : 99886,
"normals" : 0,
"colors" : 0,
"uvs" : 52314,
"materials": 1
"scale" : 1.000000

"vertices": [-2.851608,109.752381,12.935308,...

There was a thread ("webgl" or similar) where this data were handled.

Re: Extracting simple models

Posted: Thu Oct 29, 2015 8:09 pm
by Casedey
There was a thread ("webgl" or similar) where this data were handled.
Ok! Thanks!!

Edit: I solved the puzzle, thanks for your help!!

Re: Extracting simple models

Posted: Tue Feb 02, 2016 8:23 am
by metalex
master helpme with this model format is pes ps2 model format

https://mega.nz/#!PAIgSbaJ!AXaMr1osg_Aa ... OHqz_nfsBE

Re: Extracting simple models

Posted: Wed Feb 03, 2016 2:49 pm
by shakotay2
First of all: I'm NOT a master - I just try to help people to help themselves.

With this said I think it's time to make a check list for noobs concerning the analyzing of 3D models:

Code: Select all

1) is the data compressed?
Try offzip if your unsure (works for zip compressed data only) or search for a decompressing tool.
(There's also Quickbms scripts for many archive formats.)

2) is it model data, texture data or animation data?
Use TextureFinder for textures. 
Some 3D models may contain both: model data and texture(s)

3) Before using hex2obj on a difficult format try out some of the dozens of simple samples on Xentax.

4) Then try out to get a point cloud  from your specific model as a first step. 

Look for continuous data sections with a size of 1 kB at least (0x400).

Yeah, what the heck does that mean: "continuous data"?

Hard to explain - in fact you'll need experience for that.
If there's gaps with more than 10 zero bytes for example I'd say it's not continuous data.

While float data is easy to recognize (with some experience) it's
rather hard to find vertex data in short/Word format.
On a quick glance I couldn't find any decent point clouds in your sample.
So you're on your own now to find out if I simply missed existing ones.

(I thought the sample might be partially compressed, but guess it's not.)

Did you try PES File Explorer, maybe with older PES model data?

Re: Extracting simple models

Posted: Thu Feb 11, 2016 5:47 pm
by pechenko121
shakotay2, can you help me in extracting models from this files? I read tutorial but it is rather hard for me to find start adress of verticses and face index count.

Here's the model.

And one more thing about tutor, how did you get this value?
Image
(0x2b2e)
I really don't get it. :D

Thank you :)

Re: Extracting simple models

Posted: Thu Feb 11, 2016 7:21 pm
by shakotay2
the point is to understand that the format is big endian. Then the rest is simple (shown for the last submesh only):

from the pic you can see the start of vertices (0x3196C, directly after the last face index (FI) of the previous submesh).
Startaddress of first face index of last submesh is 0x359B0. Resulting FIs count: 2556
Autocalculated vertex count: 457

size of vertex block (last submesh):
359B0 - 0x3196C = 0x4044 -> 16452 dec.
FVFsize: 16452 / 457 = 36

Assumed UVpos: 16, WordUV, (edit: HF_UF seems to be the better choice as you can see from Acewell's post)
endOfFIs.JPG
For the 0x2B2E from the tutorial: if you understood how to gain 0x2B39 it's mainly skipping the string ("Texture") and its char count (7 -> 07 000000 as DWord)

Re: Extracting simple models

Posted: Thu Feb 11, 2016 7:59 pm
by pechenko121
shakotay2 wrote:the point is to understand that the format is big endian. Then the rest is simple (shown for the last submesh only):

from the pic you can see the start of vertices (0x3196C, directly after the last face index (FI) of the previous submesh).
Startaddress of first face index of last submesh is 0x359B0. Resulting FIs count: 2556
Autocalculated vertex count: 457

size of vertex block (last submesh):
359B0 - 0x3196C = 0x4044 -> 16452 dec.
FVFsize: 16452 / 457 = 36

Assumed UVpos: 16, WordUV
endOfFIs.JPG
For the 0x2B2E from the tutorial: if you understood how to gain 0x2B39 it's mainly skipping the string ("Texture") and its char count (7 -> 07 000000 as DWord)
Thank you so much :)

Got the model :D
Image

Re: Extracting simple models

Posted: Thu Feb 11, 2016 9:20 pm
by pechenko121
I have another question: how do i calculate vertex start adress in file with one mesh?

Here's example.

Re: Extracting simple models

Posted: Fri Feb 12, 2016 2:38 am
by Acewell
sword360.png
h2o file for 00000003.dat

Code: Select all

0x934 268
Vb1
28 16
0x4 84
120100
0x0 255
:D

Re: Extracting simple models

Posted: Fri Feb 12, 2016 5:40 am
by pechenko121
AceWell wrote:
sword360.png
h2o file for 00000003.dat

Code: Select all

0x934 268
Vb1
28 16
0x4 84
120100
0x0 255
:D
Oh, my mistake was incorrect fvfsize :)
Thats why mesh didn't load for me with startadr 4 :D

Thank you :)

Re: Extracting simple models

Posted: Tue Feb 16, 2016 6:01 pm
by eri619
Could you help me with this please?
https://archive.org/download/TheRock_20 ... e_Rock.rar

Re: Extracting simple models

Posted: Tue Feb 16, 2016 7:45 pm
by shakotay2
First of all try to find out if the FML files contain mesh or animation data.
Did you try to get a point cloud?

0000L.FML seems to contain skeleton data, should be possible to extract it
but sadly I don't have the time for such atm.

Re: Extracting simple models

Posted: Thu Feb 18, 2016 6:43 pm
by eri619
shakotay2 wrote:First of all try to find out if the FML files contain mesh or animation data.
Did you try to get a point cloud?

0000L.FML seems to contain skeleton data, should be possible to extract it
but sadly I don't have the time for such atm.
They contain mesh data.Animation files are contained in .fmo files.