POV-Ray : Newsgroups : povray.binaries.images : Earth at night (17K) Server Time
19 Oct 2026 11:37:59 EDT (-0400)
  Earth at night (17K) (Message 1 to 17 of 17)  
From: Jon Berndt
Subject: Earth at night (17K)
Date: 28 Nov 2000 17:29:19
Message: <3a2431bf@news.povray.org>
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



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>
}


Post a reply to this message


Attachments:
Download 'earth.jpg' (17 KB)

Preview of image 'earth.jpg'
earth.jpg


 

From: Matt Giwer
Subject: Re: Earth at night (17K)
Date: 29 Nov 2000 19:33:20
Message: <3A25A050.E43B7CA8@ij.net>
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

From: Pabs
Subject: Re: Earth at night (17K)
Date: 30 Nov 2000 01:13:12
Message: <3A25F050.67A00570@hotmail.com>
All I can say is WOW
& That is my new wallpaper


Post a reply to this message

From: Jon S  Berndt
Subject: Re: Earth at night (17K)
Date: 30 Nov 2000 06:46:55
Message: <3A263E6F.C8B86721@hal-pc.org>
Matt Giwer wrote:
> 
>         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.

You are most welcome. It seemed like the kind of picture somebody surely must be
able to use!

>         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.

I considered this, too, and, given the right daytime earth image, I might
eventually try it, as well. Post your results when you get something. I'd like
to see it.

I was trying to think of how it could be most realistically done. Would a
layered texture work? I don't know.

There does exist a daylight version of the nighttime pic I posted the URL for.
If I can find it I'll post the URL for that, as well.

Jon

-- 
--------------------------------------------------------------

Jon S. Berndt
League City, Texas
jsb### [at] hal-pcorg

--------------------------------------------------------------


Post a reply to this message

From: Kevin Wampler
Subject: Re: Earth at night (17K)
Date: 30 Nov 2000 12:38:31
Message: <3A269050.114FC44D@u.arizona.edu>
I was thinking about this too, and I think that using either a gradient texture or a
slope-dependent texture map to blend between the light and the dark image maps would
probably work fairly well.


Post a reply to this message

From: Jon Berndt
Subject: Re: Earth at night (17K)
Date: 30 Nov 2000 14:31:35
Message: <3a26ab17@news.povray.org>
I'd like to try it so that you can model it closer to reality: that is,
letting your light source "sun" illuminate the globe so that on the night
side you see the lights, but on the day side you see the surface details and
coloration. I think this might be done by using a modified version of the
nighttime earth bitmap, making everything but the lights transparent. Then,
layer that with the earth photo bitmap (with the nighttime earth bitmap on
the "outside"). Set up the finish properties so that on the lit (day) side
the colored bitmap is overwhelmingly visible, but on the unlit side (night)
the nighttime city lights are overwhelmingly visible.

That may not be quite right, but I can't help thinking there must be a way
to do it.

Look here:

http://www.fourmilab.ch/cgi-bin/uncgi/Earth/action?opt=-p

http://livingearth.com/LE/LivEarthImg.html

I know that picture is online somewhere...

"Kevin Wampler" <wam### [at] uarizonaedu> wrote in message
news:3A269050.114FC44D@u.arizona.edu...
> I was thinking about this too, and I think that using either a gradient
texture or a
> slope-dependent texture map to blend between the light and the dark image
maps would
> probably work fairly well.
>


Post a reply to this message

From: Bob H 
Subject: Re: Earth at night (17K)
Date: 30 Nov 2000 16:19:05
Message: <3a26c449@news.povray.org>
Does look neat.  I missed it before because of the leading text (inline image after
it).
I did a rotating Earth with night time map from one of my satellite images CDs a while
ago.  Never uploaded it
though.

Bob

"Pabs" <pab### [at] hotmailcom> wrote in message news:3A25F050.67A00570@hotmail.com...
> All I can say is WOW
> & That is my new wallpaper


Post a reply to this message

From: Matt Giwer
Subject: Re: Earth at night (17K)
Date: 30 Nov 2000 16:40:52
Message: <3A26C963.D4144729@ij.net>
"Jon S. Berndt" wrote:
> 
> Matt Giwer wrote:
> >
> >         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.
> 
> You are most welcome. It seemed like the kind of picture somebody surely must be
> able to use!
> 
> >         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.
> 
> I considered this, too, and, given the right daytime earth image, I might
> eventually try it, as well. Post your results when you get something. I'd like
> to see it.
> 
> I was trying to think of how it could be most realistically done. Would a
> layered texture work? I don't know.

	When I get to it, just a plain image map. Daylight on one, night on the
other. If I just shift them 0.00001 or so along an imaginary line
connecting noon with midnight and one is mathematically "above" the
other. 

> There does exist a daylight version of the nighttime pic I posted the URL for.
> If I can find it I'll post the URL for that, as well.

	I'd love to have the original of that one posted as an image on a
related website. 

-- 
It's not as though Rocker had to say No. 7 train
to know he was talking about New York City.
	-- The Iron Webmaster, 22


Post a reply to this message

From: Jon Berndt
Subject: Re: Earth at night (17K)
Date: 30 Nov 2000 18:02:42
Message: <3a26dc92@news.povray.org>
> > There does exist a daylight version of the nighttime pic I posted the
URL for.
> > If I can find it I'll post the URL for that, as well.
>
> I'd love to have the original of that one posted as an image on a
> related website.

I now have one in my clutches. But, it's a couple MB in size. Probably too
big to post here. I need a volunteer to take it and put it on an FTP server.

Jon


Post a reply to this message


Attachments:
Download 'earth.jpg' (19 KB)

Preview of image 'earth.jpg'
earth.jpg


 

