POV-Ray : Newsgroups : povray.newusers : Create a globe : Re: Create a globe Server Time
29 Jul 2024 08:15:47 EDT (-0400)
  Re: Create a globe  
From: Chris B
Date: 4 May 2006 05:43:49
Message: <4459ccd5$1@news.povray.org>
"Sanix" <nomail@nomail> wrote in message 
news:web.4459c0de5e5702f3c2ceb9180@news.povray.org...
> Hello everybody
> I want to create a globe. But I don't know how to do that. Is it difficult
> to create a sphere and put the image around this sphere and then it's 
> done?
> I'm not sure because I've already downloaded a script but it doesn't work.
> Maybe I'm using it wrongly. The image doesn't fit to the sphere
> (http://planetpixelemporium.com/images/earthmaps/earthmap1k.jpg):
>

No it's not difficult.

camera {location  <-1,1,-1> look_at <0,0.5,0> angle 50}
light_source {<30, 10, -300> color rgb 2}

sphere {<0,0.5,0>,0.5
  pigment {
    image_map {jpeg "earthmap1k.jpg" map_type 2}
  }
}

gives a cylindrical mapping (map_type 2) which I think is probably right for 
this image.
For some images you may need a spherical mapping (depending on the type of 
projection used for the image). For example:

camera {location  <-3,1,-3> look_at <0,0,0> angle 50}
light_source {<30, 10, -300> color rgb 2}

sphere {0,1
  pigment {
    image_map {jpeg "earthmap1k.jpg" map_type 1}
  }
}

map_type 1 gives a spherical mapping of an image centred at the origin.

Regards,
Chris B.


Post a reply to this message

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