POV-Ray : Newsgroups : povray.general : How to adjust image_map? : Re: How to adjust image_map? Server Time
18 Apr 2024 22:49:41 EDT (-0400)
  Re: How to adjust image_map?  
From: Alain Martel
Date: 22 Feb 2020 10:37:11
Message: <5e514aa7$1@news.povray.org>
Le 2020-02-20 à 23:25, Kima a écrit :
> Alain Martel <kua### [at] videotronca> wrote:
> 
>>> 2. map_type 2 makes a full wrap cylindrically. How can I make image_map half
>>> wrap or to a custom degree (instead of 360)?
>>
>> Scale the image along the X direction. For a half wrap, use
>> scale<0.5, 1, 1>
>>
>> For a specific number of degree, it's :
>>
>> scale<Degree/360, 1, 1>
>>
>>>
>>> By scale, we can control the image over the y-axis, but the scale on the x-axis
>>> has no effect.
>>>
>>>
> 
> I learned a lot from your tips, but I could not implement your approach for a
> half wrap. As I mentioned before, x-scale does not control the size as y-scale
> does.
> 
> Could you please elaborate on how you implement it?
> 
> In my case, scale<0.5,0.5, 1> leads to half-height but still full (360-degree)
> cylindrical wrap.
> 
> 

OK, my bad.
You need to use warp{cylindrical} for that purpose.
The default options are what you need, so, no need to add anything else 
than the warp itself.

It works like map_type 2, but allow the scaling that I proposed.

pigment{image_map{.... scale<0.5,1,1> warp{cylindrical} }}

Will wrap 180° from +X going counter clockwise.


Post a reply to this message

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