Page 1 of 29 12311 ... LastLast
Results 1 to 10 of 286
  1. #1
    EmuTalk Member
    Join Date
    Jun 2005
    Posts
    37
    Mentioned
    0 Post(s)

    Smash Bros Melee Model Viewer Status

    Well its been a long time since i proposed to start working on this being my first attempt at a model viewer/extractor for a non pc game. My last release was for halo pc which was a full map model converter with added batch texture conversion support. (check http://gbxforums.gearboxsoftware.com...t=50412&page=1 for details)

    I have been cought up in allot of stuff at school and with work and all but i did manage to squeeze a bit of time into trying to understand the .dat files for smash brothers melee.

    So far i did make a few discoveries. Hopefully i can get the help from some experienced people here on this forum. So far i understand that the header in each file contains the size of the file at the 0 offset. It was quite obvious. But at Offset 4, theres a pointer to an index of the file which i am still trying to understand. I noticed that the values in the file index gradually increase and never go over the size of the file i proved they are some type of pointers to the blocks in the file. They all point directly to somewhere close to what appears to be a new block only about 32 bytes away. All this data is stored using Big Endians of coarse.

    I been mainly observing the player files and the trophie files. The different files are determined by thier file name's prefix. The "Pl" stands for Player which contain all the models, textures, animations, etc for that player. The player names are abreviated. for example "PlPeWh" is accually Player Peach White which is peach in her white dress. Trophie files or 'Toy' files with the "Ty" prefix are named in a similar fashion. These are also package files with models and textures stored within these files.

    Also something that resently halted my progress on this for a while was my suspicion of vertex coord blocks being compressed in these files since the blocks for the vertex coords seemed very random and didnt make any sort of floating point data. Then did happen to come accross a few models which did have the vertex blocks which used single precision floating point in there standard IEEE representation. It was the "TyPeacR2.dat". After loading the vertex points into a 3d viewer, i noticed it was the true vertex coords immediatly which was X Y Z for every 12 bytes. Shortly after that data, seperated by a line of 16 0 bytes, i found another block which stored the vertex normal I J K since they all normalize properl using the equation I^2 + J^2 + k^2 = 1. So i proved that this is indeed the vertex data. The polygon triangle index data comes shortly after a few unexplored blocks which im assuming is just texture coord and shader blocks for now.

    Heres some pics of the vertex points that i loaded up into a 3d viewer. See if you can make out who that is.



    Anyways, I was informed by Thakis that the vertex data in these files which i thought to be compressed are stored just like some of the models in the Bmd files which he worked on. They are 16 bit fixed decimal thingies. I still have no clue how to convert this data in visual basic which i am using to program this viewer. Perhaps someone would be kind enough to explain or link me to a algorythm out simply so i can write a low level function to convert the hex. When i google search it, all i can find is c++ code which is like japanese to me....

    Anyways, im still very open for some help with this. I apperently still have allot to learn about this stuff and i am very anxious to get this model viewer working.

    EDIT:
    More progress shots of actual meshes added on Page 2.
    Last edited by jahra!n; February 18th, 2006 at 13:52.

  2. #2
    EmuTalk Member SarahHarp's Avatar
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    106
    Mentioned
    0 Post(s)
    Wow, excellent work. I was eventually going to move to Smash Bros after I was finished with Metroid, but yeah. So good luck on your journey (it was really fun for me : ) )
    And the 16bit thing... hmm, this seems very familiar to me. It seems that these are compressed values o.o Metroid has some normal values like this.

    Oh and that is the peach model : )

    Last edited by SarahHarp; June 4th, 2006 at 08:47.

  3. #3
    EmuTalk Member
    Join Date
    Jun 2005
    Posts
    37
    Mentioned
    0 Post(s)
    O__o its that simple? Thakis was telling me somethig like that but said i have to find some value inside of the file to find to divide it by.

    Ok right now im working on finding offsets to the triangle indecies so that i can have an actual model to show.

  4. #4
    EmuTalk Member SarahHarp's Avatar
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    106
    Mentioned
    0 Post(s)
    Yeah, getting the correct value might be the toughest part, metroid just uses basicly the largest value of all the signed shorts
    Last edited by SarahHarp; June 4th, 2006 at 08:48.

  5. #5
    EmuTalk Member
    Join Date
    Dec 2005
    Posts
    7
    Mentioned
    0 Post(s)
    OH mY!!!...This is amazing!!
    Last edited by tio diego; February 12th, 2006 at 23:59.

  6. #6
    Count Chocula!
    Join Date
    Feb 2006
    Location
    Ontario, Canada
    Posts
    19
    Mentioned
    0 Post(s)
    Very nice, jahra!n.

  7. #7
    EmuTalk Member BlueFalcon7's Avatar
    Join Date
    Oct 2005
    Location
    Detroit, MI, USA
    Posts
    747
    Mentioned
    0 Post(s)
    nice job, you have taken the first step to making a model viewer, just one question, are the textures, and annimations stored in the same file?

  8. #8
    EmuTalk Member Nelde's Avatar
    Join Date
    Aug 2005
    Location
    Zürich
    Posts
    105
    Mentioned
    0 Post(s)
    oh, this is so cool
    please don't give up!

  9. #9
    EmuTalk Member celebimc's Avatar
    Join Date
    Jan 2006
    Posts
    24
    Mentioned
    0 Post(s)
    jahra!n, this is awesome!!! Keep up the amazing work

  10. #10
    Moderator Knuckles's Avatar
    Join Date
    Oct 2002
    Location
    Floating Island
    Posts
    1,781
    Mentioned
    1 Post(s)
    this look promissing! nice work so far.

Page 1 of 29 12311 ... LastLast

Similar Threads

  1. Replies: 518
    Last Post: March 4th, 2011, 15:57
  2. Replies: 11
    Last Post: January 29th, 2008, 14:08
  3. super smash bros melee
    By mario78 in forum Dolphin
    Replies: 2
    Last Post: December 16th, 2004, 23:19
  4. super smash bros. melee problem
    By adirz in forum Dolphin
    Replies: 25
    Last Post: September 22nd, 2004, 23:04
  5. no one lubs me
    By Malcolm in forum IRC Quotes
    Replies: 8
    Last Post: October 19th, 2002, 21:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •