Problem with ATI 9800 Pro... maybe...

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

Someone I spoke to recently (unfortunately I can’t remember who) mentioned that “ATI broke fog” in one of their recent driver releases. Which Catalyst driver version are you using? I had serious problems with 4.10 and am currently running 4.9.

That could be me. We’ve had never-ending problems with Fog and ATI drivers (I have a 9700 PRO). One release it works, the next release it’s broken again. One of the more problematic issues is changing the fog colour so that different objects have different fog settings within a single render pass. The most recent drivers were broken again.