The fog works OK in GL_LINEAR mode. But if I modify the frustum the GL_FOG_END and GL_FOG_START parameters dont work! What ever I do the fog-end and fog-start are not realy setted to the values. Sometimes there is everywhere a little bit fog but no end and sometimes there is a thick wall of fog what hide my polys behind a short distance.
How can I configurate the end and start with my modified frustum? (or is the problem somewhere else?)
… where near is the near plane, and far is the far plane, as specified in glFurstum(). Then you will always have the fog starting at the near plane, and end at the far plane.