POV-Ray : Newsgroups : povray.advanced-users : Help with special density for blob: getting my feet wet : Re: Help with special density for blob: getting my feet wet Server Time
28 Jul 2024 14:24:03 EDT (-0400)
  Re: Help with special density for blob: getting my feet wet  
From: Mike Williams
Date: 10 Jan 2005 23:43:36
Message: <hStLLCAqg14BFwqw@econym.demon.co.uk>
Wasn't it wade who wrote:
>Hello,
>
>I am trying to get my blob to behave like cell walls: where the surface is
>parellel to the plane of projection the wall looks pritty much clear and as
>the wall bends towards perpendicular to the plane of projection the wall
>becomes more opaque. I don't know if I'm being clear. Glass is simmilar.
>
>I tried density maps but I dont know how to use them correctly I think.

That sounds a bit like the Angle Of Incidence pattern available in
MegaPOV but not in Official POV-Ray. Except it doesn't happen with
glass.

The value returned by this pattern is proportional to the angle between
a certain ray and the (perturbed) normal at the surface of the object.
So you can use a colour_map to vary the transparency.

  pigment {aoi
    colour_map {
      [0.1 rgbt <.3,.5,0,1>]
      [0.5 rgbt <.3,.5,0,0>]
    }
  }

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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