POV-Ray : Newsgroups : povray.text.scene-files : photons and media? Server Time
1 Nov 2024 01:20:56 EDT (-0400)
  photons and media? (Message 1 to 2 of 2)  
From: paul
Subject: photons and media?
Date: 23 May 2002 07:27:33
Message: <3cecd224@news.povray.org>
version 3.5
#include "colors.inc"

global_settings {
        photons {
                max_trace_level 20
                count 200000
                autostop 0
                jitter 0.4
                 }}
camera {
        location <0,12,-7>
        right <-4/3,0,0>
        up <0,1,0>
        look_at <0,1,0>}
light_source {
        <20,2,0>
        rgb <1,1,1>*5
        cylinder
        parallel
        point_at <0,1,0>
        radius 2
        falloff 6
photons{
        refraction on
        reflection on}
        media_interaction on
        media_attenuation off}
/*light_source {
        <10,2,0>
        rgb <0,0,1>
        photons{
                refraction on
                reflection on}}
light_source {
        <10,2,0>
        rgb <1,0,0> 
        photons{
                refraction on
                reflection on}
        }
*/
sky_sphere {pigment {color rgb 0}}
// the scene


plane {
        y,-2 
        texture{
                pigment{color Gray }
                normal {granite scale <10,1,10>}
                finish{ 
                        ambient 0.2
                        diffuse 0.7
                        reflection 0.1
                        phong 1
                        phong_size 250}}}

#declare lens = 
sphere {
        <0,1,0> 2  interior{ior 1.2 dispersion 1.1 }  
        texture {
                pigment { color White filter 1}
                
                
                finish {
                        ambient 0
                        diffuse 0
                        
                        
                        reflection .2
                        
                        
                        phong 1
                        phong_size 250}}
                photons {
                        
                        collect on
                        target  
                        refraction off
                        reflection off
                        }}

object {lens scale .75*x}
box { <-10,-2,-10> <10,5,10>  hollow pigment {rgbt 1}
        interior {
                media{
                        method 2
                        intervals 15
                        samples 5,5
                        
                        scattering {2, rgb .2 extinction .0001}}}}
                        
plane {x,-10 pigment {color red 1}}


Post a reply to this message

From: Slime
Subject: Re: photons and media?
Date: 24 May 2002 00:44:21
Message: <3cedc525$1@news.povray.org>
You have no media keyword in your global_settings photon block. See the
documentation.

Put "media 100" in there or something. The number is the maximum number of
photons allowed along one ray in the media. 100 is a good starting point.
Maybe less.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

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