I’ve made a HDR effect script similar to Source Engine which is useful for realistic type of games on Roblox.
This script is not perfect but it works.
The script can now react on walls when the color is brighter or darker when the camera is too close
Sadly the script dosent react on shadows
How it works?
The script creates two raycast rays from the current camera to the position where the camera is looking at. The first ray which is the normal one reacts for how close the part is to the camera, if the part is too close to the camera the brightness changes to the high value using brightness, contrast and bloom. To the second ray it reacts for how close the camera is to the part using colors, if the camera is too close to the part with the color that is bright it changes brightness to 0 but if the color of the part i darker then it will work the same as the first ray does. The script uses ZonePlus module to create zones that are dark, when the player enters those zones then the script adds more brightness to the environment. This script is much diffrent than the Half-life 2 HDR explenation in the developer commentary in some cases due to the roblox’s scripting limitations
If you don’t know how the Source Engine HDR looks like here’s a Half-life 2 video with a developer commentary about HDR.
How to use it?
The instruction for placing the script and the folder for dark zones are inside the model.
You can add parts to the blacklist or change the dark zones folder location in the settings module inside the HDR module.
You can change the intensity of the brightness inside the local script.
Also remove the current bloom on the lighting because you will get very bright results
Why did i made this?
I was just bored so i created this script, also i didn’t saw anyone use the method with custom HDR and resources with HDR script so i thought i will be first for making this script.
Anyway here’s the link for the model:
Also here’s the example place for testing out the HDR effect HDRExample2.rbxl (136,4 KB)
I was rushed to make this post so expect some changes and fixes
I don’t know how did that happend but i got flashbanged by this
maybe change up the lighting? Still its a first version of the HDR effect
But the script is intended for darker maps for now
Fixed that if the player dies while the player is in a dark zone the brightness will be the same and not changed after respawning and also while the player is not in the dark zone, the zoneplus module would break and don’t work
(this update is what i mostly encountered)