Hello, here’s a bug, which bothers me for quite some time, since I upgraded to Away3D 4.0.11.
The thing is that in my project on some Macs (several Macs notebooks at least) Away3D renders 3D scene incorrectly. Specifically, objects have undesired solid-black regions on them, which depend on current camera position, i.e. those black spots are moving when camera moves (see screenshots). The same swf looks correct under Windows (both via DirectX and OpenGL). Search through forums and bugbase yielded this more-less similar bug (http://away3d.com/forum/viewthread/2500/#7741 and https://github.com/away3d/away3d-core-fp11/issues/221). Only that one was related to shader’s alpha calculations and appears to be fixed.
Unfortunately, I don’t have unlimited Mac access, nor want to dig dip into the shaders code, but was able to discover experimentally that this bug is related to main pass lighting calculations - if I remove lights from scene (and lightpicker), it goes away. But it’s there again as soon as at least one light source is added.
Another weird thing about the issue is that it doesn’t manifest itself when standard Away3D examples are compiled and run on the same hardware. Sure, I use Away3D engine somewhat differently than examples do, because of their toy nature. In my case, after View3D initialization a bunch of models and other assets are loaded, 3d objects constructed and added\removed to the scene, along with lights, at different moments. Nevertheless, I failed trying to construct simple bug-reproducing test, and my project is commercial and rather complex, what’s why I don’t post concrete code, sorry about that.
I’d be infinitely thankful for any help and suggestions.
Mac screen#1
Win screen#1
Mac screen#2
Win screen#2
(More screenshots in attachment)