POV-Ray : Newsgroups : povray.newusers : Image map on a sphere Server Time
28 Nov 2024 20:43:12 EST (-0500)
  Image map on a sphere (Message 1 to 6 of 6)  
From: Duke Nukem
Subject: Image map on a sphere
Date: 19 Sep 1999 23:34:23
Message: <37e5a955.27331941@news.povray.org>
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.


Post a reply to this message

From: Ken
Subject: Re: Image map on a sphere
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

From: Ken
Subject: Re: Image map on a sphere
Date: 20 Sep 1999 02:16:03
Message: <37E5D0A2.24C850DD@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.

I was just notified of a tutorial on this subject and it is excellent.
Check it out at: http://members.xoom.com/yang4yang/pov/imap1.html

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

From: Nieminen Juha
Subject: Re: Image map on a sphere
Date: 20 Sep 1999 06:43:21
Message: <37e60fc9@news.povray.org>
Actually this subject is covered in the VFAQ:

http://www.students.tut.fi/~warp/povVFAQ.html#imagemapping

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ken
Subject: Re: Image map on a sphere
Date: 20 Sep 1999 09:45:02
Message: <37E639DD.4C9F943C@pacbell.net>
Nieminen Juha wrote:
> 
>   Actually this subject is covered in the VFAQ:
> 
> http://www.students.tut.fi/~warp/povVFAQ.html#imagemapping

You might consider adding a link to this tutorial to that explaination.
It is accurate and well written and would really add to the value
of the content of the explaination.

http://members.xoom.com/yang4yang/pov/imap1.html

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

From: Nieminen Juha
Subject: Re: Image map on a sphere
Date: 20 Sep 1999 11:21:50
Message: <37e6510e@news.povray.org>
Added.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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