POV-Ray : Newsgroups : povray.general : Media oddity rgbf vs rgbft vs rgbt : Re: Media oddity rgbf vs rgbft vs rgbt Server Time
4 Aug 2024 20:12:54 EDT (-0400)
  Re: Media oddity rgbf vs rgbft vs rgbt  
From: Mark Weyer
Date: 13 Feb 2003 11:00:58
Message: <3E4BC41E.3050904@informatik.uni-freiburg.de>
Tom Melly wrote:
> Overlapping media containers behave v. differently if the container pigment is
> rgbft 1.
> 
> rgbf 1 and rgbt 1 behave identically as far as I can see.

You do not need media or overlapping to have rgbt 1 different from
rgbtf 1. rgbtf 1 takes the light that goes through, multiplies it with
filter and with color and adds the light that goes through multiplied
with transmit. So the light that goes through is doubled. That's why I
have color.6 in the signature.

Below is a modification of your scene that shows this.

I do not know, though, why some of your spheres get darker.



global_settings{
   assumed_gamma 1.0
}

camera { location <0,0,-7> look_at 0}

sphere{
   0,1
   pigment{rgbf 1}
   hollow
   scale 1.001
   translate x*-0.5
   translate y*2
}

sphere{
   0,1
   pigment {rgbf 1}
   hollow
   translate y*2
}

sphere{
   0,1
   pigment{rgbt 1}
   hollow
   scale 1.001
   translate x*-0.5
}

sphere{
   0,1
   pigment {rgbt 1}
   hollow
}

sphere{
   0,1
   pigment{rgbft 1}
   hollow
   scale 1.001
   translate x*-0.5
   translate y*-2
}

sphere{
   0,1
   pigment {rgbft 1}
   hollow
   translate y*-2
}

box {<-0.5,-5,1> <0,5,2> pigment {color <1,1,1,0,0>} finish {ambient 1/4}}


-- 
max_trace_level 256media{absorption.02}camera{location<1,.3,1.7>}sphere{0
.8pigment{color.6}interior{media{emission<2,2,-2>absorption 2}}hollow}#macro
p(f,n)plane{n f-1finish{reflection<f,1f>}}#end p(1y)p(1z-x)p(-1,-z)p(1x-y)
// Mark Weyer


Post a reply to this message

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