|
![](/i/fill.gif) |
"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
|
![](/i/fill.gif) |