Author Topic: Static collision render  (Read 559 times)

Offline nima.sh23

  • byte
  • *
  • Posts: 40
    • View Profile
Static collision render
« on: October 19, 2015, 06:10:43 pm »
Is there a way to fix rendering problem which is shown on picture?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11749
    • View Profile
    • http://www.jpct.net
Re: Static collision render
« Reply #1 on: October 19, 2015, 07:19:03 pm »
It's a zbuffer accuracy thing and depends on the GPU. There isn't much that you can do about it. You can try to lower the far distance plane and see if that helps, but it usually doesn't. Which GPU/device is this?

Offline nima.sh23

  • byte
  • *
  • Posts: 40
    • View Profile
Re: Static collision render
« Reply #2 on: October 20, 2015, 08:30:27 am »
Thanks for answer.
The gpu is Adreno 302

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11749
    • View Profile
    • http://www.jpct.net
Re: Static collision render
« Reply #3 on: October 20, 2015, 10:10:07 am »
Adreno has rather low depth buffer accuracy by default. You can try to use this http://www.jpct.net/jpct-ae/doc/com/threed/jpct/util/NVDepthConfigChooser.html (simply set it as a custom config chooser on your GLSurfaceView at init time) and see if it helps.