Re: [Flightgear-devel] Near Clipping in the virtual cockpit: please help!!

2011-02-12 Thread Paul Guhl
Curtis, I know, it's a problem solved in FG many years ago :). I know it arises in all simulations and has to be solved in some way. Falcon4 for example apears to be scaling the cockpit model 10x of original size (from what i have seen in the code). Thanks for advice, i will check it! It was

Re: [Flightgear-devel] Near Clipping in the virtual cockpit: please help!!

2011-02-12 Thread Frederic Bouvier
This issue has already been addressed in the current implementation. Tim used a slave camera to draw the near geometry while the main camera draws the far geometry. Look in CameraGroup.cxx and in /sim/rendering/camera-group/znear properties. There is one camera that draws between

Re: [Flightgear-devel] Near Clipping in the virtual cockpit: please help!!

2011-02-10 Thread Curtis Olson
Hi Paul, Here is an interesting link that explains the core of the problem. http://www.sjbaker.org/steve/omniv/love_your_z_buffer.html It's been a while, but one technique for dealing with this is to clear the zbuffer and reset the near plane location when drawing different portions of the

[Flightgear-devel] Near Clipping in the virtual cockpit: please help!!

2011-02-09 Thread Paul Guhl
Hello! I have unsolved problem driving me nuts for weeks now. In my opengl application the terrain presentation is flickering very frequently (either as whole our 1/3 of all polygons). The problem disappears as soon as i increase the near clipping value. The problem root is the z buffer