Coming soon - Get a detailed view of why an account is flagged as spam!
view details
3
WebGL export messes up lighting
Post Flair (click to view more posts with a particular flair)
Post Body

We've been stuck on this lighting issue for our game for multiple working days now, and we could really use some help. This is our first game that we tried playing around with lighting/trying to bake it, so we aren't exactly sure what's wrong.

In editor, our WebGL (AirConsole) game looks fine lighting wise, but everything gets darkened once the game is exported for WebGL.

Here is how it is supposed to look vs Here is how it looks once exported

It looks like all reflections aren't being handled. The water reflections are black, the parts of the boat that are supposed to be shiny are dark, and the big barnacles in the background don't have that light shinniness in the exported version.

Our Setup:

Thank you very much for any and all help

EDIT: It's been half-fixed. This is how it currently looks

Basically, I realized in the Lighting Settings Ambient GI was set to Realtime not Baked. I read that Realtime GI isn't supported in WebGl, so I changed that to Baked.

The water now reflects the light like it does in editor, and the boat is slightly lighter. It's still not as light as it's supposed to be (it really doesn't pop, and considering our players are four differently coloured boats, this darkness is still too hard to tell certain colours apart at a glance), but it's better than it was.

EDIT: Fully fixed!

/u/VIKING_JEW was correct. Changed all directional lighting to point lights that were baked, had to play with them to get a similar effect I liked, but now it works properly on export.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
47,706
Link Karma
3,451
Comment Karma
44,141
Profile updated: 6 days ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago