POV-Ray : Newsgroups : povray.general : Image Maps question : Re: Image Maps question Server Time
11 Aug 2024 21:15:43 EDT (-0400)
  Re: Image Maps question  
From: Ron Parker
Date: 5 May 1999 11:41:32
Message: <3730589c.0@news.povray.org>
On Tue, 4 May 1999 18:00:42 -0400, Mike Metheny <lon### [at] vtedu> wrote:
>Then I tried using a radial
>texture, which was looking fine, except that it seemed there was a double
>image, still front facing, of the logo on the *inside* of the bottle (since
>the bottle is hollow and glass this is showing up) right behind the original
>logo, looking like a shadowed effect. 

Yep, you're right, you'll get that double image both with radial and with
map_type 2.  What you can do about it is use the wood or cylindrical patterns 
in a pigment map to control where the image map appears as a function of 
radius.  

If you have a bottle whose radius is ro and whose inner radius is ri, for
example, and if it's aligned with the Y axis and centered on the origin,
you would do this:

pigment {
  cylindrical pigment_map {
    [(ro+ri)/2/ro image_map {...}]
    [(ro+ri)/2/ro color rgbt 1]
  }
  scale <ro,1,ro>
}

Of course, if your bottle is curved significantly (e.g. has a narrow
'waist') in the area where the label will be applied, this will not 
work and you'll have to fall back on the 'decal' approach.


Post a reply to this message

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