POV-Ray : Newsgroups : povray.advanced-users : Nightside lights : Re: Nightside lights Server Time
29 Jul 2024 08:18:20 EDT (-0400)
  Re: Nightside lights  
From: Christopher James Huff
Date: 4 Sep 2002 23:31:51
Message: <chrishuff-E21BEF.23311404092002@netplex.aussie.org>
In article <3D76BE51.50BF521B@pacbell.net>, Ken <tyl### [at] pacbellnet> 
wrote:

> Two spheres of equal size.
> 
> The first sphere with the daylight image. Intersect the sphere with a fixed 
> plane
> resulting with half a sphere - call it Left_Hemisphere
> 
> The second sphere with the night time image. Intersect the sphere with a 
> fixed plane
> resulting with half a sphere - call it Right_Hemisphere.
> 
> Now you have two half-spheres that look like one whole sphere.

It would be easier to just use the object pattern:

sphere {0, 0.5 
    pigment {
        object {plane {x, 0}
            pigment {image_map {tga "day_image.tga" map_type 1}
                rotate y*360*clock
            },
            pigment {image_map {tga "night_image.tga" map_type 1}
                rotate y*360*clock
            }
        }
    }
}

Alternatively, you could rotate the plane instead of the day/night 
pigments or textures.

If you want a smooth blend, maybe a gradient pattern would do the trick.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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