textures are gone after some time

Started by raft, October 20, 2009, 04:53:08 PM

Previous topic - Next topic

EgonOlsen


raft

i've made a search and found no compile() call.

1.18 is same as 1.19. 1.17 is working fine (i've that version and tried).

my render method is like this:
                    buffer.clear();
                   
                    if (skyBox != null) {
                        skyBox.renderScene(buffer, world.getCamera().getBack());
                        skyBox.draw(buffer);
                       
                        buffer.clearZBufferOnly();
                    }
                   
                    world.renderScene(buffer);
                    world.draw(buffer);
                   
                    buffer.update();


where SkyBox.renderScene is
    public void renderScene(FrameBuffer buffer, Matrix matrix) {
        world.getCamera().setBack(matrix);
        world.renderScene(buffer);
    }
   

and SkyBox.draw is
    public void draw(FrameBuffer buffer) {
        world.draw(buffer);
    }


see any flaw ?

EgonOlsen

Looks fine to me. The only light related change that i can see in my code shouldn't show this effect nor do i have ever experienced something like this in my tests...strange...
Can you provide me with a test case for this? When i'm back home, i'll upload a jar that reverts the change to see if this does any good.

raft


EgonOlsen

OK...i've updated the jar at http://www.jpct.net/download/beta/jpct.jar with a version that takes back the change in the lighting calculation. I really doubt, that this will show any effect, but it's worth a try anyway.

raft

no, it didnt help. i will try to setup a test case..

raft

Egon, i've sent you a test case with email..

EgonOlsen

#22
No mail so far...maybe my spam filter eated it!? I've whitelisted both, your gmail-account and aptalkarga.com now. Could you please try again?

Edit: Got it. Took some time but it finally arrived. I'll look into it now.

EgonOlsen

Found it! As usual, it's not a bug...it's a feature. To be exact, it's this (from the change log of 1.18): "The 3ds- and obj-loaders now load transparency information."
Your sky has a transparency value of 100 for whatever reason. The loader now loads this information. That, combined with the way how transparency works in the software renderer, cuts the light intensity in half on the sky. Just add a


sky.setTransparency(-1);


and it should look better.

raft