POV-Ray : Newsgroups : povray.newusers : color to transparency : Re: color to transparency Server Time
6 Sep 2024 04:20:27 EDT (-0400)
  Re: color to transparency  
From: Ken
Date: 26 Jan 1999 06:20:44
Message: <36ADA4FF.F9062B07@pacbell.net>
J. Vicente wrote:
> 
> I may be showing my inexperience here, but that's only natural since I'm
> new to this!  ;))
> 
> I've seen a few images where a model is rebdered in a way that goes from
> color to tranparency and the wireframe shows through the transparent
> part. I would like to know if it is possible to do that with POV/Moray
> (I don't code yet).
> 
> If yes...how?
> 
> Thanks

I'm not sure about the wire frame part but here is an example
of a pigment that will go from clear to white.


pigment{
 gradient y
  color_map{
   [0 rgbf 0]
   [1 rgb  1]
 }
}

You can also have different parts of the same pigment
clear and solid. An example:

pigment{
 gradient y
  color_map{
   [ 0 rgbf 0]
   [.2 rgb  1]
   [.4 rgbf 0]
   [.6 rgb  1]
   [.8 rgbf 0]
   [ 1 rgb  1]
 }
}

-- 
Ken Tyler

tyl### [at] pacbellnet


Post a reply to this message

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