The sky was obtained through the method below.
Spatial sky = SkyFactory.createSky(this.app.getAssetManager(), "Textures/Sky/Bright/blue_sky_512x512_2.png", SkyFactory.EnvMapType.SphereMap);
I noticed this problem for two android devices:
- Samsung Galaxy Tab S3;
- Motorola Moto Maxx.
The following figures show the normal situation and the error situation.
In fact, after some tests, I realized that the sky was not being rendered.
After a few more tests, I identified where the problem occurs.
In the file Sky.j3md has the following definition:
The problem is in DepthFunc = Equal. For rendering to have to be DepthFunc = LessOrEqual.
To work around the problem I did the following after calling the SkyFactory.createSky function:
Geometry g = (Geometry) sky;
//Bug fix para Samsung Galaxy Tab S3 e Motorola Moto Maxx