-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
light: Add support for LIGHTING_E5BGR9. #421
Conversation
Thanks for resurrecting this. I think it's pretty close to good to merge, I've got a small docs update:
I'd like to add a test or two that lights a map with I should also credit Spike in the final merge commit for the initial patch. |
lit2 = 4 | ||
lit2 = 4, | ||
hdr = 8, | ||
bspxhdr = 16, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a separate enum-entry here to be able to distinguish between rgb and e5bgr9 bspx lump. I'm not particularly happy with the relation between these different flags. Need to have bspxhdr here to be able to write only e5bgr9 data, otherwise both that and rgb data would be written. With this setup -bspxlit and -bspxhdr would write both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, I'm not sure if the enum class lightfile
really does anything useful, thinking of removing it (later on) and just checking flags like light_options.lit.value()
directly.
This is not really finished. Currently mutually exclusive with regular RGBLIGHTING, and not tested with external .lit file.
I'm doing the last batch of changes I wanted to add to this in my branch https://github.com/ericwa/ericw-tools/tree/hdr
I'll hopefully wrap this up soon + merge! |
Thank you so much for picking this up. Was about to return to this after focusing on another project for the past few weeks. Your improvements look much better than what I would have been able to pull off. 🙏 |
Merged this in 30868ea |
Forward port/adaptation of Spike's work in #280 and not really fit for merging. Proposing it as draft in hope of getting help to figure out what needs to be done to get it into a mergable state.
The output of these lightmaps is supported by FTE, QSS, QSS-M.
The primary usecase is HDR and iris adaptation that alters the brightness between scenes with a delay of going from outdoors to indoors, but it also reduces banding due to the float nature. From a multiplayer perspective it allows for kicking up the brightness without lightmaps turning into pure garbage.