POV-Ray : Newsgroups : povray.newusers : Transparent label : Re: Transparent label Server Time
29 Jul 2024 06:14:33 EDT (-0400)
  Re: Transparent label  
From: NEWS
Date: 26 Jun 2006 04:40:11
Message: <449f9d6b$1@news.povray.org>
Your problem comes from that you apply an image map on a transparent bottle
(even if you use transparentpar of your label)
The problem you'll get is that the image is parse on the outside surface of
your bottle and also on the inside surface of the bottle ..(it's is not a
shadow that you see, but the inside projection of your label).

so. first solution is to build your label into a solide object and add it to
your bottle ..or

the Alain solution ..hollow object have no depth ..so no second image ..

or a mix one ..(a bootle into a hollow bottle) .;project your label on your
hallow bottle ..and texture your inner bottle as you wish ..
















news:web.449cc5d350bc555982bb0c420@news.povray.org...
> I am trying to make a transparent bottle with a transparent label (i.e. I
> want only the text of the label to be visible). When I trace the label
> without the bottle everything is OK, only the text is visible. However,
> when I trace this with bottle there is a distinct shadow on the surface of
> the glass where the transparent part of the label begin. How to get rid of
> this artefact?
>
> The label is produced by the following code:
> #declare label =
>    difference{
>     cylinder { <0,0,0>, <0,60,0>, 31.855
>        scale 0.1
>              }
>      cylinder{ <0,0,0>,<0,60,0>, 31.853
>          scale 0.1
>      }
>    pigment { image_map { gif "label.gif"
>                     map_type 2
>                     transmit 255, 1.0
>                     transmit 0, 0.01
>                     //once
>                     interpolate 2
>                     }
>       scale 20*y
>       rotate 84*y
>        translate -8.5*y
>    finish{
>            reflection 0
>            diffuse 0
>            ambient 0
>              }
> }
>
> The gif image is black text over the white background.
>
>
>
>
>
>
>


Post a reply to this message

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