Important information: this site is currently scheduled to go offline indefinitely by end of the year.

[Help] Hex2obj

Read or post any tutorial related to file format analysis for modding purposes.
ekmek
n00b
Posts: 12
Joined: Mon Nov 28, 2016 7:53 pm
Has thanked: 1 time

Re: [Help] Hex2obj

Post by ekmek »

I replicated what you did fine.

But when messing with other chunk files I was trying to figure our how you got:

"5CCE0: start of face indices (FI) list"


It's not clear in the tutorial to me. How did you get that number?

As I go through this I plan on helping out on your tutorial for noobs. written by a noob for noobs!
Just looking for OBJs and FBX files of 3D models from games. No Skeletons or textures needed :)
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4291
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1151 times
Been thanked: 2244 times

Re: [Help] Hex2obj

Post by shakotay2 »

ekmek wrote:But when messing with other chunk files I was trying to figure our how you got:

"5CCE0: start of face indices (FI) list"
Assumed first face to consist of 0, 1, 2 (-> 1, 2, 3 in one based wavefront format)
so search for 000001000200 (little endian of 0000 0001 0002).

Doesn't work always because the first face might consist of other vertices, may 3,4,5 or something else.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
ekmek
n00b
Posts: 12
Joined: Mon Nov 28, 2016 7:53 pm
Has thanked: 1 time

Re: [Help] Hex2obj

Post by ekmek »

shakotay2 wrote:
ekmek wrote:But when messing with other chunk files I was trying to figure our how you got:

"5CCE0: start of face indices (FI) list"
Assumed first face to consist of 0, 1, 2 (-> 1, 2, 3 in one based wavefront format)
so search for 000001000200 (little endian of 0000 0001 0002).

Doesn't work always because the first face might consist of other vertices, may 3,4,5 or something else.

ah, ok. I guess this where the hex editor comes in.


Do you recommend one?
Just looking for OBJs and FBX files of 3D models from games. No Skeletons or textures needed :)
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4291
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1151 times
Been thanked: 2244 times

Re: [Help] Hex2obj

Post by shakotay2 »

My most preferred one is WinHex. But any other should do which has a decent search feature.

For me a byte grouping of 8 plus 8 is totally important (which HxD v 1.7.70 for example lacks of).
WinHex.JPG
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
thunderkai
ultra-n00b
Posts: 3
Joined: Fri Dec 09, 2016 1:09 am

Re: [Help] Hex2obj

Post by thunderkai »

I can not get any mesh to display on the attached file
some screenshots: http://imgur.com/a/kdUBC
You do not have the required permissions to view the files attached to this post.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4291
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1151 times
Been thanked: 2244 times

Re: [Help] Hex2obj

Post by shakotay2 »

face indices start address is correct; but it's 5 submeshes, search for 000001000200 to find the different startaddresses
next find: 0xFF04 (delta 0x2FF4 related to 0xCF10-> delta/2= 6138 face indices; vertex count= 1180)

Why set start of vertices to 0x1387? That's not senseful.

calculation CF10 + 35934x2= 0x1E7CC shows where to search for vertices.
knyitm001.JPG
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
Post Reply