Home Gallery Resources The Team Rules chat Login Register
Pages:  1 [2]
Author Topic: NOTES: MDL0 Resource Thread (reformatted)  (Read 6333 times)
0 Members and 1 Guest are viewing this topic.
DarkPikachu
Angel Kitten
***
Offline Offline

Posts: 3069


complexity == fun

  • Awards Super Saiyan Topic Heart Container KCMM Veteran Tutorial Writer

  • View Profile Awards
    « Reply #15 on: January 28, 2012, 05:09:04 AM »


    Global-Header:
    the global header identifies the MDL0 and determines the version:

    magic = string(4)
    str_tbl = bu32()
    version = bu32()
    brres_offset = bs32()


    Lists:
    the lists define what's what in the MDL0: (based on the version)
    if version > 7: Definitions = bu32()
    if version > 7: Bones = bu32()
    if version > 7: Vertices = bu32()
    if version > 7: Normals = bu32()
    if version > 7: Colors = bu32()
    if version > 7: UV's = bu32()
    if version > 9: Unknown1 = bu32()
    if version > 9: Unknown2 = bu32()
    if version > 7: Materials = bu32()
    if version > 7: Nodes = bu32()
    if version > 7: Objects = bu32()
    if version > 7: Textures = bu32()
    if version > 7: Pallets = bu32()
    if version > 10: Unknown3 = bu32()

    ^links will take you to the data sections below.

    Local-Header:
    the local header defines the MDL0 structure.

    Name_Offset = bu32()
    properties = bu32()
    properties_length = bu32()
    unknown1 (0) = bu32()
    unknown2 (0) = bu32()
    Num_Verts = bu32()
    Num_Faces = bu32()
    unknown3 (0) = bu32()
    Num_Links = bu32()
    unknown4 (0x01010000) = bu32()
    properties_length = bu32() (copy??)
    MinX = bf32()
    MinY = bf32()
    MinZ = bf32()
    MaxX = bf32()
    MaxY = bf32()
    MaxZ = bf32()
    « Last Edit: May 20, 2012, 10:50:39 AM by Tcll » Logged

    DarkPikachu
    Angel Kitten
    ***
    Offline Offline

    Posts: 3069


    complexity == fun

  • Awards Super Saiyan Topic Heart Container KCMM Veteran Tutorial Writer

  • View Profile Awards
    « Reply #16 on: April 06, 2012, 07:27:01 AM »


    this is just a re-structure and a touch-up Wink

    -added unknown data structures
    -added bookmarks to data sections (no need to scroll)

    everything works as it should Grin

    TODO:
    -sub data section bookmarks (go to a selected section from a section)
    -move this thread to Programming/Notes/


    To viewers:
    even though this thread has every needed post (for current MDL0 standards),
    I still ask that you don't post anything here.
    (I want this thread to be like a wiki for programmers, but better) XD

    if you have any suggestions, ideas, updates, etc. for me,
    I'm always open to a PM, so feel free to PM me. Cheesy


    other comments:
    I can't disable sigs, so complain to the admins about it, not me
    ^seperate posts won't lag my wii's editor
    « Last Edit: April 06, 2012, 07:30:34 AM by Tcll » Logged


    Quote: Friedslick6
    you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
    But the coolest part was that you didn't stop working on it despite that.

    Quote: Internet Explorer
    you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

    quote: Greg
    You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

    Pages:  1 [2]
    Print
    Jump to: