POV-Ray : Newsgroups : povray.programming : fog flag to fade to sky_sphere/background color : fog flag to fade to sky_sphere/background color Server Time
18 Apr 2024 22:31:56 EDT (-0400)
  fog flag to fade to sky_sphere/background color  
From: scott
Date: 29 May 2013 11:51:39
Message: <51a6240b$1@news.povray.org>
Would there be much interest in adding a flag to the fog object that 
uses the scene background colour (eg from sky_sphere or background) as 
fog_color rather than a constant? This would be useful to make objects 
in the scene automatically fade into the background colour.

I think trace.cpp could be be modified to achieve this (I haven't tested 
it yet). In TraceRay fog would not be applied if no object is 
intersected - ie just the colour from ComputeSky is used. If an object 
is found then the result from ComputeSky is passed to ComputeFog and 
that colour is used as the fog colour (rather than the colour from the 
fog object).

Do you think this is a good idea, or any issues with the above way of 
patching POV?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.