POV-Ray : Newsgroups : povray.binaries.images : Earth at night (17K) : Re: Earth at night (17K) Server Time
19 Aug 2024 18:22:22 EDT (-0400)
  Re: Earth at night (17K)  
From: Kevin Wampler
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


 

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