From: Jon Berndt
Subject: Re: Earth at night (17K)
Date: 30 Nov 2000 18:09:24
Message: <3a26de24$1@news.povray.org>
> I now have one in my clutches. But, it's a couple MB in size. Probably too
> big to post here. I need a volunteer to take it and put it on an FTP
server.

I was wrong. I compressed it with low loss in .jpg format. I now have:

1) Earth_day.jpg   ~900Kb
2) Earth_night.jpg   ~600Kb

Should I post them separately, here, or what?

Jon


Post a reply to this message

From: Matt Giwer
Subject: Re: Earth at night (17K)
Date: 30 Nov 2000 22:55:39
Message: <3A27213C.25A6D1BE@ij.net>
Jon Berndt wrote:
> 
> > > There does exist a daylight version of the nighttime pic I posted the
> URL for.
> > > If I can find it I'll post the URL for that, as well.
> >
> > I'd love to have the original of that one posted as an image on a
> > related website.
> 
> I now have one in my clutches. But, it's a couple MB in size. Probably too
> big to post here. I need a volunteer to take it and put it on an FTP server.

	I volunteer. I have DREAMHOST. 

-- 
<a href="http://www.giwersworld.org/holo2/holo-faq.phtml">This is
where I come from and have been.</a>
	--	The Iron Webmaster, 157


Post a reply to this message

From: Matt Giwer
Subject: Re: Earth at night (17K)
Date: 30 Nov 2000 22:56:44
Message: <3A27217C.64A2424D@ij.net>
Jon Berndt wrote:
> 
> > I now have one in my clutches. But, it's a couple MB in size. Probably too
> > big to post here. I need a volunteer to take it and put it on an FTP
> server.
> 
> I was wrong. I compressed it with low loss in .jpg format. I now have:
> 
> 1) Earth_day.jpg   ~900Kb
> 2) Earth_night.jpg   ~600Kb
> 
> Should I post them separately, here, or what?

	I can't answer that but email to me is fine. 

-- 
Strong drink is evil. It makes you shoot 
at revenooers and miss. 
	-- The Iron Webmaster, 243


Post a reply to this message

From: Kevin Wampler
Subject: Re: Earth at night (17K)
Date: 1 Dec 2000 02:19:51
Message: <3A2750CF.CF7E5AC3@u.arizona.edu>
It's a pretty basic scene (and mostly copied from your earlier post), but
hopefully it might be of some help.

#version unofficial MegaPov 0.5;

#include "colors.inc"

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 }

#declare Day = texture {
  finish {
    ambient 1
    diffuse 0
  }
  pigment {
    image_map {
      png "earth-land.png"
      map_type 1
      interpolate 2
    }
  }
}

#declare Night = texture {
  finish {
    ambient 1
    diffuse 0
  }
  pigment {
    image_map {
      png "earth_night.png"
      map_type 1
      interpolate 2
    }
  }
}

sphere {
  <0, 0, 0>, .5
  texture {
    slope <-8, 1.5, 5>
    texture_map {
      [0 Night]
      [.425 Night]
      [.575 Day]
      [1 Day]
    }
  }
  rotate <0,-140,0>
  scale 2
  translate <0,1,0>
}


Post a reply to this message


Attachments:
Download 'earth2.jpg' (19 KB)

Preview of image 'earth2.jpg'
earth2.jpg


 

From: Kevin Wampler
Subject: Re: Earth at night (17K)
Date: 1 Dec 2000 03:39:06
Message: <3A276363.31C5D92F@u.arizona.edu>
Oh, I probably should say, that although this is a cheat, it's pretty easy to
use.      Just set the vector after slope to be the position of the light
minus the position of the center of the sphere.  If you actually want to do a
realistic job with the lights, you might see if you can write a Megapov macro
that scans over the sphere testing points, then uses eval_pigment (is that
what it's called?) to test if a point corresponds to a light, in which case it
places a small glow there.  You could even use the trace function to see if
the point is shadowed, so you only put lights on the shadowed side.  This
would probably be pretty slow though, and seems like too much effort when
something far simpler does (in my opinion) a pretty good job.


Post a reply to this message

From: Jon S  Berndt
Subject: Re: Earth at night (17K)
Date: 1 Dec 2000 06:43:02
Message: <3A278F34.25B96882@hal-pc.org>
Kevin Wampler wrote:
> 
> It's a pretty basic scene (and mostly copied from your earlier post), but
> hopefully it might be of some help.

Very nice. Now, there are two things left to do:

1) Make the blue (all the water) pigment transparent and let a water texture
show through that would properly reflect solar illumination,

2) put in some clouds

There is a web site that posts a global satellite photo of just clouds every
three hours. Wrap the earth in another sphere slightly larger with the clouds
and another transparent color.

I may try it, but again, that is a little beyond my capabilities.

Jon

--
-------------------------------------------------------
Jon S. Berndt
League City, Texas
jsb### [at] hal-pcorg
-------------------------------------------------------



Post a reply to this message

From: Kevin Wampler
Subject: Re: Earth at night (17K)
Date: 1 Dec 2000 13:32:44
Message: <3A27EE86.1DF39E19@u.arizona.edu>
Check out http://www.btinternet.com/~consty/render/render_f.htm I think it has
exactly what you want, and there's a sample pov file included.


Post a reply to this message

From: Jon Berndt
Subject: Re: Earth at night (17K)
Date: 1 Dec 2000 15:12:10
Message: <3a28061a$1@news.povray.org>
"Kevin Wampler" <wam### [at] uarizonaedu> wrote in message
> Check out http://www.btinternet.com/~consty/render/render_f.htm I think it
has
> exactly what you want, and there's a sample pov file included.

Which has a link that points, here:

http://maps.jpl.nasa.gov

Jackpot!

Jon


Post a reply to this message

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