POV-Ray : Newsgroups : povray.programming : fog flag to fade to sky_sphere/background color : Re: fog flag to fade to sky_sphere/background color Server Time
6 Jun 2023 21:58:47 EDT (-0400)
  Re: fog flag to fade to sky_sphere/background color  
From: scott
Date: 7 Jun 2013 09:32:12
Message: <51b1e0dc$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?
> A while back I wrote an SDL version of something similar to what you're talking
> about, sans background support (which wouldn't have made much sense). Using it
> is... not very easy. Every object taking part in the fog has to have its texture
> wrapped in a special macro. The camera position needs to be tracked. Creating
> and/or converting sky pigments requires special macros. It could easily become a
> nightmare when trying to combine it with other scene-management-intensive
> activities like texture baking.
> So yeah, I'd be interested :)

Sample images are in p.b.i

Post a reply to this message

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