Harsh Lighting in-game compared to Studio

Very rarely when playing my game, after joining, the lighting in the game is more harsh compared to what it should look like. Red-ish tint and different shadows it seems. This issue might be connected to this bug report. If it is, the solution does not seem to be working for me.

Screenshot of in-game:

Screenshot of (me playing the game) in studio:

Link to my game: https://www.roblox.com/games/6966396688/PB-Jay

System Information:

  • OS: Windows 11
  • GPU: AMD Radeon™ Graphics
  • CPU: AMD Ryzen 7 4700U with Radeon Graphics
  • Memory: 8GB
3 Likes

Does setting the Lighting.EnvironmentDiffuseScale property to 0 give you the same effect in Studio?

1 Like

Thanks for the report! We’ll follow up when we have an update for you.

2 Likes

Yes actually, it does seem that way. Nowhere in my code do I change EnvironmentDiffuseScale, so I find that odd. (I do change other properties however.)

Video of me changing the EnvironmentDiffuseScale:

Image of lighting settings I change in code:

2 Likes

All it does is increase the Ambient property based on the skybox. What seems to be happening is that it’s not calculating the skybox contribution. There’s not much you can do to work around it until this bug is fixed, but you could set EnvironmentDiffuseScale to 0 and tweak OutdoorAmbient to get the same blu-ish tint.

1 Like

Hey @Reditect, I think it may be possible that you have a different graphic settings in Studio? To confirm this, can you please follow this sequence?:

  1. Go to Studio
  2. Click the button named “FILE” at the top left
  3. Click “Studio Settings”
  4. Go to “Rendering”
  5. You will see “Editor Quality Level”.

What is E.Q.L set to?

Level 21.

“different” compared to what? I am confused.


Edit:

I assume there is a difference in this graphical quality setting and this graphical quality setting. Maybe in Roblox’s core scripts it changes the 0-10 values into 0-21. Or, maybe that has nothing to do with this at all.

1 Like

I see. the graphics definitely dont look like level 21 in the picture though (the studio one)

Roblox Studio and Roblox Player have different graphic number limits - Studio allows setting between 0-21, while Player has only 0-10.

Whatk’s your Graphics Mode (Studio Settings > Graphics Mode)?

Automatic

image

I found this thread by searching EnvironmentDiffuseScale. I’m having the same problem and figured out this is the property at fault. The in-game glitch happens around 50% of the time I play my game on Windows and hasn’t occurred on my Mac even once thus far

Also, something that may help the report is that when my blue skybox is switched out to a black one(through a script), the lighting adjusts accordingly, but when it changes back to the blue skybox the lighting doesn’t readjust back to a blue diffuse.

I will clarify, though, that this bug occurs on Windows even if you have only one skybox never switched through scripts.

1 Like

It appears the bug is happening to me less now. I’ll keep monitoring it and @Reditect tell me if you notice any difference

Edit: Okay never mind…it’s still happening a lot. But strangely I had one session where I just couldn’t get the bug to occur, I the skybox was switching between a blue sky and pitch black and it was recalculating the diffuse every time. This makes me think the problem is related to a failure of the diffuse code to load on join

1 Like

Encountered the issue again today:

1 Like

How is your performance? How long did you wait between taking this screenshot? My theory is that the lighting updates are being throttled a ton, for whatever reason, causing the ambient lighting to never update to match the skybox.

1 Like

My performance felt fine.

I loaded into my game, it looked fine, then I pressed play on a new save file in my game, which has some lighting setting changes like the sky box whenever the player goes to a new world/environment. I’d say it took less than a minute to get the issue. I took the screenshot like 10 seconds after I encountered the issue and then sent it here.

The theory could be correct, but since the issue happens rarely, it’s difficult to test it. Maybe a function that updates the skybox when pressing a button can be used to test it when it does happen.

I’m checking this out. Would @Reditect be okay sending me a DM of the rbxl placefile by any chance? DMs should be private.

1 Like

Just two days ago this started happening to me on my MacBook. First occurrence Aug 19 11:41AM GMT. Previous to this date it had not occurred even once on my Mac, only on my windows. Now the behavior is present on my Mac in the same exact manner, including needing to restart the app to temporarily correct the bug.

We still dont have a reliable repro from my understanding. Would really appreciate if you could reproduce it reliably on some machine and send as many details as possible.

The bug was just happening 5 hours ago—of that I’m certain. In fact I created this bug repro a few hours ago, and the bug was occurring in the Roblox app:

Diffuse bug repro.rbxl (55.1 KB)
In the repro, every 5 seconds the skybox changes. The shade of the baseplate should change with each recalculation(I used a ColorCorrectionEffect object to magnify the otherwise subtle color difference), but with the bug it doesn’t after the second cycle.

Now some staff member definitely changed something, because my Roblox just did an update and it ain’t happening anymore. My Windows isn’t being used by myself at the moment, so perhaps someone on staff can attempt the repro on Windows OS?

2 Likes

Is this still happening? It seems Client and Studio are looking identical on this repro now.