POV-Ray : Newsgroups : povray.animations : Transparent appearing image in animation : Re: Transparent appearing image in animation Server Time
26 Apr 2024 18:40:52 EDT (-0400)
  Re: Transparent appearing image in animation  
From: Robert McGregor
Date: 23 Mar 2011 12:00:00
Message: <web.4d8a181b9053a2dde804a4b20@news.povray.org>
"Giuela" <mgi### [at] selex-sicom> wrote:
> In my animation I need to show an image which is transparent and very few
> visible in the beginning, and gradually becomes less transparent brighter. I've
> tried with the 'filter' and 'transmit' keywords, but I haven't the result I
> expect; with filter 1 the image is too much visible, and I want it to appear
> gradually.
>
> I know that the .png images can have the information about transparency , that
> is I can decide how many transparent can be a determinate color, but when I use
> this image as image_map texture, Pov-Ray tells me that I can't do it, because
> the image isn't a mapped image. The .gif image is too low resolution color.
>
> For my animation I thought to use the same image with different brightness and
> transparency, but for the reasons above described, I can't do.
>
> Has someone suggest me how can I do?
>
> Thanks

Use transmit all in the image map, e.g.:

#declare TRANS_AMT = 0.5;
plane { z, 0
   pigment {
      image_map { jpeg "myfile.jpg" once transmit all TRANS_AMT }
      translate -0.5
      scale x*1600/1200  // set apect ratio: image width/image height
   }
   finish { ambient 1 emission 1 diffuse 0 }
}

----------------------------------------------------------
www.McGregorFineArt.com


Post a reply to this message

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