Difference between revisions of "Sonic Heroes/Light Editing"
From Sonic Retro
ShadowBlitz (talk | contribs) (→Light Entry) |
ShadowBlitz (talk | contribs) (→File Layout) |
||
Line 4: | Line 4: | ||
== File Layout == | == File Layout == | ||
− | Each light entry is 0x34 bytes long, and there are 19 entries in each Heroes file, 16 for a Shadow file. Some entries may be blank for some stages, though they can be utilized by objects. The 0x34 bytes of each entry are divided into variables which occupy 4 bytes of space, for a total of | + | Each light entry is 0x34 bytes long, and there are 19 entries in each Heroes file, 16 for a Shadow file. Some entries may be blank for some stages, though they can be utilized by objects. The 0x34 bytes of each entry are divided into variables which occupy 4 bytes of space, for a total of 15 variables. They are either float32s, float16s, or U16s. |
=== Light Entry === | === Light Entry === | ||
Line 47: | Line 47: | ||
| 9 | | 9 | ||
| Float | | Float | ||
− | | Unknown | + | | Unknown 0-1.0F Value |
|- | |- | ||
| 10 | | 10 | ||
| Float | | Float | ||
− | | Unknown | + | | Unknown 0-1.0F Value |
|- | |- | ||
| 11 | | 11 | ||
| Float | | Float | ||
− | | Unknown | + | | Unknown 0-1.0F Value |
|- | |- | ||
| 12 | | 12 | ||
− | | | + | | Float16? |
− | | Unknown | + | | Unknown for 3rd set of floats? |
|- | |- | ||
| 13 | | 13 | ||
− | | | + | | Uint16 |
− | | Unknown Angle | + | | Vertical Rotation 0-360 Euler Angle. Will accept angles beyond 360. |
+ | |- | ||
+ | | 14 | ||
+ | | Float16? | ||
+ | | Unknown for 3rd set of floats? | ||
+ | |- | ||
+ | | 15 | ||
+ | | Uint16 | ||
+ | | Horizontal Rotation 0-360 Euler Angle. Will accept angles beyond 360. | ||
|} | |} | ||
{{SCHGuides}} | {{SCHGuides}} |
Revision as of 23:13, 7 March 2019
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 |
Light layouts are stored in big endian sLL_light.bin (or stgLL_light.bin) files, where LL is the level number. On PC and Xbox, they are located in the /dvdroot folder. For Shadow the Hedgehog, the same format is used in little endian.
File Layout
Each light entry is 0x34 bytes long, and there are 19 entries in each Heroes file, 16 for a Shadow file. Some entries may be blank for some stages, though they can be utilized by objects. The 0x34 bytes of each entry are divided into variables which occupy 4 bytes of space, for a total of 15 variables. They are either float32s, float16s, or U16s.
Light Entry
Float values should be between 0 and 1.0f. Less than 0 seems to be treated as 0 while more than 1 may cause a crash.
Number | Type | Description |
---|---|---|
1 | Float | Red Ambient |
2 | Float | Green Ambient |
3 | Float | Blue Ambient |
4 | Float | Alpha Ambient |
5 | Float | Red Directional |
6 | Float | Green Directional |
7 | Float | Blue Directional |
8 | Float | Alpha Directional |
9 | Float | Unknown 0-1.0F Value |
10 | Float | Unknown 0-1.0F Value |
11 | Float | Unknown 0-1.0F Value |
12 | Float16? | Unknown for 3rd set of floats? |
13 | Uint16 | Vertical Rotation 0-360 Euler Angle. Will accept angles beyond 360. |
14 | Float16? | Unknown for 3rd set of floats? |
15 | Uint16 | Horizontal Rotation 0-360 Euler Angle. Will accept angles beyond 360. |