POV-Ray : Newsgroups : povray.newusers : image map : Re: image map (cylindrical warping) Server Time
27 Sep 2024 03:29:19 EDT (-0400)
  Re: image map (cylindrical warping)  
From: bob h
Date: 16 Jun 2002 12:07:20
Message: <3d0cb7b8@news.povray.org>
"Simon Adameit" <gom### [at] gmxde> wrote in message
news:3d0c135d@news.povray.org...
>
> You need to scale before you apply the warp.

Thanks Simon, that sure seems to be the answer all right.


camera {
  location  <1,2,-4>
  right     x*image_width/image_height
  look_at   <0,0,0>
  angle 50
}

light_source {
        <-30,30,-30>,
        1
}

plane {
  y, -0.001
  texture {
    pigment { checker color rgb <1,1,0> color rgb <0,1,0> }
  }
}

cylinder {
  0, y, 1
  texture {
    pigment {
      image_map {
        png "testlabel2.png" // a 314 wide by 50 high image
        interpolate 2
        once
        filter 215, 2/3
      }
        scale <.25,.25,1>
        translate y/2
      warp {
        cylindrical
        orientation z
        dist_exp 0
        }
      rotate 120*y
    }
  }
}

Something strange happens with the cylinder here. Looks like coincident
surfaces to me except it also reverses the checker pattern of the floor
plane, as seen through that otherwise invisible cylinder. Only the label has
texture, no 'ior' in that.

bob h


Post a reply to this message

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