The Forum is up for sale: XeNTaX Forum looking for new owner

Help needed figuring out the X3D Files from the Precure 3DS games.

Post questions about game models here, or help out others!
Post Reply
kurainooni
ultra-n00b
Posts: 7
Joined: Mon May 21, 2012 3:37 pm
Has thanked: 4 times
Been thanked: 13 times

Help needed figuring out the X3D Files from the Precure 3DS games.

Post by kurainooni »

Hi Guys,

I've spent roughly the last two weeks, to figure out, how this Format works. During this time, I managed to find the Vertex, Face and UVs in a reproduceable manner -> Vertices start in the SMDL block as a block of 64 Bytes per Vertex. The first 12 Bytes are the X Y and Z coordinates as Floats. The next 4 Bytes are usually 00 00 80 FF. The Following 12 Bytes are the normals as Float, followed by 4 bytes as usually 0 and 4 bytes as FF. The next 8 Bytes are the UVs as Float again. Followed by 4 bytes as 0 yet again. I don't know what the last 16 Bytes do though, but 00 00 80 FF appear frequently as the first 4 bytes. The Faces start imediately after the last vertex. They are laid out as Short Tri-Strips.
M_TopDreNon_0001.x3d_Fri_Apr_19_23-35-28_2019.png
This in itself works fine with Models, where the is only one mesh, like Tops, or Accessories. However it doesn't work as intuitively with models with multiple meshes, like the heads, where I have to piece together the amount of faces and vertices per mesh.

Can you help me figure out, where the Mesh Table is?

Sample Files
You do not have the required permissions to view the files attached to this post.
kurainooni
ultra-n00b
Posts: 7
Joined: Mon May 21, 2012 3:37 pm
Has thanked: 4 times
Been thanked: 13 times

Re: Help needed figuring out the X3D Files from the Precure 3DS games.

Post by kurainooni »

Since asking the Question, I've managed to find out where the Mesh Table is.

I've attempted to write a small noesis script, that can open this format, however I'm struggling with the Faces, since noesis requires me to use regular triangles, but the game uses Tri-Strips.
HaCha_PC_script_progress_02.png
How can I convert Tri-Strips into the Triangle representation, that noesis is expecting?( Note: I've appended the face array with 0s, to make the array divisible by 3)

the script is available here
You do not have the required permissions to view the files attached to this post.
episoder
mega-veteran
mega-veteran
Posts: 162
Joined: Fri Oct 16, 2015 8:05 pm
Has thanked: 6 times
Been thanked: 78 times

Re: Help needed figuring out the X3D Files from the Precure 3DS games.

Post by episoder »

you basicly reassemble the index list to index the per triangle vertices. this is clockwise order.

Image
kurainooni
ultra-n00b
Posts: 7
Joined: Mon May 21, 2012 3:37 pm
Has thanked: 4 times
Been thanked: 13 times

Re: Help needed figuring out the X3D Files from the Precure 3DS games.

Post by kurainooni »

Thank you that works like a charm :D

For anyone interested, here is the fixed script
fmt_precure_x3d_fixed.zip
You do not have the required permissions to view the files attached to this post.
Post Reply