POV-Ray : Newsgroups : povray.animations : Transparent appearing image in animation Server Time
25 Apr 2024 07:34:31 EDT (-0400)
  Transparent appearing image in animation (Message 1 to 4 of 4)  
From: Giuela
Subject: Transparent appearing image in animation
Date: 23 Mar 2011 07:15:00
Message: <web.4d89d5e431c2f191c155f800@news.povray.org>
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


Post a reply to this message

From: Robert McGregor
Subject: Re: Transparent appearing image in animation
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

From: Leroy Whetstone
Subject: Re: Transparent appearing image in animation
Date: 30 Mar 2011 23:55:22
Message: <4D940932.2080809@joplin.com>
Giuela 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
> 
What I've done is have two set of images one of the animation and one of 
a still.
Then use average the two pigments per frame. I have a whole system on my 
web site http://leroywhetstone.s5.com/PovINC/LRfader.zip
Hope this helps!


Post a reply to this message

From: W0RLDBUILDER
Subject: Re: Transparent appearing image in animation
Date: 30 Apr 2011 20:50:00
Message: <web.4dbcad149053a2ddb6f0ad930@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
Add clock to transmit 0.
transmit 0+clock
It could be done more simply with
transmit clock
which simply uses clock as the transmit value. In this case transmit goes from 0
to 1, fading the material out. Subtracting clock from transmit would probably
fade it in.
transmit 1-clock


Post a reply to this message

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