Author Topic: Fog disappears after resume app  (Read 1554 times)

Offline orkshaman

  • byte
  • *
  • Posts: 25
    • View Profile
Fog disappears after resume app
« on: April 25, 2011, 10:53:24 pm »
Hello again!
I add code to HelloWorld:

Code: [Select]
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:

Offline orkshaman

  • byte
  • *
  • Posts: 25
    • View Profile
Re: Fog disappears after resume app
« Reply #1 on: April 26, 2011, 08:44:54 pm »
Anyone? ???
here more screenshots:

After resume:

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: Fog disappears after resume app
« Reply #2 on: April 26, 2011, 08:45:34 pm »
I'll look into it...

Offline orkshaman

  • byte
  • *
  • Posts: 25
    • View Profile
Re: Fog disappears after resume app
« Reply #3 on: April 26, 2011, 08:48:40 pm »
Ok ;D

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: Fog disappears after resume app
« Reply #4 on: April 26, 2011, 08:58:50 pm »
Please try this version. It should fix the problem: http://www.jpct.net/jpct-ae/download/alpha/jpct_ae.jar

Offline orkshaman

  • byte
  • *
  • Posts: 25
    • View Profile
Re: Fog disappears after resume app
« Reply #5 on: April 26, 2011, 10:04:51 pm »
Yes, now fog works properly. Thank you EgonOlsen!