www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: nima.sh23 on October 19, 2015, 06:10:43 pm

Title: Static collision render
Post by: nima.sh23 on October 19, 2015, 06:10:43 pm
Is there a way to fix rendering problem which is shown on picture?
Title: Re: Static collision render
Post by: EgonOlsen 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?
Title: Re: Static collision render
Post by: nima.sh23 on October 20, 2015, 08:30:27 am
Thanks for answer.
The gpu is Adreno 302
Title: Re: Static collision render
Post by: EgonOlsen 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 (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.