POV-Ray : Newsgroups : povray.general : Placing png as semi-transparent image in front of pov object Server Time
1 Nov 2024 19:14:39 EDT (-0400)
  Placing png as semi-transparent image in front of pov object (Message 1 to 4 of 4)  
From: Greg M  Johnson
Subject: Placing png as semi-transparent image in front of pov object
Date: 31 Jul 2004 17:39:26
Message: <410c118e$1@news.povray.org>
I"ve forgotten how to do this.   I actually have images where I have an
image mostly transparent in front of my object. But it's not working now.



    box{<0,0,-0.0001>,<1,1,-0.0002>
      texture{
                pigment{ image_map {jpeg "w_myimage_gr.jpg"
                                filter all 0.9999
                                map_type 0 once }
                        }
               finish{diffuse 0 ambient 1}
               }
        scale 45*<320/400,1,1>
          no_shadow
        translate -39*z-23*x+54*y}


Post a reply to this message

From: Slime
Subject: Re: Placing png as semi-transparent image in front of pov object
Date: 31 Jul 2004 19:03:22
Message: <410c253a@news.povray.org>
> I"ve forgotten how to do this.   I actually have images where I have an
> image mostly transparent in front of my object. But it's not working now.

Screen.inc may be the easiest solution.

In any case, we'd probably have to see your camera declaration to figure out
what's wrong (unless the problem isn't the position of the image, but the
appearance).

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Placing png as semi-transparent image in front of pov object
Date: 31 Jul 2004 21:56:02
Message: <410c4db2$1@news.povray.org>
Okay thanks. but what worked was making a GIF and then:

    box{<0,0,-0.0001>,<1,1,-0.0002>
       texture{
                pigment{ image_map {gif "w_mygif_gri.gif"
                                //filter all 0.9999
                                transmit all 0.9900625
                                map_type 0 once }
                        }
               finish{diffuse 0 ambient 1}
               }
        scale 45*<320/400,1,1>
          no_shadow
        translate -39*z-23*x+51*y}


Post a reply to this message

From: Thomas de Groot
Subject: Re: Placing png as semi-transparent image in front of pov object
Date: 1 Aug 2004 05:27:47
Message: <410cb793$1@news.povray.org>
"Greg M. Johnson" <gregj;-)565### [at] aolcom> schreef in bericht
news:410c118e$1@news.povray.org...
> I"ve forgotten how to do this.   I actually have images where I have an
> image mostly transparent in front of my object. But it's not working now.
>
>
>
>     box{<0,0,-0.0001>,<1,1,-0.0002>
>       texture{
>                 pigment{ image_map {jpeg "w_myimage_gr.jpg"
>                                 filter all 0.9999
>                                 map_type 0 once }
>                         }
>                finish{diffuse 0 ambient 1}
>                }
>         scale 45*<320/400,1,1>
>           no_shadow
>         translate -39*z-23*x+54*y}
>
Your image seems to be jpg. Will not work AFAIF. With png (or tga) you can
define a transparant alpha channel.

Thomas


Post a reply to this message

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