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. Brian -----Original Message----- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] Behalf Of Nikolai V. Chr. Sent: Monday, August 11, 2003 2:55 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Odd Fog color behavior.... Brian Tarbox wrote: >I'm the color of Fog effect things it shouldn't. > >I have a wide/flat box (x=1000, y=1000, z=0.01) with a earth color acting as >a background. > >I then add a Fog with a min distance of 500 that's colored light blue. > >I see all of the background some combination of the two colors. The fog is >correctly making distant objects fuzzy looking, but it appears to be >contributing color at all distances. > >Is this expected behavior? It sure seems counter-intuitive. > > You are a bit vague. Please inform the exact parameters you use to create the fog. When you state 'all distances' do you also mean below 500? Where have you added the fog node to the scenegraph, in regard to the viewplatform and the background box? 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". =========================================================================== 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".