My JOGL app is hitting a bit of a problem. While I have many, many problems at the moment, the most puzzling is this: my ATI Radeon 9800 Pro doesn’t seem to want to do fog. Even running the Nehe fog tutorial (16) just displays the tutorial sans-fog. However, on a GeForce 2 MX400, it works fine. As it does on a GeForce 4 Ti4400. While this is hardly conclusive, it is suggestive…
Version: 1.5.4707 WinXP Release Renderer: RADEON 9800 Pro x86/MMX/3DNow!/SSE Vendor: ATI Technologies Inc.
That is the driver information, as provided by JOGL. Below is an excerpt from my code.
`
float[] fogColor = {1, 0, 0, 0.5f};
gl.glFogi(GL.GL_FOG_MODE, GL.GL_LINEAR);
gl.glFogfv(GL.GL_FOG_COLOR, fogColor);
gl.glFogf(GL.GL_FOG_DENSITY, 0.1f);
gl.glHint(GL.GL_FOG_HINT, GL.GL_NICEST);
gl.glFogf(GL.GL_FOG_START, 3.5f);
gl.glFogf(GL.GL_FOG_END, 8.0f);
gl.glEnable(GL.GL_FOG);
`
The rest is pretty standard and for the most part works as I want it to. Bug on my main machine, the fog just simply doesn’t appear. Any one have any idea? Is there a known problem with those cards/drivers? Any workarounds?
Cheers
Flx