POV-Ray : Newsgroups : povray.general : transparency gradient? Server Time
12 Aug 2024 17:15:29 EDT (-0400)
  transparency gradient? (Message 11 to 15 of 15)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Spider
Subject: Re: transparency gradient?
Date: 16 Feb 1999 14:41:06
Message: <36C9C856.9919F4E5@bahnhof.se>
I really agree with you, and it works far better twith filter than with
transmit in a gray/white or a colour mixture other than solid colours.
but, I used red, since I had a red colour_map ready, and because I like
the colour.

//Spider

"Lars W." wrote:
> 
> Hi
> 
> I think it the Ken Map would work better if you are not just fading from red to
> transparent red.
> Try to fade to transparent White.
> 
> I mean the following
> 
> color_map {
>     [0 color rgbf <1,0,0,0>]
>                 ...                            <- i still don't know why it is
> nesscesary to make multiple entrys ?
>     [1 color rgbf <1,1,1,1>]
>     }
The multiple entries in the beginning are made so that it will be solid
at a certain area, Therby preventing a transparenccy in the top, and
colour in the bottom. I still don't understand why mr Tyler did the
multiple entries, but I am sure he had a very good reason to do it.

//Spider


Post a reply to this message

From: Spider
Subject: Re: transparency gradient?
Date: 16 Feb 1999 14:41:27
Message: <36C9C89C.82258148@bahnhof.se>
Marc Schimmler wrote:
> 
> Hi Warp1
> 
> Thank you for your answer!
> 
> I checked your solution and changed it in two ways.
> 
> First a height of 1 for the cylinder leads to the repeating of the
> gradient so that both ends are opaque. By using y*0.999 I avoided this.

play some with the waveforms here. scallop_wave and sine_wave are nice.

> Second, the effect I was looking for is more the solution spider had
> given using the rgbt instead of the rgbf.
> 
//Spider

-- 
#declare life = rand(seed(42))*sqrt(-1);


Post a reply to this message

From: Bob and Kelly Crispen
Subject: Re: transparency gradient?
Date: 16 Feb 1999 22:10:28
Message: <36CA32AC.76320E69@hiwaay.net>
Ken wrote:

>   // #Ken       = 1
>   // #indenting = 0
> 
>   cylinder{<0,-1,0>,<0,1,0>,1
>   pigment{gradient y color_map{
>   [0.1 rgbf<1,1,1,1.0>]
>   [0.1 rgbf<1,1,1,1.0>]
>   [0.2 rgbf<1,1,1,0.9>]
>   [0.3 rgbf<1,1,1,0.8>]
>   [0.4 rgbf<1,1,1,0.7>]
>   [0.5 rgbf<1,1,1,0.6>]
>   [0.6 rgbf<1,1,1,0.5>]
>   [0.7 rgbf<1,1,1,0.4>]
>   [0.8 rgbf<1,1,1,0.3>]
>   [0.9 rgbf<1,1,1,0.2>]
>   [1.0 rgbf<1,1,1,0.0>]}
>   translate -.5 scale 2}
>   scale<1,2,1>}

Sorry, you didn't start in column 7.
--
Bob & Kelly Crispen
cri### [at] hiwaaynet
"Verbosity leads to unclear, inarticulate things."
-- Vice President Dan Quayle, 11/30/88


Post a reply to this message

From: Bob Hughes
Subject: Re: transparency gradient?
Date: 18 Feb 1999 17:43:03
Message: <36CC975C.191D089F@aol.com>
Guess any veteran pover will know you typo'd the 1.8 in there. But for
any newbies coming across this thread, 0.8 is correct for the value in
the next to the last bracket.
Extreme indenting, btw, Ken. Your spaces must be enormous in that font
<sarcasm>.


Ken wrote:
> 
> An untested example:
> 
>                               cylinder{
>                              <0,-1,0>,
>                             <0,1,0>,
>                            1
>                           pigment{
>                          gradient y
>                        color_map{
>            [0.0 rgbf<1,1,1,1.0>]
>            [0.0 rgbf<1,1,1,1.0>]
>            [0.2 rgbf<1,1,1,0.8>]
>            [0.2 rgbf<1,1,1,0.8>]
>            [0.4 rgbf<1,1,1,0.6>]
>            [0.4 rgbf<1,1,1,0.6>]
>            [0.6 rgbf<1,1,1,0.4>]
>            [0.6 rgbf<1,1,1,0.4>]
>            [0.8 rgbf<1,1,1,0.2>]
>            [1.8 rgbf<1,1,1,0.2>]
>            [1.0 rgbf<1,1,1,0.0>]
>                                  }
>                       translate -.5
>                                     }
>                                       }
> 
> How is my indenting now people ?
> 
> --
> Ken Tyler
> 
> mailto://tylereng@pacbell.net

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/POVring.htm
 mailto:inv### [at] aolcom?PoV


Post a reply to this message

From: Bob Hughes
Subject: Re: transparency gradient?
Date: 18 Feb 1999 17:48:53
Message: <36CC98BD.A8E6520F@aol.com>
There's also the more usual method of specifying a greater than 1 (ie.
1.01) for the final color_map entry to keep from having a repeat at the
pov unit.


Marc Schimmler wrote:
> 
> Hi Warp1
> 
> Thank you for your answer!
> 
> I checked your solution and changed it in two ways.
> 
> First a height of 1 for the cylinder leads to the repeating of the
> gradient so that both ends are opaque. By using y*0.999 I avoided this.
> 
> Second, the effect I was looking for is more the solution spider had
> given using the rgbt instead of the rgbf.
> 
> I will post at binaries.images two cylinders that show the difference.
> 
> Again, thank you
> 
> Marc
> --
> Marc Schimmler

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/POVring.htm
 mailto:inv### [at] aolcom?PoV


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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