Author Topic: a textured object passes through another  (Read 1848 times)

Offline influt

  • byte
  • *
  • Posts: 25
    • View Profile
a textured object passes through another
« on: November 14, 2008, 03:11:34 pm »
Hello.

Excuse me, if the same question has been already asked, but i haven't found it here.
I've got two objects: one is semi-transparent, another one is not. When standing near to those objects, everything looks ok:


but when stepping back, the one that has to be behind, passes through the nearer one:


changing glZBufferDepth in Config didn't make any effect. So how can i avoid this?
Thank you.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: a textured object passes through another
« Reply #1 on: November 14, 2008, 03:24:11 pm »
That's z-fighting (http://en.wikipedia.org/wiki/Z-fighting). Either try to increase the offset between the transparent and the opaque objects or eliminate/minimize the overlapping of both. You may also try to play around with near and far clipping plane (in Config), but from my experience this usually doesn't help much.