From: david Date: Sat, 16 Nov 2002 22:08:22 +0000 (+0000) Subject: Reduce POFF_UNITS from 40 to 4, following Andy Ross's suggestion (to X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=de0f20aa228a5bb60bbfce8b5992a85126d2b4b8;p=flightgear.git Reduce POFF_UNITS from 40 to 4, following Andy Ross's suggestion (to avoid having the 2D instruments obscure 3D objects in front of them): It's related to depth buffer precision. On my Geforce cards (2MX and 3), it never happens with the 24 bit depth buffer you get by default at 32bpp. At 16bpp, it picks a slimmer depth buffer (probably 16 bit) and the texture layers bleed through. The code is using a pretty big argument to glPolygonOffset, and I've never investigated how small it can be. If someone has a little time the next time they see this issue, try changing the value of POFF_UNITS at the top of Cockpit/panel.cxx. Decrease it until the textures *just* start to interfere with each other, and post the value that works for you. --- diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index d2332b9d8..91fa06bda 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -52,7 +52,7 @@ // The number of polygon-offset "units" to place between layers. In // principle, one is supposed to be enough. In practice, I find that // my hardware/driver requires many more. -#define POFF_UNITS 40 +#define POFF_UNITS 4 ////////////////////////////////////////////////////////////////////////