LGT
From Niotso Wiki
stdlight.lgt is a file used in The Sims 1 and The Sims Online to render lighting on 3D models, or more specifically the characters. When you delete this file from the game, the characters in The Sims 1 will appear as black silhouettes. (The Create-A-Sim screen does not make use of any lighting, however, and will remain unaffected.)
The code that looks this file is located at TSOViewerClientD_base+0x5869d.
All integers and floats are little-endian. The format is as follows:
- Version - A 4-byte unsigned integer specifying the version of this file; should be 0xB0B0B0B0 for "version 1" (according to the Pre-Alpha constants table). This constant "0xB0B0B0B0" is named after Eric "BoBo" Bowman, who implemented the lighting system in The Sims 1.
- Unknown1 count - A 4-byte unsigned integer specifying the number of unknown1s that follow
- Unknown1s - For each unknown1:
- Unknown1 Version - A 4-byte unsigned integer specifying the version of this Unknown1; should be either 0xB0B0B0B0 for "version 1" or 0xB0B0B0B1 for "version 2".
- Unknown - An ordered pair of 3 floats
- Unknown - An ordered pair of 3 floats
- Unknown - A 4-byte unsigned integer
- Unknown - An ordered pair of 3 floats scaled to unit norm
- Unknown - A float
- Unknown - A float
- Unknown - A 4-byte unsigned integer
- Unknown - A float
- If Unknown1 Version is equal to 0xB0B0B0B1, then there are 4 additional fields; otherwise, the fields all default to 0.0f:
- Unknown - A float
- Unknown - A float
- Unknown - A float
- Unknown - A float
|