OpenGLes2.0 Fog issue

Has anyone encountered this issue before: After installing our app on to the iPad and/or iPhone 4g, the fog that we have in the scene looks like panels(refer to attachment/image)? In the AppController.mm, if I change “#define USE_OPENGLES20_IF_AVAILABLE” to 0, it looks fine; however, we see planes for the fog if we keep it as 1.

Unity 3.1
Device OS : 4.2

Fog runs so slowly in anything more than 480x320 that I had to disable it in order to get a decent framerate.

–Eric

I’ve submitted few bugs regarding fog and transparent materials but none of them were fixed in 3.0 neither in 3.1.
I got tired of submitting bugs and Unity keeps ignoring them, so I’m not reporting bugs anymore.

Thank you very much for your inputs. :slight_smile:

Yeah I lost 6fps in my HD Ipod Touch. Another thing I had to do which was really weird was actually decrease the physical size of my water object and skydome because it too was killing the framerate.

I have contacted Oleg to see if he can help. Any other moderators out there that could provide us some input on the issue it would be greatly appreciated.

Not that we don’t fix bugs, I guess that we rather fail to respond when we fix them. And yeah, we’re growing and hiring, so sometimes we don’t have enough hands to reply properly. Say, when we get duplicates we may just close them and fail to respond. However we see that you guys are unhappy with us being silent and we’re trying to get better.

tatoforever, please email me to oleg@unity3d.com your case numbers and I’ll personally report you the state of all your submitted bugs. I regret that we failed to respond to your requests.

Early next year we’re planning a new release with a ton of bugs fixed. Beta program gonna start soon, so folks in beta groups gonna get it.

DaveG, thanks for mailing me however I prefer to reply publicly for everyone to benefit. How do you setup fog? Do you use any desktop only assets? Last time I tested it worked, but it was before Unity 3 release.

Wozik,

We are adding fog to our environments through Render Settings and enabling that feature through there. What do you mean by desktop only assets?

Wozik- Sure - how soon for the beta release :slight_smile: I am assuming that the mobile fog issue has been assigned as one of the fixes.

I’ll let you do a quick test to see by yourself.
This must be tested on the iPhone, not the editor. The problem is only visible on recent iDevices (3GS/4).
Steps:
Turn on fog add a mesh(a plane) to the scene using a transparent material (different from the fog color) Eg:
If your plane material have a dark color, then use a light white fog color.
Dont use alpha cutout shader, use any standard transparent shader.
You’ll see that the plane inst that fully transparent…

Hi,

Could you please submit a bug report with a reproducible project and post a case number. That would be really helpful. Thank you!

Best,
Andrius Kuznecovas
QA Engineer

Guys, I don’t have a Mac nearby, but Andrius is concentrated on iPhone now, he tried to reproduce your case with the latest code. So this seems to be not reproducible/fixed. Just to verify that your very special cases are also fixed, please submit a bug and put the case number (only number please) here.

Thanks,
Oleg

It would be great to get the beta soon :slight_smile: if that is the case- we are looking to release the ipad version in the next couple of weeks. We are of course on the beta list.

Alright here is:
Case number: 385017
Transparent materials + fog problems.

I was able to reproduce issue and it’s assigned to devs. The work around is to use Mobile/Transparent/VertexLit instead of Transparent/VertexLit.

Yeh but, even Mobile/Transparent/VertexLit dont blend correctly, you can see meshes using those materials even in the fog. Again, isn’t visible on the Editor, only on the phone.

thats because the editor can’t replicate the phone. The last card that worked similar to it was the PowerVR2 based gpus 7 years ago in Geforce / GeForce 2 days and they had no shaders (ok not fully true but I wouldn’t waste money on getting an intel GMA500 based system - gma500 = the same gpu the iOS devices generation 3GS through 4th and ipad have), which is where the trouble comes form, OpenGL ES 2.0 devices that run in “1.1 emulation”

Correct.

Fog issue is now fixed and fix should be available in the next release.

Andrius Kuznecovas
QA Engineer

when will be the next release?
actual one is 3.1.04F right?