See through textures?

Hi all,



Again run into some problem and i don’t really know how to fix it.



My textures are see through and they shouldn’t be how can i fix this?



Look at the image the “metal” texture is on z axis behind the “wooden” board.



they are not see through, but it can be multiple issues. paste your code.

Sounds for me like a Z-Buffer-Problem. Did you had a Z-Bufferstate to your node?



If not try this(where n is your node):


      ZBufferState buf = DisplaySystem.getDisplaySystem().getRenderer().createZBufferState();
      buf.setFunction(ZBufferState.TestFunction.LessThanOrEqualTo);
      buf.setWritable(true);
      n.setRenderState(buf);
      n.updateRenderState();

ttrocha said:

Sounds for me like a Z-Buffer-Problem. Did you had a Z-Bufferstate to your node?

If not try this(where n is your node):

      ZBufferState buf = DisplaySystem.getDisplaySystem().getRenderer().createZBufferState();
      buf.setFunction(ZBufferState.TestFunction.LessThanOrEqualTo);
      buf.setWritable(true);
      n.setRenderState(buf);
      n.updateRenderState();





your a hero :) thanks