POV-Ray : Newsgroups : povray.newusers : color to transparency Server Time
29 Nov 2024 08:23:49 EST (-0500)
  color to transparency (Message 1 to 5 of 5)  
From: J  Vicente
Subject: color to transparency
Date: 26 Jan 1999 06:09:00
Message: <36ADA1E5.ABAF22EA@hotmail.com>
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

From: Ken
Subject: Re: color to transparency
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

From: Spider
Subject: Re: color to transparency
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

From:
Subject: Re: color to transparency
Date: 26 Jan 1999 14:07:15
Message: <36ae1263.0@news.povray.org>
The wireframe part can be created with compressed mesh macro from Chris
Colefax

Istvan
csi### [at] usanet
http://csi.findhere.com


Post a reply to this message

From: J  Vicente
Subject: Re: color to transparency
Date: 29 Jan 1999 06:20:15
Message: <36B19908.EFDEC7B9@hotmail.com>
Thanks for all your helpful suggestions.

J. Vicente


Post a reply to this message

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