POV-Ray : Newsgroups : povray.animations : Fading objects in an animation. : Re: Fading objects in an animation. Server Time
28 Jul 2024 14:31:31 EDT (-0400)
  Re: Fading objects in an animation.  
From: Chris Colefax
Date: 7 Oct 1999 10:19:13
Message: <37fcabe1@news.povray.org>
Matt <mat### [at] wctcnet> wrote:
> What would be the easiest way to fade in/out a single object in a
> scene?  (I have a tiled floor that I would like to just fade out over a
> few frames.)  Any help and suggestions would be greatly appreciated.

Perhaps you could look at the Automatic Clock Modifier macros; this will let
you map textures to clock values, eg:

    #declare Checkers = texture {
        pigment {checker rgb 0, rgb 1}}
        normal {bumps .1}
        finish {phong .4 reflection .2}}

    #declare Clear = texture {pigment {rgbt 1}}

    plane {y, 0 texture {
        Texture_From (0.1, Checkers)
        Texture_To (0.9, Clear)}}
        }

In this example the texture goes from the checkered at clock = 0.1 to
completely transparent at clock = 0.9.  Of course any clock values may be
used, and the list can have as many texture entries as you like.  Also,
using the clock modification features you can make the fade accelerate,
decelerate, wave, repeat, etc.  The file is available from my site:

   http://www.geocities.com/SiliconValley/Lakes/1434

and a tutorial by Steve Strickland can be found at:

    http://www.puzzlecraft.com/cm/ClockMod.html


Post a reply to this message

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