POV-Ray : Newsgroups : povray.advanced-users : Constraining an image map to a certain region of a sphere? : Re: Constraining an image map to a certain region of a sphere? Server Time
25 Jun 2024 03:01:17 EDT (-0400)
  Re: Constraining an image map to a certain region of a sphere?  
From: Alain
Date: 20 Jul 2013 12:38:34
Message: <51eabd0a$1@news.povray.org>


>> Hi(gh)!
>>
>> The problem: I want to project a square image_map, which is a
>> heightfield covering one square degree of ASTER elevation data, onto a
>> sphere, not onto the entire sphere, but instead onto the geographic
>> coordinate range defined by the elevation data tile.
>>


>> shall have the texture, all other parts of the sphere shall remain
>> textureless.
>
> applying spherical warp to a scaled-down version of the image map (with
> the "once" keyword) might do the trick.
>

Next, you may translate verticaly to apply the image to the correct 
latitude: translate sin(radians(Latitude))*y. For the longitude, a 
simple rotate Longitude*y will do.


Post a reply to this message

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