What do you want to achieve? You know when your eyes automatically adapt and adjust to dark/bright areas? yeah that’s what I want to make.
What is the issue? There is currently no method in making such system.
What solutions have you tried so far? EditableImages & CaptureService, It used to work before but sadly not anymore you just get this error:
I just need help to know if there are other methods in achieving such effect.
The game I’m trying to make is fully indoor so no I wont use MaximumADHD’s method of using SunDirection.
I was thinking of using “Shadow/Bright” parts and using .Touched to detect whenever the player is in a dark or bright area to increase or decrease the exposure in lighting from the usual, that is probably my LAST resort for a solution since its not efficient.
it usually means you are passing in an asset that is not a real uploaded asset in Roblox. temporary ids like ones returned by Instance.new("Decal").Texture or generated ids cannot be used with CreateEditableImageAsync. you need to make sure the texture you are giving it is an actual asset uploaded to Roblox and that you use the numeric asset id not the rbxassetid url string
local editableImage = AssetService:CreateEditableImageAsync(1234567890 ) -- <-- a real uploaded image asset id
If you try to pass something like "rbxassetid://1234567890" something like that or a temporary texture created in studio it will throw that error. upload the image to Roblox get the asset id from the website or the properties panel and then use that numeric id directly in the call to CreateEditableImageAsync
I don’t get what you’re really trying to say, but if you want to create a CaptureService that supports EditableImage, you can do it. Unless there’s some miscommunication on this topic, you actually can assign temporary IDs to EditableImages.
What I did with EditableImages and CaptureService is I obviously tried to put the screenshot ID to create an EditableImage, but that doesn’t work since its a temporary ID, and I can’t give it an already uploaded Roblox asset since I will be almost spam taking screenshots to automatically adjust the exposure every second.
this place some how has it.
from my experience , I say it’s impossible. I tried everything, but no, nothing.
HOWEVER I just thought about this, it might work:
1- add a tag to every light’s parent part (collection service)
2- write a script to get every light’s parent part with that tag
3- make that script check if player’s looking at that part , get the brightness of the light , adjust the exposure
only problem is , it only works with stuff like lamps, you know what I mean.
and let me end this reply with a fun fact, ROBLOX HAD AUTO EXPOSURE when they were working on the future lighting. but for some reason they REMOVED it , along with some MORE advanced lighting settings that could be revolutionary if released today.
GOOD LUCK finding a workaround for auto exposure and WELCOME to roblox and it’s limitations
Try casting a ray between the player’s camera and every light source. For any light source which is in the line of sight of the camera, reduce exposure by some amount which scales with the brightness of the light source and (with the exception of the sun) its distance from the player.
This is a good idea. To make it less CPU heavy you could fire rays 4 times a second or so instead of every frame (ends up being about every 15 frames) and Tween the desired exposure. Might even end up being more realistic since eyes have a short delay when adjusting.