Releases: treacherousfiend/LightmapUtil
Releases · treacherousfiend/LightmapUtil
v6
User Changes:
- Fix not outputting each new message to a new line if the map only had one lightmap type built
- Fix random crash which could occur (Read Access Violation)
- Read map even if ".bsp" is omitted from the file name (fixes #3)
Note:
LightmapUtil will attempt to read any file you throw at it as long as you include the filetype. as long as the file is actually a source engine map file, the filetype doesn't matter. The last change only fixes the program not reading the map file if the filetype is omitted.
For example, all of the following commands are valid
LightmapUtil cp_dustbowl.bsp
(Has filetype)LightmapUtil cp_dustbowl
(Doesn't have filetype)LightmapUtil cp_dustbowl.bsp.unpacked
(Has filetype)
Developer Changes/Notes:
- Fixed building on MSVC by updating vertex operators
v5
User changes:
- Stop maps from loading if they're compressed, instead of crashing the program
Developer changes:
- Replace forgettable main function return numbers with an enumerator with actual words
v4
User Changes
- Fixed another massive oversight which caused the program to only read the same first few samples from the lightmap data.
- Replaced center of face approximation with an accurate center calculation (JarateKing #12)
- Fixed an issue where the help screen would cause the program to tell the command shell that it failed. (getchoo #9)
Developer Changes/notes
- The replacement for calculating the center of the face appears to have broken MSVC build support, unsure why as it works with basically every other compiler and also doesn't really make sense to error out where it does? The error in specific is with operator overloading.
- Fixed an include for cmath being missing (HurricanePootis #4)
- Added BSP and log files to gitignore (JarateKing #5)
- Added a couple code comments to explain the code better
v3
Some big-ish changes
End-user changes:
- Fixed an oversight which caused the comparison code to essentially check the wrong direction (making the program useless)
- Added support for HDR lightmaps
- Lower the default quality threshold to 0.03 (3%), This seems to reduce false positives/negatives pretty well, while the program lets you specify any number, I highly recommend not going above 10%!
- Added launch options to allow the user to forcibly only read one lightmap type, even if both are present in the map (-ldr and -hdr respectively, essentially the same as VRAD)
- Fixed up and down being flipped when the program tells you what direction a face is facing
- Added an error if for some reason neither lightmap lump is read (for example; if running the program with -hdr on a map that only has LDR lighting)
Some under the hood changes:
- Move the lightmap comparison code into its own function
- Add an early out directly after lightmap compare function to stop if a face has already been determined to not be "too big"
- Reduce code clutter by moving the lightmap results log into a stringstream which is then output to the log file and cout
- Fixed a frankly embarrassing amount of typos :/
v2
Fix segfault, as well as fix a couple minor issues.
also add basic CMake support for building.
v1
Initial release, mostly just here so that there's an easily accessible exe file for people who don't know how to build.