Page 1 of 1

[Need Help] Trying to figure out the structure.

Posted: Tue Jul 19, 2011 11:32 pm
by Valerian
The contents of this post was deleted because of possible forum rules violation.

Re: [Need Help] Write an importer/exporter for models in 3ds

Posted: Wed Jul 20, 2011 12:09 am
by chrrox
post what you have so far so people can help.

Re: [Need Help] Write an importer/exporter for models in 3ds

Posted: Wed Jul 20, 2011 12:18 am
by Valerian
The contents of this post was deleted because of possible forum rules violation.

Re: [Need Help] Write an importer/exporter for models in 3ds

Posted: Thu Jul 21, 2011 8:27 pm
by Valerian
The contents of this post was deleted because of possible forum rules violation.

Re: [Need Help] Trying to figure out the structure.

Posted: Thu Jul 21, 2011 11:26 pm
by finale00
Don't see the pattern you are trying to point out.

With the sample you posted, at offset 0x26CA you see a bunch of shorts. Probably the face indices, but maybe not. Keep going down and you'll find that it increments, but then you should see a point where it goes to B0, 00, 01, ..

This happens 3 times in total, so you have 4 different sections full of shorts.
I don't know if this is significant or not, but you should note that the largest number is B0, and the smallest is 00, so if these were face indices then there should be B1 vertices, so you go to the top and you see a B1 00 00 00. Maybe that is the number of vertices

They are followed by four A6 02 00 00. Don't know what those are.

Then there's a section of random stuff, so I'm guessing they're floats and it's the vertices section. No clue what it might be so just highlight everything all the way down to the faces section. You should highlight 9912 bytes. Divide that by 0xB1 (177) and you get 56 bytes per vertex. Maybe that is the correct number, who knows, but 56 bytes sounds pretty cool (so does 32)

We then examine the faces some more. If you highlight each section from 00 to B0, you will find that it is length 1356, which is exactly 678 * 2, or (678 / 3) * 6, assuming each face has 3 vertices. Note that 678 == 0x02A6, and there are 4 sections, which match what you had up there.

And ya...I didn't spend anymore time thinking about what they could be so I just quickly wrote a plugin to test my guesses and got this:

Image

Sort of looks like a snowman's head?

Code: Select all

word ???
dword numVerts
dword_4 numFaces (don't know why 4 sections)

numVerts vertex {
   float_3 vx, vy, vz
   float_11 other_stuff
}

#repeat following section as many times as necessary. I think 4?
numFaces face { 
   word_3 indices
}
What game is it? I called my parser "unknown_z3m" and I don't want to keep it nameless.

Re: [Need Help] Trying to figure out the structure.

Posted: Fri Jul 22, 2011 9:14 am
by Valerian
The contents of this post was deleted because of possible forum rules violation.

Re: [Need Help] Trying to figure out the structure.

Posted: Fri Jul 22, 2011 1:56 pm
by finale00
I don't use 3dmax.
I usually just post up what I found and others can just write things for their own programs of choice.

Re: [Need Help] Trying to figure out the structure.

Posted: Fri Jul 22, 2011 2:45 pm
by Valerian
Ah okay. That helped me already much. Thanks for that. :)

Re: [Need Help] Trying to figure out the structure.

Posted: Fri Jul 22, 2011 3:34 pm
by finale00
Is it possibly "Risk your life"?

Re: [Need Help] Trying to figure out the structure.

Posted: Fri Jul 22, 2011 5:08 pm
by Valerian
The contents of this post was deleted because of possible forum rules violation.

Re: [Need Help] Trying to figure out the structure.

Posted: Thu Jan 15, 2015 12:38 pm
by RonaldinhoR9
Hello, srry for bump this old topic, but wich program did you use for open that snow helmet? Noesis?can you release the plugin? I need help with thi kind of 3d format .Z3m, i would like to convert it to .obj, and after edit it, convert back to .z3m. Is this possible?

Re: [Need Help] Trying to figure out the structure.

Posted: Sun Feb 21, 2016 6:21 am
by RonaldinhoR9
Bumping this topic. Finale00, can help here?

Re: [Need Help] Trying to figure out the structure.

Posted: Sun Feb 21, 2016 1:07 pm
by Karpati
Here I inserted some information how to edit the original .z3m file:

- Open the .z3m file with 3D Object Converter

- Export it to 3D Studio .3ds format
(If you export it to .obj format the 3D Studio MAX will optimize the loaded model, in this case it is bad.)

- Import the .3ds to 3D Studio Max
- turn on the Completely replace current scene
- turn off the convert units
(If you don't turn it off the 3DS Max scales down the models 40-fold!)

- Modify the 3d geometry (you can move the 3d points, but don't delete 3d points)

- Export it to .3ds format

- Import the .3ds to 3D Object Converter

- Export it to .z3m file (with selecting the original .z3m file). (This export module needs to be registered!)

The exported .z3m file will contain the original missing datas (Bone; Vertex Bone Weight datas ?) with the new 3d geometry.

Re: [Need Help] Trying to figure out the structure.

Posted: Sun May 12, 2019 11:29 am
by muqri
so how to combine after i create new 3d because i use 3dmax and want go back to z3m is say need bone original so this problem how to do