POV-Ray : Newsgroups : povray.general : Converting Media Server Time
11 Aug 2024 05:19:48 EDT (-0400)
  Converting Media (Message 1 to 3 of 3)  
From: Mark Wagner
Subject: Converting Media
Date: 9 Sep 1999 01:34:43
Message: <37d746f3@news.povray.org>
I created the following media in the SuperPatch.  How do I convert it to a
normal POV-Ray media? (it should be possible)

#declare constant = function{ .01 }

#declare t_yellowgreen_int = interior{
 media{
  density{
   function constant
   color_map{
    [0 rgb .1]
    [1 rgb .1]
   }
  }
  emission <0.6, 1, 0.15>
  absorption <.4,0,0.85>
  samples 1,10
  confidence .9999
  variance 1/1000
 }
 ior 1.5
}


Mark


Post a reply to this message

From: Mike
Subject: Re: Converting Media
Date: 9 Sep 1999 02:37:32
Message: <37D753B3.EDB463D2@aol.com>
Uh, what's the density for?  Is it really constant?  I would assume that you
can just scale the values.

#declare t_yellowgreen_int = interior{
 media{
  emission .001*<0.6, 1, 0.15>
  absorption .001*<.4,0,0.85>
  samples 1,10
  confidence .9999
  variance 1/1000
 }
 ior 1.5
}


> I created the following media in the SuperPatch.  How do I convert it to a
> normal POV-Ray media? (it should be possible)
>
> #declare constant = function{ .01 }
>
> #declare t_yellowgreen_int = interior{
>  media{
>   density{
>    function constant
>    color_map{
>     [0 rgb .1]
>     [1 rgb .1]
>    }
>   }
>   emission <0.6, 1, 0.15>
>   absorption <.4,0,0.85>
>   samples 1,10
>   confidence .9999
>   variance 1/1000
>  }
>  ior 1.5
> }
>
> Mark


Post a reply to this message

From: Jerome M  BERGER
Subject: Re: Converting Media
Date: 9 Sep 1999 13:23:22
Message: <37D7ED10.F11B5E32@enst.fr>
Mike wrote:
> 
> Uh, what's the density for?  Is it really constant?  I would assume that you
> can just scale the values.
> 
> #declare t_yellowgreen_int = interior{
>  media{
>   emission .001*<0.6, 1, 0.15>
>   absorption .001*<.4,0,0.85>
>   samples 1,10
>   confidence .9999
>   variance 1/1000
>  }
>  ior 1.5
> }
> 
	Or rather:
#declare t_yellowgreen_int = interior{
 media{
  emission .1*<0.6, 1, 0.15>
  absorption .1*<.4,0,0.85>
  samples 1,10
  confidence .9999
  variance 1/1000
 }
 ior 1.5
}

	I believe that the function values are just used as indices when
looking into the color_map.

		Jerome

-- 
*******************************

* they'll tell you what can't * mailto:ber### [at] inamecom
* be done and why...          * http://www.enst.fr/~jberger
* Then do it.                 *
*******************************


Post a reply to this message

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