POV-Ray : Newsgroups : povray.newusers : Filters With Texture : Re: Filters With Texture Server Time
4 Nov 2024 12:59:28 EST (-0500)
  Re: Filters With Texture  
From: Mike Williams
Date: 13 Aug 2003 00:12:11
Message: <VtWZ1DAfpbO$Ewk7@econym.demon.co.uk>
Wasn't it Brent G who wrote:
>Here's my code:
>difference {
>         box {
>                 <-2, -1, 0.1>, <2, 1, 1>
>                 texture { T_Stone10
>                           color filter clock }
>         }
>         text {
>                 ttf "timrom.ttf" "Text" 0.15, 0
>                 pigment { BrightGold
>                           color filter clock }
>                 finish { reflection .25 specular 1 }
>                 translate -1.05*x
>         }
>}
>
>Which is What I want to do, but isnt' valid.  What I'm trying to do is 
>change the transparency of the objects for an animation so they fade in 
>over the course of the animation. clock goes from 0 to 1.

I just found a neat trick for dealing with complicated textures like
T_Stone10. Take an average of T_Stone10 with Clear, varying the ratios
of the two component textures as the clock changes.

         box {
                 <-2, -1, 0.1>, <2, 1, 1>
                 texture { 
                   average
                   texture_map {
                     [clock   T_Stone10]
                     [1-clock pigment {Clear}]
                   }
                 }
         }

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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