Hello!
We’re developing Away3D + Starling based game. Until now we have been using textures for simulating (baked) lights, but we want them to be dynamic. I’ve been studying examples from Github and most of them works like a charm. However, when I add lights to our application I encounter two problems. To be exact, only one pointLight.
1. Performance on mobile devices goes way down. From 60 fps to only 15 max. There is between 12.000 and 25.000 polys on the scene. Data is from awayStats. Models are using same textureMaterial and this happens if I add only one light. It is same for directLight and pointLight.
2. Light reflection looks really bad. Mesh faces can be seen. I’m providing an image with an example. Models are AWD2. Tried AWD1, same thing. Tried to export them using Prefab3D and Away Builder. Only time they looked beautiful is when I subdivide the mesh in Blender, but then my poly count is 3-4 times bigger. I’m hopping that good result can be achieved in some different way than boosting poly count that would damage performance.
Another thing I tried was using a specularMethod, but with no success:
var specular:FresnelSpecularMethod = new FresnelSpecularMethod(true, new PhongSpecularMethod());
textureMaterial.specularMethod = specular;
Advices and corrections are more than welcome. Away3D 4.1.5/4.1.6 is used
I’ll provide additional info if needed.