|
![](/i/fill.gif) |
// BEGIN
/* FADER by Bob, for use with 'clock' variable */
// white pointlight at camera position
#declare LCX = 1;
#declare LCY = 3;
#declare LCZ = -10;
light_source { <LCX,LCY,LCZ> color rgb <1.5,1.5,1.5>
}
camera {
location <LCX,LCY,LCZ>
angle 22.5
look_at <0,0,0>
}
/* FADER [note: imortant factor is the equivalence to zero at onset of
fading ranges] */
#switch (clock)
#range (0,.25)
#declare Fade=1
#break
#range (.25,.5)
// the numbers within parenthesis need to equal 0 at first switch over
#declare Fade=1-((-.25+clock)*4) // 0.25 * 4 = 1
#break
#range (.5,.75)
#declare Fade=0
#break
#range (.75,1)
// the numbers within parenthesis need to equal 0 at first switch over
#declare Fade=0+((-.75+clock)*4) // 0.25 * 4 = 1
#break
#end
plane {y,-1
pigment {checker color rgb <1,1,0>*Fade color rgb <0,1,1>*Fade}
finish {ambient .25*Fade diffuse .75*Fade specular 1*Fade roughness .05
// do not use Fade on 'roughness'
reflection .3*Fade}
}
sphere {0,1 pigment {rgb<1,0,0>}}
// END
Bob
Matt <mat### [at] wctc net> wrote in message news:37FAD044.5C078306@wctc.net...
> 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.
>
> Matt
>
Post a reply to this message
|
![](/i/fill.gif) |