Erik Hofman wrote:
> Matevz Jekovec wrote:
> >
> >>Frederic Bouvier writes:
> >>
> >>
> >>>For the fog, it is sunset now at SF and I am facing the sun : I am
> >>>seeing no fog. If I rotate the view in order to put the sun out of
> >>>the window, the fog reappears.
>
> > I compiled the CVS version today and I'm confirming the fog problem.
> > When you look somehow to the sun (including if you fly away and just pan
> > with the hat), the fog disappears and then reapears when you turn to the
> > certain angle.
>
> This shouldn't be happening.
> Could you confirm that after a make clean; make install in the
> SimGear/simgear/scene/sky directory and remaking fgfs the problem still
> exists?

I confirm. And the patch below solve the problem.

--- main.cxx    31 Jul 2003 14:47:56 -0000      1.117
+++ main.cxx    14 Aug 2003 21:32:35 -0000
@@ -736,6 +736,9 @@

             // return to the desired diffuse color
             ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, l->scene_diffuse );
+
+            // return to normal fog density
+            glFogf ( GL_FOG_DENSITY, fog_exp2_density );
         }

         // draw the ssg scene

-Fred



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to