POV-Ray : Newsgroups : povray.general : Label on a Jar : Re: Label on a Jar Server Time
5 Aug 2024 14:14:16 EDT (-0400)
  Re: Label on a Jar  
From: Andrew Wilcox
Date: 3 Sep 2002 00:27:21
Message: <3d743a29@news.povray.org>
Yes, this worked great.

texture {
    pigment {
        image_map {
            png "AlienLabel2.png"
            once
            interpolate 2
        }
         scale <1/(2*pi*jarRad),1/2,1> // My image happens to be half as
tall as wide thus the 1/2
         scale 1/3
          warp { cylindrical }
          rotate -y*40
    }
}

Thanks Warp!


"Warp" <war### [at] tagpovrayorg> wrote in message
news:3d73e0d6@news.povray.org...
>   Try something like this:
>
>   pigment
>   { image_map { jpeg "label.jpg" once interpolate 2 }
>     scale <.2,1,1>
>     warp { cylindrical }
>   }
>
>
> --
> #macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb
M()}}
> N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
> N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  -
Warp -


Post a reply to this message

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