Sonic and Sega Retro Message Board: SADX/SA1 Hacking/Modding - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
  • 185 Pages +
  • ◄ First
  • 183
  • 184
  • 185
    Locked
    Locked Forum

SADX/SA1 Hacking/Modding Now with more research and development!

#2761 User is offline Irixion 

Posted 28 May 2018 - 11:38 PM

  • Posts: 1509
  • Joined: 30-December 04
  • Gender:Male
  • Location:Ontario, Canada
  • Project:Life
  • Wiki edits:152
So really, custom models without it looking like limbs were chopped up and taped together with hinges isn't coming any time soon? :v

#2762 User is offline PkR 

Posted 31 May 2018 - 12:35 AM

  • Posts: 171
  • Joined: 04-August 12
  • Gender:Male
  • Project:SADX Dreamcast Conversion, The Emeralds' Awakening
I was comparing SA1 and SADX textures and found out that the PVMs for Zero and E101R boss fights were missing in SA1. It turns out that textures for these two bosses are loaded from .PB files, EROBO.PB and E101R.PB in the Dreamcast version. I was able to figure out the format and put together a tool that extracts PVR textures from those .PB files.
Byte 0x04 is the number of textures. The textures inside .PB files are PVR but without headers. The most essential data (pixel format, dimensions etc.) is stored at the beginning of the .PB file for all textures at once. The header data starts at 0x08. Each structure is 16 bytes and contains the following information:

Offset in the NB file where PVR texture data starts (long)
PVR Pixel format (char)
PVR Data format (char)
2 zeroes (2 chars)
PVR texture global index (long)
PVR texture width (short)
PVR texture height (short)

After those structures it's just PVR texture data without the 32-byte header. The tool reconstructs a PVR file header from the essential data and calculates the size of the PVR chunk by subtracting offsets from each other.
Here are the PVR textures extracted from both .PB files.
SADX doesn't use .PB files, although it does use .NB files, which contain models for Zero and E101R. The textures are loaded from simple PVMs, however - EROBO.PVM and E101R.PVM.
I gotta say I was really surprised (for the 9999th time) at how much better the textures in the .PB files are in comparison to their PVM counterparts in SADX. It looks like the SADX textures were reworked to make them usable without additive blending, though it's hard to say for sure.

  • 185 Pages +
  • ◄ First
  • 183
  • 184
  • 185
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users