Page 1 of 2
[NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 2:19 am
by huckleberrypie
The contents of this post was deleted because of possible forum rules violation.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 2:24 am
by finale00
Packed geometry commands, what might that mean?
Anyways I took a quick look at it, and the offset in the material struct that you have in the outline is the offset to the next material. If the offset == 0, then there is no "next" material and so you know that's the last one.
Then you can jump to the mesh offset.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 6:59 am
by huckleberrypie
finale00 wrote:Packed geometry commands, what might that mean?
Anyways I took a quick look at it, and the offset in the material struct that you have in the outline is the offset to the next material. If the offset == 0, then there is no "next" material and so you know that's the last one.
Then you can jump to the mesh offset.
Can you whip up a script or two for it?
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 7:16 am
by finale00
Don't know the vertex format or how the faces are drawn.
Or even how to get to the vertices.
The bone struct is not consistent either. For example, many of them are 80 bytes, but some of them are bigger.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 7:24 am
by huckleberrypie
finale00 wrote:Don't know the vertex format or how the faces are drawn.
Or even how to get to the vertices.
The bone struct is not consistent either. For example, many of them are 80 bytes, but some of them are bigger.
Damn. So in other words, it's a spaghetti of sorts. As in a little more or less scrambled.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 7:29 am
by finale00
There's probably a value in there that determines how many extra bytes to read.
There are three offsets at the top of the file, and the material offset is easy to work out, same with the bones offset.
But then the third offset just takes me to the bottom of the file with a bunch of other offsets that I'm not sure what to do with.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 7:40 am
by huckleberrypie
finale00 wrote:There's probably a value in there that determines how many extra bytes to read.
There are three offsets at the top of the file, and the material offset is easy to work out, same with the bones offset.
But then the third offset just takes me to the bottom of the file with a bunch of other offsets that I'm not sure what to do with.
So, was it a lot more complicated than it seems to be?
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 7:42 am
by finale00
It seemed complicated from the start cause I saw "NDS" and thought "must contain all sorts of ways to squeeze as much info as they can into a small file"
Upload a couple dozen more of different sizes (particularly objects that do NOT have bones).
Maybe it will become more obvious what the values mean.
I rarely get anything done with only one file.
For example, the third offset sends me to a section that tells me how many offsets there are, and it seems to coincide with the number of bones.
In fact, they may not even be bones despite being called "RightShoulder"
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 7:52 am
by huckleberrypie
The contents of this post was deleted because of possible forum rules violation.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 8:12 am
by finale00
What did low lines use to decompress it.
I found a "batchlz77" tool for NDS games but it doesn't recognize this.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 9:33 am
by huckleberrypie
finale00 wrote:What did low lines use to decompress it.
I found a "batchlz77" tool for NDS games but it doesn't recognize this.
Might try asking him on how did he decompress the files, but he doesn't seem to be online ATM.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Wed Feb 22, 2012 6:55 pm
by finale00
Decompress script:
viewtopic.php?f=21&t=8373
You can see that some of the files don't even have that third offset and just end with what I would assume to be geometry data.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Thu Feb 23, 2012 3:28 am
by huckleberrypie
Thanks. If you need some more files to be RE'd, let me know. I actually needed the models for some game conversion, and, well, just for the lulz. I could've used them 3D ripping tools instead, but none of them work well on any DS emulator, perhaps due to the way how the DS GPU works.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Thu Feb 23, 2012 3:49 am
by finale00
Since the models are extremely small I wouldn't mind if you just uploaded all of them

That way I can go through them myself and look for what's good to compare with.
Re: [NDS] The Four Seasons Cake .n3d, part 2
Posted: Thu Feb 23, 2012 4:18 am
by huckleberrypie
The contents of this post was deleted because of possible forum rules violation.