Thanks.  I can't make anything happen by setting draw-otw to 'false'
during run-time, though.  I've even tried hard-cding the draw_otw
variable to false in renderer.cxx.  The only way I can make it work is
to set it in preferences.xml, and then it's *always* false, so I have
no control over it.

I suppose I could set visibility to zero *and* set it to night time at
the same time, but that seems kind of hackish.

Also, it seems like I need to call
globals->get_subsystem("environment")->reinit() to make it foggy, and
fgInitTimeOffset() to make it dark.  It seems like I need to call a
function every time I change a property in order to make it happen. 
Is this the way it's intended to work, or am I doing things the hard
way?  Calling globals->get_render()->update() doesn't seem to do the
trick, though, for the "draw-otw" property.


On 4/20/05, Curtis L. Olson <[EMAIL PROTECTED]> wrote:
> Drew wrote:
> >I'm trying to find an easy way to make the screen go black in the
> >FlightGear window...sort of like a camera failure for a UAV.  Does
> >anyone know if there's a property I can adjust to do this, or where
> >the code can be modified?  Also, has anyone ever modeled 'static' in
> >the visual image to represent a camera image going bad?
> >
> >I tried updating the /sim/rendering/draw-otw property during run-time,
> >but that had no effect.  It only seems to work from preferences.xml,
> >but then the image goes white, not black.
> >
> >
> If you run at night it should go black ... basically you are seeing the
> fog color.  I don't know how to directly model static ... it's probably
> possible by rendering to a buffer and then postprocessing the buffer
> before displaying it.  You could play with the monitor cable maybe or
> even pipe the monitor output into a scan converter, pipe that into a
> wireless video transmitter, then on to a reciever and back to a video
> monitor ... you could play with object placement and shielding to get
> the necessary amount of static. :-)
> Curt.
> --
> Curtis Olson
> HumanFIRST Program
> FlightGear Project
> Unique text:        2f585eeea02e2c79d7b1d8c4963bae2d
> _______________________________________________
> Flightgear-devel mailing list
> 2f585eeea02e2c79d7b1d8c4963bae2d

Flightgear-devel mailing list

Reply via email to