POV-Ray : Newsgroups : povray.newusers : layered textures and transparent gifs : Re: layered textures and transparent gifs Server Time
5 Nov 2024 17:24:41 EST (-0500)
  Re: layered textures and transparent gifs  
From: Hughes, B 
Date: 11 Jul 2003 17:41:24
Message: <3f0f2f04$1@news.povray.org>
"David" <dh2### [at] iucrorg> wrote in message
news:web.3f0e7f374965b1c45c8e72650@news.povray.org...
> I have just come back to povray after about 7 years and it just seems to
get
> better and better!

Welcome back. Quite a hiatus from POV-Ray, glad you found your way to here.

> I wish to apply a texture and put a gif on top with some transparent
> (filtered) colours. However, this does not seem to work - please help.
>
> Ths colour (#140) is transparent if I comment out the first texture but
> shows up in the second.

It could be that index 140 isn't pure white (in POV terms being:
<255,255,255>/255) and so not doing as you might be expecting. The keyword
'transmit' might be needed, instead of 'filter'.

> texture {
>       pigment {
>    granite
>    colour_map {
>     [0.0 colour rgb <0.95,0.98,1>]
>     [0.2 colour rgb <0.95,0.98,1>]
>     [0.4 colour rgb <0.92,0.93,0.97>]
>     [0.8 colour rgb <0.89,0.92,0.95>]
>     [1.0 colour rgb <0.95,0.98,1>]
>    }
>   }
> }
> texture {
>         pigment {
>                 image_map {
>                            gif "logo3.gif" once
>                            filter 140, 1.0
>                            }
>                 rotate <0,-90,0>
>                 scale 1
>                 translate <0,4.2,0.35>
>                }
> }
>
> I am using version 3.5 Unix (.Linux.gcc)


Post a reply to this message

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