Jump to content

Recommended Posts

Posted

Hello

I need help opening and extracting the 3d asset files from the SD Gundam G Generation Cross Rays PMDL Model Format, Here is what i have discovered so far with the format

 

All PMDLs are Boost C++ containers as they possess a serialization::archive header however i have not been able to properly extract them with the tools available to me.

The texture assets that go with them are raw .dds format files, usually in the format of (shipname)_uv(number) for the material.

the model and textures are in a zip file container (model.zip) in the folder for the corrosponding ship located at data\battle\action_scene\target\ws

A sample file has been provided for the ship known as the Carry Base

 

model.zip

  • Members
Posted

They seem to store numbers using a simple byte tag format, with 0 being just 0, 1 being an int8_t, 2 being an int16_t, and 4 being a float. The vertices store the position, the normal, the UV, and then 7 more normalized values. The faces are stored as triangles with a mix of integer types. A couple more sample files would help narrow down what some of the other fields are for.

Here is a partial ImHex pattern for w_g9980w00200.pmdl. I've also attached a mesh extracted from the first part of that file.

struct TaggedNum {
    u8 tag;
    if (tag == 1)
        u8 value;
    else if (tag == 2)
        s16 value;
    else if (tag == 4)
       float value;
} [[single_color]];

struct Vertex {
    TaggedNum pos[3];
    TaggedNum norm[3];
    TaggedNum uv[2];
    TaggedNum other[7];
};

TaggedNum properties[143] @ 0x18A;
TaggedNum vert_count @ 0x239;

Vertex vertices[vert_count.value] @ 0x296;

TaggedNum face_count @ 0x5494B;
TaggedNum unk_0 @ 0x5494E;
TaggedNum faces[face_count.value] @ 0x5494F;

 

w_g9980w00200.zip

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...