Flintstones Bedrock Bowling .AMW

Post questions about game models here, or help out others!
Post Reply
lemurboy12
veteran
Posts: 115
Joined: Fri Mar 30, 2012 4:56 pm
Has thanked: 11 times
Been thanked: 2 times

Flintstones Bedrock Bowling .AMW

Post by lemurboy12 » Sun Jan 18, 2015 3:49 pm

I'm trying to get the models using hex2obj, but it comes out as a garbled mess. What am I doing wrong?

Image

Here is the model file:
http://puu.sh/eGJuR.amw

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2605
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 638 times
Been thanked: 1332 times

Re: Flintstones Bedrock Bowling .AMW

Post by shakotay2 » Sun Jan 18, 2015 5:07 pm

lemurboy12 wrote:I'm trying to get the models using hex2obj, but it comes out as a garbled mess. What am I doing wrong?
lack of experience, I guess.

It's required to give the file some structure.
Search for 0000 0100 0200 for example (view attached pic).

You're on a good way :) but: your face indices count is too big.
(seems there are 7 submeshes)

Are there further patterns which give the file a structue?
-> here 16x 00 (findings past 0x7B1A might be 4x 0.0f)

3rd occurence at: 0x7B1A
Scroll up to some possible start of vertices, here 0x2C2C

0x7B1A- 0x2C2C = 0x4EEE (= 20206 = 631*32 dec.)

Vertex block size is 32. The block should contain about 631 vertices (for the whole model?)


calculate vertex start of next submesh: 0x2C2C + 162x32 (dec.) = 0x406C

(I didn't combine the submeshes, good luck.)

Creating a max script for example would be best choice for this format.
Remember: hex2obj is primary intended for a quick first approach.

btw: the version you're using is pretty outdated
format_amw.JPG
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

lemurboy12
veteran
Posts: 115
Joined: Fri Mar 30, 2012 4:56 pm
Has thanked: 11 times
Been thanked: 2 times

Re: Flintstones Bedrock Bowling .AMW

Post by lemurboy12 » Sun Jan 18, 2015 6:47 pm

Image

I'm still missing something.

lemurboy12
veteran
Posts: 115
Joined: Fri Mar 30, 2012 4:56 pm
Has thanked: 11 times
Been thanked: 2 times

Re: Flintstones Bedrock Bowling .AMW

Post by lemurboy12 » Mon Jan 19, 2015 4:52 pm

Image

Still not sure what I'm doing wrong. I'm following all your instructions, and I'm still getting a garbled mess, though not as garbled.

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2605
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 638 times
Been thanked: 1332 times

Re: Flintstones Bedrock Bowling .AMW

Post by shakotay2 » Tue Jan 20, 2015 11:39 am

lemurboy12 wrote:Still not sure what I'm doing wrong. I'm following all your instructions,
seems, you did not.

Use the formula I gave to calculate the vertex block address of the next submesh (go3 startaddr).

Also use the startadresses of the face indices blocks in the attached pic of my previous post.
The one for the 3rd submesh is 0xC152.
Number of face indices to be calculated by:

(0xC1B8 - 0xC152) / 2 = 51 dec.
division by 2 because the face indices are WORDs (uint16)

Not sure why you used 51 as a vertex count.

(You really should try to get a basic understanding of what has to be done. :) )
fred_SM_3.JPG
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

lemurboy12
veteran
Posts: 115
Joined: Fri Mar 30, 2012 4:56 pm
Has thanked: 11 times
Been thanked: 2 times

Re: Flintstones Bedrock Bowling .AMW

Post by lemurboy12 » Tue Jan 20, 2015 8:47 pm

but how do I get the start address of the vertices? I've been doing 17*32 + 2C2C.

TGE
veteran
Posts: 107
Joined: Wed Jun 04, 2014 7:48 pm
Location: Netherlands
Has thanked: 20 times
Been thanked: 31 times
Contact:

Re: Flintstones Bedrock Bowling .AMW

Post by TGE » Wed Jan 21, 2015 10:47 am

Just look for floats

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2605
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 638 times
Been thanked: 1332 times

Re: Flintstones Bedrock Bowling .AMW

Post by shakotay2 » Wed Jan 21, 2015 3:35 pm

this is the formula for start of vertices:

vert_addr_next = vert_addr_prev + VBsize * vertCount_prev

(check if it fits for all .amw of this game)

vertex start address: 0x2C2C (to be found with some experience/trial 'n error)
next addr: 0x406C as shown some post before
further addresses:

Code: Select all

   0x62AC     =      0x406C    + 32 x 274 (dec.)
   0x64CC     =      0x62AC    + 32 x 17  
   0x65CC     =      0x64CC    + 32 x 8
   0x6C0C     =      0x65CC    + 32 x 50
   0x726C     =      0x6C0C    + 32 x 51
end vertices: x796C
vertex count 618 = 162 + 274 + 17 + 8 + 50 + 51 + 56

resulting mesh:
fred.JPG
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

lemurboy12
veteran
Posts: 115
Joined: Fri Mar 30, 2012 4:56 pm
Has thanked: 11 times
Been thanked: 2 times

Re: Flintstones Bedrock Bowling .AMW

Post by lemurboy12 » Thu Jan 22, 2015 12:54 am

Image

Well, I meant more of how to get the start of the vertices in the first place, but at least I have the model and gained some experience with hex2obj. Thank you, though it would help if you were a little more clear on finding the start of the vertices to base all submeshes off of.

Post Reply