POV-Ray : Newsgroups : povray.binaries.scene-files : Fade in a complex mesh : Fade in a complex mesh Server Time
26 Apr 2024 01:07:50 EDT (-0400)
  Fade in a complex mesh  
From: SecondCup
Date: 27 Oct 2016 19:40:01
Message: <web.58128fbe543e276ef0b3ab370@news.povray.org>
Hi,

Any idea where I'm going wrong with this fade in? I want the CGL_band to be
transparent then fade in gradually with each animated shot. Ive got it to fade
to the gray un-textured solid, or Ive got it to fade into the texture from a
black silhouette but cant figure out how to fade in the whole thing from
transparent to fully visible...

Here is the code and the "CGL_solid.inc" is attached

#declare Sandy = color rgbt <1, .9, .35>;

#declare Transmit = .8;
#declare CM_Sandstone =

colour_map{
  [0.3 rgbt <1, 1, 1, 1.2*Transmit*(clock)>]
  [0.4 rgbt <1, 0, 0, Transmit*(clock)>]
  [0.41 rgbt <0.5, 0.3, 0.1, .5*Transmit*(clock)>]
  [0.42 rgbt <1, 0, 0, .75*Transmit*(clock)>]
  [0.6 rgbt <1, 0.5, 0, Transmit*(clock)>]
  [0.7 rgbt <1, 1, 1, .5*Transmit*(clock)>]


}

#declare FSandstone =
finish{
  diffuse 0.35 ambient 0.05
}

#declare TSandstone =
texture{
  pigment {Sandy
  turbulence 0.99}
  finish{FSandstone}
  normal {granite 5 scale 500}
}

#declare TStain = texture{
  pigment{
    //agate
    gradient <.3, 2, .1>//2
    turbulence 0.15
    colour_map{CM_Sandstone}
    scale 1000
  }
  finish{FSandstone}
}

#declare TSandstone1 =
texture{TSandstone}
texture{TStain}


//*********************************************
//
//               Include the solid from an external file
//
//*********************************************

#include "CGL_solid.inc"

object {CGLband
        texture {TSandstone1}
        translate <-723750,-422.035,-9092750>}


Post a reply to this message


Attachments:
Download 'cgl_solid.inc.txt' (99 KB)

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