I can’t get fog to work (Exponential or Linear). Is there something extra that has to be done appart from adding it to the scene BranchGroup?
I have a simple box and ground created from odejava, with a directional and ambient light. All works well, except no fog. Here is how I create and add the fog:
float color = 0.66f;
Fog fog = new LinearFog(new Color3f(color, color, color), 10.0f, 100.0f);
scene.addChild(fog);
// or
float color = 0.66f;
Fog fog = new ExponentialFog(new Color3f(color, color, color), 1.0f);
scene.addChild(fog);
I’ve tried various distance values. My box is 1x1x1 units and is about 5 units away from the camera.

