POV-Ray : Newsgroups : povray.advanced-users : map_type 1 : Re: map_type 1 Server Time
24 Apr 2024 12:17:06 EDT (-0400)
  Re: map_type 1  
From: clipka
Date: 24 Jul 2018 04:55:35
Message: <5b56e987$1@news.povray.org>
Am 24.07.2018 um 10:30 schrieb Mike Horvath:
> On 7/24/2018 3:54 AM, clipka wrote:
>> Am 24.07.2018 um 02:51 schrieb Mike Horvath:
>>> If I apply an image_map to an ellipsoid using map_type 1, will the
>>> effect be like what is pictured? (See attachment.)
>>
>> Yes.
>>
> 
> Next obvious question: Is there a way to tweak the map and make it
> conform to an ellipsoid? E.g. perpendicular to the ellipsoid's tangents?

You can scale the pigment. If you scale it vertically by the quotient of
the ellipsoid's minor and major diameters d/D (or if you create the
object as a pigmented sphere and then turn it into an ellipsoid by
scaling), you'll get the same effect as projecting from the sphere to
the ellipsoid vertically.

If you scale it vertically by a factor somewhere between 1 and d/D,
you'll get other projections from sphere to ellipsoid, though I'm not
sure if any one of them happens to match the projection you've depicted.

If all else fails, you can roll your own projection by using the new
`user_defined` pattern, and employ functions that fetch their values
from suitable locations in the original image map (via the pattern
function mechanism).


Post a reply to this message

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