Problems with textures

I have a problem with the perception in my room. The main character (the ninja) is between the table and the camera,so the character is in the first plane and the table in the back plane. But the thing is I can see the table through the ninja, is quite weird. Please, see the image attached below.











Any idea?? The trouble comes up when dealing with some textures. If no textures are set to the table, we get no problems.



Any help much appreciated.

Don't forget to add a ZBufferState to your scene, or if you have one already (maybe because you are using SimpleGame) to call updateRenderState on your loaded models after adding them to the scene.

hevee said:

Don't forget to add a ZBufferState to your scene, or if you have one already (maybe because you are using SimpleGame) to call updateRenderState on your loaded models after adding them to the scene.


I used the ZBufferState and the problem was solved.
Thank you.