POV-Ray : Newsgroups : povray.newusers : Image map on a sphere : Re: Image map on a sphere Server Time
5 Nov 2024 11:18:46 EST (-0500)
  Re: Image map on a sphere  
From: Ken
Date: 19 Sep 1999 23:46:45
Message: <37E5ADA4.E83D4E28@pacbell.net>
Duke Nukem wrote:
> 
> I'm trying to render a picture of the earth. But, the image I'm using
> for the map only covers half of the sphere. So, there are 2 copies of
> the image, one on each half of the sphere. I want to wrap the whole
> image around the entire sphere just once.
> 
> The help file doesn't help me on this one. Any assistance is
> appreciated. Thanks.

sphere { <0,0,0>, 0.5
 pigment {
  image_map {gif "earth.gif" map_type 1 interpolate 2 }
   translate -0.5
 }
 scale < your scale >
}

map_type 1 gives spherical image mapping. The default is type 0 which is planer.

-- 
Ken Tyler

See my 1000+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

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