POV-Ray : Newsgroups : povray.text.scene-files : Radiosity and Media Bug??? Server Time
2 Jun 2024 04:16:01 EDT (-0400)
  Radiosity and Media Bug??? (Message 1 to 2 of 2)  
From: anson chu
Subject: Radiosity and Media Bug???
Date: 30 Jul 2004 22:20:00
Message: <web.410b0054bdc9d646a123415d0@news.povray.org>
It seems a ray traced (from the camera) through the media (entering and then
exiting) is treated differently than one that hits the diffuse surface
directly when considering "radiosity" at a diffuse surface.  I tried to
debug this
myself but am having trouble tracking it down.  Is this a known bug, or Is
there a setting in the scene that could fix this???

* The attached image is rendered using my version of POV-Ray v3.6, where the
bounds of the media box container is visualized.

Below is the scene file:



#include "colors.inc"

global_settings
{
    assumed_gamma 1.0
    max_trace_level 5
    noise_generator 3

#if(1)
    radiosity
    {
        media on    // need this for interaction with media
        //pretrace_start 0.04
        //pretrace_end 0.01
        count 32
        recursion_limit 3
        nearest_count 10
        error_bound 0.5
        //normal on
    }
#end
}

background { color White }

//----------------------------------------------
// CAMERA
//----------------------------------------------
camera {
  location <2, 4, 12>
  look_at <0,1, 0>
  up <0,1,0>
  angle 60
}

//----------------------------------------------
// Media
//----------------------------------------------
box {
    <0,0,0>, <1,1,1>
    texture {
        pigment {color rgbf 1}
    }
 interior {
  media {
   scattering { 1, rgb 0.2}
   intervals 1
   samples 20
   method 3
  }
 }
    hollow
   scale <6,6,6>
   translate <-2,.3,0>
}

//----------------------------------------------
// GROUND
//----------------------------------------------
object {
    isosurface {
     function {y}
     contained_by {box {<-100,-3,-100>, < 100, 1, 100>}}
     texture {
            finish {
               ambient 0.0
               diffuse 1.0
               specular 0.0
            }
            pigment { color rgb <1,1,1> }
        }
    }
   hollow
}

//----------------------------------------------
//  WALL
//----------------------------------------------
box { <-2.0, -0.2, -2.0>, <2.0, 0.2, 2.0>
    finish {
       ambient 0.2
       diffuse 0.9
    }
    pigment { color rgb <1,1,1> }

    scale 5
    rotate <0, 0, -90>
    translate <-4,5,0>
}


Post a reply to this message


Attachments:
Download 'irradiance_test2.jpg' (15 KB)

Preview of image 'irradiance_test2.jpg'
irradiance_test2.jpg


 

From: anson chu
Subject: Re: Radiosity and Media Bug???
Date: 2 Aug 2004 16:50:01
Message: <web.410ea82b938f5fba123415d0@news.povray.org>
Nevermind =)  Problem was fixed by increasing the 'Max_Trace_Level'.


Post a reply to this message

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