POV-Ray : Newsgroups : povray.general : How to adjust image_map? : Re: How to adjust image_map? Server Time
19 Apr 2024 09:47:08 EDT (-0400)
  Re: How to adjust image_map?  
From: jr
Date: 20 Feb 2020 08:05:00
Message: <web.5e4e831b8411a31b451952ca0@news.povray.org>
hi,

"Kima" <nomail@nomail> wrote:
> I wrap an image over a lathe by
>
> lathe{
>   cubic_spline 8,
>      < 0.00, 0.00>,
>      < 0.60, 0.00>,
>      < 0.72, 0.44>,
>      < 0.31, 0.93>,
>      < 0.49, 1.26>,
>      < 0.48, 1.35>,
>      < 0.43, 1.56>,
>      < 0.16, 1.60>
>      texture{
>          pigment{
>              color rgb<1,0,0>
>          }
>      }
>      texture{
>          pigment{
>              image_map{
>                  png "image.png" map_type 2 interpolate 4 once
>
>              }
>
>          }
>      }
> }
>
> I have two problems:
>
> 1. image_map put the image on the object from the bottom (from south to north).
> Thus, if the image height is not enough to cover the object, it is always the
> top part, which is missing.
>
> How can I put the image from top to bottom or even on the middle (with respect
> to the y-axis)?

using your code as posted, I inserted:
pigment {
  image_map {...}
  rotate <270,0,0>
}

and the image covers the shape.  no ideas wrt second question.


regards, jr.


Post a reply to this message

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