Hi there. I’m working on a small game for Facebook and am experiencing a strange discrepancy in the graphics of some 3d models between the WebGL build and the Web Player build. Things look as they should in the web player, but they’ve got a strange, cartoonish glow in the WebGL build. Most everything else is rendered fine, it’s just these particular models. I’ve tried adjusting materials / shaders, and have tweaked Lighting settings, thinking that this shotgun approach might lead me to a solution, however I’ve come up empty handed after multiple tests and builds, so I thought I’d inquire here. If you’ve any thoughts on the matter, please let me know. I’m currently using a Mobile Diffuse shader on both models depicted below, have turned off Light Probes and Reflection Probes, and am not sure what else to try toying with. Thanks!
I was getting similiar reults when using the standard pbr shaders.
I replaced all them with the legacy shaders and it helped.
Try the legacy shaders.
Thanks tommekkie2. I’ll try switching them out, but if memory serves, they were already using Legacy shaders when I initially noticed the problem. I switched to Standard and then Mobile/Diffuse attempting to correct the issue. Since my brain is a bit fuzzy at the moment (loooong day, haha), I’ll give reverting them to Legacy/Diffuse a shot and see if I have any better luck.
Unfortunately, reverting to Legacy shaders has had no effect. I’ve got a couple of other ideas, mostly involving testing different camera settings, but have no real solid leads as yet. If I do come across a fix, I’ll be sure to post it. In the meantime, if there are any other suggestions, I’d love to hear them. Thanks again!
Fixed! It took a bit of experimenting, but eventually I discovered that the problem stemmed from having Fog checked in the scene’s Lighting settings. Switched it off and all is right with the world, at least in regards to how the 3d models are being rendered ![]()
Fog?
For me - fog makes no difference across the targets - WebGL or WebPlayer.
Yeah, it seemed especially odd to me since it had no effect on any of the other elements in the game, just these models in particular… Still, it worked and that’s all I needed, haha.
On an unrelated note, WebGL is suddenly working for me in Firefox where last week it crashed with “too much recursion” errors. Can’t think of anything at all I might have done that fixed it, but again, it’s fixed and I’m that much happier for it
I really, really wish I knew, but I’m not going to look to look a gift horse in it’s mouth.
Thanks again for the assist!