1. We live again. All extra functionality removed for now. Search may be broken as may be other things. With love, ASSEMbler.

Tomb Raider geometry Blender plug-in

Discussion in 'Sega Saturn Programming and Development' started by Piratero, Jul 12, 2017.

  1. Piratero

    Piratero Peppy Member

    Joined:
    Feb 28, 2009
    Messages:
    353
    Likes Received:
    4
    Hello all, I've created a small plug-in that exports the geometry in Tomb Raider .SAT files into Blender. The documentation was provided by b122251

    I have found the function that processes the rest of the .SAT, .SPR, and .SAD files. If anyone is interested, let me know. This would allow exporting textures and lighting into Blender.

    The Saturn format is vastly different from the PlayStation's .PHD format.



    GitHub: https://github.com/ijacquez/trsat

    [​IMG]
     
  2. Decapicitated

    Decapicitated Site Supporter 2011-13 Lara Croft

    Joined:
    Apr 17, 2011
    Messages:
    391
    Likes Received:
    17
    Nice!

    The room meshes will be pretty much the same or close to PC/PSX versions which have been extractable for years. The Saturn version of Tomb Raider uses a chunk based file format which is easier to load compared to PC/PSX. The textures are also much lower resolution which is a shame. Vertex lighting is packed on both PSX/Saturn versions of Tomb Raider.
     
  3. Piratero

    Piratero Peppy Member

    Joined:
    Feb 28, 2009
    Messages:
    353
    Likes Received:
    4
    Interesting, thanks for the tidbit.

    I was curious about why there was hardly any info on the Saturn version, but luckily someone had disassembled the geometry part of the file format.

    Even if the textures and lighting can be extracted from the PC/PS1 versions, it would be great to have the Saturn version documented as well. Sadly, I don't have all that much time to convert the functions I've found from assembly to C.
     
  4. Segafreak_NL

    Segafreak_NL v2.0 New and improved. Site supporter 2012-15

    Joined:
    Jul 29, 2004
    Messages:
    2,903
    Likes Received:
    38
    Very nice! I'd be interested to see if this would work with the other Core games (Blam! Machinehead, Shellshock, Fighting Force etc). Not sure if they use the same geometry.
     
  5. Esppiral

    Esppiral Peppy Member

    Joined:
    Oct 3, 2012
    Messages:
    339
    Likes Received:
    713
    Fantastic!

    Imagine if we could import different meshes into Saturn tomb raider.
     
  6. Piratero

    Piratero Peppy Member

    Joined:
    Feb 28, 2009
    Messages:
    353
    Likes Received:
    4
    That would be ideal. Creating different levels would be great.

    I'm going to provide with a list of functions in a document so someone who has more time than me can go through the disassembly of that function.

    This would allow us to write tools to parse the .SAT, .SPR, and .SAD files.
     
  7. Piratero

    Piratero Peppy Member

    Joined:
    Feb 28, 2009
    Messages:
    353
    Likes Received:
    4
    Here is a list of functions inside the main binary (0MAIN.BIN)

    0x060347A8 - Parses .SAT/.SPR files
    0x06033C90 - Loads actual file "data\level3a.sat" before parsing
    0x060478A0 - String compare
    0x060436E8 - Prints to console
    0x06043A18 - Possibly loads files from CD
    0x06043A70 - Possibly loads files from CD
    0x0602C5AC - HUGE function
     

Share This Page