XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Dec 10, 2018 10:35 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Wed Oct 03, 2018 12:19 pm 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Tue Jul 05, 2016 9:37 am
Posts: 373
Has thanked: 16 times
Have thanks: 211 times
shakotay2 wrote:
FVFsize= 6; but I see, it's ShortAll (instead of WordUV, which you seem to have used for uvs' displaying only.)

Oh, I forgot that WordUV is actually using float as vertex type. :D
Quote:
My confusion also aroused from the fact that there seems to be 6 floats values (bound box) before the mesh using shorts.

Yeah, I guess it's related to the scaling of the model. There're also 3 floats before the UV buffer. Maybe a scaling for UVW?

_________________
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.


Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Wed Oct 03, 2018 4:16 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2533
Location: Nexus, searching for Jim Kirk
Has thanked: 605 times
Have thanks: 1295 times
petventh18 wrote:
...with this maybe someone can help write a Noesis/Max script to import/export them.
well, I'm not a fan of writing scripts but as a first helper this tool may serve:

Uses simple formula for getting the uvs' start address, so might fail.
Tested with 00000506.mesh and 00000163.mesh only!

Might make sense to manually insert some g SM_x lines into the MakeObj_log.obj in case there's submeshes.

You might try this H2O file for 00000163.mesh with hex2obj (0.24e required to have the 'unsigned shorts' box checked!)

0x70061 56925
Vb1
6 99
0x12C 18341
040300
0x3A499 6

(It produces an obj file (File/SaveAs mesh) with g SM_x lines inserted each 500 faces.)
------------------------------

The H2O file for 00000161.mesh is

0x5588D 34152
Vb1
6 99
0x12C 14001
040300
0x2C835 6

With the tool you'll need to correct the uvs startaddress here.
In the lower left editbox it reads 2C833 after loading the above mentioned mesh file. When checking this in a hexeditor you'll see (with a little experience) that the auto calculation is 2 bytes "off".

So exit (important!) and restart the tool, don't load the mesh!

In the editbox type 2C835, no typos, please!
then load the 00000161.mesh again.

The procedure may be required for other *.mesh, too, review the proposed uv start address in a hexeditor to decide whether it must be corrected.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Last edited by shakotay2 on Sun Oct 07, 2018 11:56 pm, edited 4 times in total.

Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Wed Oct 03, 2018 4:32 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2533
Location: Nexus, searching for Jim Kirk
Has thanked: 605 times
Have thanks: 1295 times
"submeshes" 500 faces each:


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Wed Oct 03, 2018 8:46 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2533
Location: Nexus, searching for Jim Kirk
Has thanked: 605 times
Have thanks: 1295 times
00000158.mesh, x and y scaled by 2.0:


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Wed Oct 03, 2018 9:00 pm 
Offline
beginner
User avatar

Joined: Sat Mar 25, 2017 1:40 am
Posts: 23
Has thanked: 6 times
Have thanks: 1 time
Bigchillghost wrote:
Well it's just an issue resulting from the illegal extensions. I've improved the code for determining them, especially more accurately for the mesh files so you might need to run the lastest version on all packages again. Sorry about that.

Oh thank you for the update.

shakotay2 wrote:
well, I'm not a fan of writing scripts but as a first helper this tool may serve:...

Thank you... it help... I'll try to shamelessly to modified some Noesis script to see if I can make it work for this game... that way it'll be easier to export them in batch.


Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Thu Oct 04, 2018 4:42 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Tue Jul 05, 2016 9:37 am
Posts: 373
Has thanked: 16 times
Have thanks: 211 times
shakotay2 wrote:
00000158.mesh, x and y scaled by 2.0:

Had you used the bounding box?

Seems OK with the character:
Image

Now the problem is to get correct normal vectors:
Image


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.


Last edited by Bigchillghost on Fri Oct 05, 2018 6:46 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Thu Oct 04, 2018 5:16 am 
Offline
beginner
User avatar

Joined: Sat Mar 25, 2017 1:40 am
Posts: 23
Has thanked: 6 times
Have thanks: 1 time
Bigchillghost wrote:
Image
It seems that the model needs proper scaling to get the perfect mesh.

I put everything that appear on your screenshot but I don't have the same thing...
Can you give me some pointer?
Image
I don't have a checkbox right after the dropbox "ShortAll" so I think that's the reason.


Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Thu Oct 04, 2018 5:24 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Tue Jul 05, 2016 9:37 am
Posts: 373
Has thanked: 16 times
Have thanks: 211 times
You need version 0.24e to handle unsigned shorts.
viewtopic.php?p=142434#p142434

_________________
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.


Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Thu Oct 04, 2018 5:28 am 
Offline
beginner
User avatar

Joined: Sat Mar 25, 2017 1:40 am
Posts: 23
Has thanked: 6 times
Have thanks: 1 time
Bigchillghost wrote:
You need version 0.24e to handle unsigned shorts.
viewtopic.php?p=142434#p142434

Oh lol stupid me... I reread shakotay2 post and he did mentioned it... I was being dumb...

But yeah after I used version 0.24e this is what I got...
Image

It look like some backcurling happening there... but it look different than yours.


Last edited by petventh18 on Thu Oct 04, 2018 5:36 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Thu Oct 04, 2018 5:34 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Tue Jul 05, 2016 9:37 am
Posts: 373
Has thanked: 16 times
Have thanks: 211 times
I just import it into Max and inverted the normals.

_________________
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.


Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Thu Oct 04, 2018 5:37 am 
Offline
beginner
User avatar

Joined: Sat Mar 25, 2017 1:40 am
Posts: 23
Has thanked: 6 times
Have thanks: 1 time
Bigchillghost wrote:
I just import it into Max and inverted the normals.

Oh yeah you're right nvm, your model SS was from 3d software... so I was being dumb again.
But can you tell me how you got the start address and count and then the FVF Size? I watch some youtube video on how to use Hex2Obj but i kept getting different numbers than yours.


Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Thu Oct 04, 2018 5:43 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Tue Jul 05, 2016 9:37 am
Posts: 373
Has thanked: 16 times
Have thanks: 211 times
Here's the structure of the header from offset 0x90:
Code:
long   Vcount
long   TrixCount
long   MtlGroupCount
long   Voffset // 6 floats for bounding box before vertex data
long   NormalOffset
long   NULL
long   UVoffset // 3 floats before UV data
long   NULL
long   NULL
long   FIoffset
long   MtlGroupOffset

So the face indices count would be (TrixCount * 3).

_________________
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.


Last edited by Bigchillghost on Thu Oct 04, 2018 5:58 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Thu Oct 04, 2018 5:56 am 
Offline
beginner
User avatar

Joined: Sat Mar 25, 2017 1:40 am
Posts: 23
Has thanked: 6 times
Have thanks: 1 time
shakotay2 wrote:
Might be senseful to manually insert some g SM_x lines into the MakeObj_log.obj in case there's submeshes.

Is that how you split the mesh into multiple parts? Such as cloth, hair, head, face, etc?
Because I noticed the Make_obj-JX3.exe tool combined all of them into one mesh while Hex2Obj had them separated into submeshes.
Is it possible to do so as well?


Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Thu Oct 04, 2018 5:59 am 
Offline
beginner
User avatar

Joined: Sat Mar 25, 2017 1:40 am
Posts: 23
Has thanked: 6 times
Have thanks: 1 time
Bigchillghost wrote:
Here's the structure of the header from offset 0x90:
Code:
long   Vcount
long   TrixCount
long   MtlGroupCount
long   Voffset // 6 floats for bounding box before vertex data
long   NormalOffset
long   NULL
long   UVoffset // 3 floats before UV data
long   NULL
long   NULL
long   FIoffset
long   MtlGroupOffset

So the face indices count would be (TrixCount * 3).

Thank you for the structure... that helps!


Top
 Profile  
 
 Post subject: Re: JX3 HD Remake 剑网3 (.dat files)
PostPosted: Thu Oct 04, 2018 9:15 am 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran
User avatar

Joined: Fri Apr 20, 2012 9:24 am
Posts: 2533
Location: Nexus, searching for Jim Kirk
Has thanked: 605 times
Have thanks: 1295 times
Bigchillghost wrote:
Had you used the bounding box?
nope, just a wild guess, because the BBox calculated from the unsigned vertex data in hex2obj doesn't match with the real values so far. Need to look what's going wrong there:
# BBox 0.000000 255.468750, 0.000000 255.468750, 0.000000 255.468750


petventh18 wrote:
shakotay2 wrote:
Might be senseful to manually insert some g SM_x lines into the MakeObj_log.obj in case there's submeshes.

Quote:
Is that how you split the mesh into multiple parts? Such as cloth, hair, head, face, etc?
Didn't check a character so far, but 'yes', hex2obj inserts such lines all 500 faces each.

Quote:
Because I noticed the Make_obj-JX3.exe tool combined all of them into one mesh while Hex2Obj had them separated into submeshes.
Is it possible to do so as well?
Is possible, but generally that splitting results in random submeshes (SMs). It's just kind a luck that the static models seem to have roundabout 500 faces clusters here, imho.

So for characters it's more sensefull to insert those lines manually, as there's aren't so many SMs, head, upper body, lower body for example.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Bigchillghost, Reverse Engineering a Game Model: http://forum.xentax.com/viewtopic.php?f=29&t=17889
extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group