Sonic Heroes/Spline Editing
From Sonic Retro
SCHG: Sonic Heroes |
---|
Main Article |
Mechanic Editing |
DOL Editing |
Model Editing |
Collision Format Model Format |
Level Editing |
Camera Editing |
Particle Editing |
Particle Editing |
Sound Editing |
Music List |
SCHG How-Tos |
Custom Object Material Effect Tutorial |
SPL splines are found in many places in Sonic Heroes. Splines such as rails and autoloops are not in SPL format, those instead are in the executable; paths used for Falcos (similar to splines) are animations found in every stage flyer archives. SPLs are found directly in the dvdroot folder or in ONE archives, and contain data for special stage splines, automated camera sections, and many objects such as flowers/propellers and the alligator in Frog Forest and Lost Jungle.
Format
The file is little endian. It's a Renderware binary stream file with just one section.
int32 sectionType // 0C 00 00 00 int32 sectionSize // number of bytes in file -0x0C int32 renderWareVersion // always FF FF 00 14 in Heroes int8[20] null int32 amountOfPoints // get total number of bytes in file, subtract 0x34 and divide by 0x0C int32 unknown // always 01 00 00 00 vertex3[amountOfPoints] vertices // vertex3: 0x0C bytes float32 X float32 Y float32 Z
Tools
Heroes SPL Editor can convert between SPL and OBJ which can be imported/exported from 3d model editors.
References