POV-Ray : Newsgroups : povray.binaries.images : Sky simulation : Re: Sky simulation Server Time
30 Jul 2024 00:20:53 EDT (-0400)
  Re: Sky simulation  
From: William F Pokorny
Date: 7 Jun 2013 06:24:26
Message: <51b1b4da$1@news.povray.org>
On 06/07/2013 03:36 AM, scott wrote:
> I've created a macro called SkySim (I'll post it in p.b.s-f once I've
> tidied it up and added comments) that creates a realistic looking sky
> pigment in a sky_sphere based on the sun position and the "haziness" of
> the sky.
>
> The algorithm used is from this paper:
>
> www.cs.utah.edu/~shirley/papers/sunsky/sunsky.pdf
>
> It is the same algorithm used by the open-source software Stellarium, so
> I already had a starting point in code for the POV version.
>
> If you also use "sunpos.inc" to get the sun position then you can create
> the correct sky based on just the longitude/latitude and time of day
> (this is how I've done it in the test scene).
>
> The renders below are from the test scene with an isosurface ground and
> fog, however I've patched my version of POV so that the fog colour
> matches the sky_sphere and is not a constant colour. I think this gives
> a realistic perception of depth and renders very quickly.
>
> Obviously in a real scene you may want to add clouds, but I hope it's a
> useful starting point for a realistic looking sky.

Not a tool I have in my tool box and one I would like to have. I look 
forward to trying your macro.

Bill P.


Post a reply to this message

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