POV-Ray : Newsgroups : povray.newusers : transparent background : Re: transparent background Server Time
29 Jul 2024 00:23:41 EDT (-0400)
  Re: transparent background  
From: Tim Attwood
Date: 12 Mar 2007 04:49:42
Message: <45f52236$1@news.povray.org>
> The fog is necessary to create the nice 3D depth effect.  I suppose there 
> is
> no way to replicate this effect and also maintain transparency?

You can use gradient color maps to create a similar effect without fog.

// Depth Cue Red
#declare DC_Red = texture {
   pigment {
      gradient z
      color_map {
         [0 color <1,0,0>]
         [1 color <1,0,0>*0.05]
      }
      scale 2.1
      translate <0,0,-0.1>
   }
   finish {
      ambient 0.2
      diffuse 1
   }
};


Post a reply to this message

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