Brian Tarbox wrote:

Ok, here is the code:

Color3d fogColor = new Color3f(0.1f, 0.1f, 0.1f);
LinearFog fog = new LinearFog(fogColor, 500, 1000);
backgroundTransformGroup.addChild(fog);


This is the last TG added. What I see is that all items, anywhere in the scenegraph regardless of their distance from the viewer have their color effected. I would have expected only items between 500 and 1000 from the viewer to have their color effected by the fog.



You have not set an influenccing bounds, I think you need to do that:


fog.|*setInfluencingBounds(new BoundingSphere(new Point3d(),
Double.*||*MAX_VALUE*||*));*|

Beside from that I cannot see the error, are you sure that the distances
you observe really are what you think they are? Maybe you should double
check your transforms for scaling, it could be the walls are alot
farther away than you think.

Btw. You are not using any javax.media.j3d.Background are you? Because
if you are that could explain the error.

Regards
Nikolai

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to