This is a quick example of how I would blend the two images for Earth,
but it needs a lot of tweaking, the maps dont' line up exactly and the
terminus of the shadow is too strict, right now there's too much
contrast.
Here is the snippet of relevant code:
#declare day = texture {
pigment {image_map {png "earth-land.png" map_type 1 interpolate 2} }
finish { diffuse 0.3 brilliance 0.1 ambient 0}
rotate 90*y}
#declare night = texture {
pigment {image_map {tga "earthnight.tga" map_type 1 interpolate 2} }
finish { ambient 0.2 }
rotate 90*y }
sphere { 0.0, 1
texture {radial
texture_map { [0.0 day ]
[0.3 day ]
[0.6 night ]
[1.0 night ] }
rotate 0*y}
}
--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/
Post a reply to this message
Attachments:
Download 'nightandday.jpg' (26 KB)
Preview of image 'nightandday.jpg'
|