POV-Ray : Newsgroups : povray.newusers : color to transparency : Re: color to transparency Server Time
6 Sep 2024 04:22:03 EDT (-0400)
  Re: color to transparency  
From: Spider
Date: 26 Jan 1999 13:50:24
Message: <36AE0D61.5D59BD1B@bahnhof.se>
Welcome to the community!
AS for yyour question, the revered Ken seems to have answered it, and I'll only add a
little notation that I prefer..

when you do :
cylinder {
  <-5,0,0>,<5,0,0>,1
  pigment {
    gradient x
    colour_map {
      [0 rgbf <1, 0.8, 0.8, 0> ]
      [1 rgbf <1, 1, 1, 1> ]
    }
  }
}
You'll see it changes very quickly, and that th transparent part isn't exactly as good
as
you may like it(I usually want big areas transparent, and a smaller passing.)
Then this may be better :
cylinder {
  <-5,0,0>,<5,0,0>,1
  pigment {
    gradient x
    colour_map {
      [0/5 rgbf <1, 0.8, 0.8, 0> ]
      [2/5 rgbf <1, 0.8, 0.8, 0> ]
      [3/5 rgbf <1, 1, 1, 1> ]
      [5/5 rgbf <1, 1, 1, 1> ]
    }
  }
}

This will make a smooth passing, and still leave parts of the cylinder in solid
colour.
(oh, add this, for example. : turbulence <1.8,1.3,0.1> octaves 10 lambda 1.2 omega
1/14 )

//Spider
"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


Post a reply to this message

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