|
|
Jon Berndt wrote:
>
> Here is a picture that uses the nighttime earth image featured a couple of
> days ago on the Astronomy Picture of the Day web page. The image can be
> downloaded now at:
>
> http://antwrp.gsfc.nasa.gov/apod/image/0011/earthlights_dmsp_big.jpg
Thank you good sir, a thousand thank yous. May Allah bless you. That is
exactly the image I have been looking for, for a year now.
And since you post the code. I plan a daylight sphere and a night
sphere trivially displaced so that half is dark and half is light. And
that being animation material.
> Below is the simple code I used to generate it. Pretty basic, but it makes a
> nice picture, and a good background screen.
>
> // Persistence of Vision Ray Tracer Scene Description File
> #version 3.1
>
> #include "colors.inc"
>
> global_settings {
> assumed_gamma 1.0
> }
>
> camera {
> location <0.0, 3.5, -3.0>
> direction 1.5*z
> right 4/3*x
> look_at <0.0, 1.0, 0.0>
> }
>
> background { color Black }
>
> light_source {
> 0*x
> color White
> translate <-8, 3, 30>
> }
>
> sphere {
> <0, 0, 0>
> 0.5
> texture {
> finish {
> ambient 0.7
> diffuse 0.9
> }
> pigment {
> image_map {
> png "earthlights_dmsp_big.png"
> map_type 1
> interpolate 2
> }
> }
> }
> rotate <0,-140,0>
> scale 2
> translate <0,1,0>
> }
>
> [Image]
--
Kicking the crap out of Canadian Nationals is half the fun
in life. Who would imagine an ice hockey team in Tampa. I
do love the Hansen Brothers even though they are Canadians.
-- The Iron Webmaster, 174
Post a reply to this message
|
|