Fog disappears after resume app

Started by orkshaman, April 25, 2011, 10:53:24 PM

Previous topic - Next topic

orkshaman

Hello again!
I add code to HelloWorld:

public void onSurfaceChanged(GL10 gl, int w, int h) {
if (fb != null) {
fb.dispose();
}
fb = new FrameBuffer(gl, w, h);

if (master == null) {

world = new World();
world.setAmbientLight(20, 20, 20);

world.setFogging(World.FOGGING_ENABLED);
world.setFogParameters(40,0,0,0);


And now if I minimize app and resume it - fog disappears.

Before minimize:

After:

orkshaman

Anyone? ???
here more screenshots:

After resume:

EgonOlsen



EgonOlsen


orkshaman

Yes, now fog works properly. Thank you EgonOlsen!