POV-Ray : Newsgroups : povray.newusers : Media, radiosity, and coffee : Media, radiosity, and coffee Server Time
2 Nov 2024 13:18:40 EDT (-0400)
  Media, radiosity, and coffee  
From: Matthew Pace
Date: 5 Feb 2004 01:43:33
Message: <matthewpace-9E3040.22433104022004@news.povray.org>
I am tired, and have been rendering this image every moment I get for 
the past few nights (very very little sleep lately).  I basically want a 
box, dark, with glowing strips on it, reflected below it.  I currently 
have the box glowing, but it is insufficient.   The lines emit light, 
sure enough, but there is no glow to them, so I added a sphere to the 
scene, with media in it (looking back now, I realize I could/should have 
used atmospheric media, but that should not effect the outcome.  The 
media does not show up at all, I have played with densities, types (mie 
haze, mie murkey, and type 1- whichever that was).  Yes, media is on in 
the radiosity block, but I cannot get my media to show up.  The 
reflection below the cube is darker, but I think this is more from the 
dark reflective surface and the fact that it is blurred.

Not only is this my first real scene using media and radiosity, it is 
the first scene I really am putting full effort behind.

Things I have checked:
   Sphere is within camera view
   Media is on
   Radiosity is effected by media
   

Below is first a link to the image so far, and below that is my source 
code.  My source is ugly, uncommented, and not optimized, so dont 
criticize me, because I already know.

Thanks for any input! (besides source code criticism)

image located at (small, aliased render)

http://atlas.walagata.com/w/mdpace/box.png

source code :

//matthew pace
//feb 1 2004




#version 3.5;
global_settings 
{
   radiosity 
   {
      pretrace_start 0.08          
      pretrace_end   0.04           
      count 35                    
      nearest_count 5               
      error_bound .8               
      recursion_limit 4             
      low_error_factor .5           
      gray_threshold 0.0            
      minimum_reuse 0.015           
      brightness 2                  
      adc_bailout 0.01/2
         media on                    
    }
}


declare MyOrange= color rgbf <.78,.55,.12,.4> ;
#declare CyRadius=.1;


camera
{
   location <7,6,7>
   look_at 0
}
light_source
{
   <3,5,6>
   color rgb .005
}


sphere
{
   <1.5,1.5,1.5> 8
   pigment
   {
      color rgbf 1
   }
   interior
   {
      media
      {  
         absorption .5
         emission <.2,.2,.05> 
         scattering
         {
            3 
            color rgb 1
         }
         density
         {
            bozo
               color_map
               {
                  [0 color rgb 0]
                  [.5 color rgb 0]
                  [1 color rgb 1]
               }
         }
      }
   }
}


plane
{
   y, -.25  
texture 
  { 
   average texture_map 
    {
      #declare K = 0; 
      #declare S = seed(17); 
      #while(K < 20) 
        [1
           pigment { color rgb 0 } 
           finish { reflection .8 metallic .6 } 
           normal 
           { 
               bumps .05 
               translate <rand(S)*1.5,rand(S)*2,rand(S)>*15 
               scale 1000 
           } 
        ]
        #declare K = K+1; 
      #end 
   }  
  } 
}

difference
{

   box
   {
      0,3
      pigment
      {
         color rgb .3
      }
      finish
      {
         reflection .5
      }
   }
   cylinder
   {
      <1,-1,0>,<1,4,0>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }
   }
   cylinder
   {
      <2,-1,0>,<2,4,0>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }
   }
   cylinder
   {
      <2,-1,0>,<2,4,0>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }
   }


   cylinder
   {
      <2,-1,0>,<2,4,0>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }
   }  
   cylinder
   {
      <2,-1,0>,<2,4,0>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }
   }

   
   cylinder
   {
      <3,-1,1>,<3,4,1>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   
   cylinder
   {
      <3,-1,2>,<3,4,2>,CyRadius
      pigment
      {
         color MyOrange
      }     
      finish
      {
         ambient 2
      }

   }
   
   cylinder
   {
      <2,-1,3>,<2,4,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   
   cylinder
   {
      <1,-1,3>,<1,4,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   
   cylinder
   {
      <1,3,0>,<1,3,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }

   cylinder
   {
      <2,3,0>,<2,3,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   
   cylinder
   {
      <0,3,1>,<3,3,1>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   
   cylinder
   {
      <0,3,2>,<3,3,2>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   
   cylinder
   {
      <1,-3,0>,<1,-3,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }

   cylinder
   {
      <2,-3,0>,<2,-3,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   
   cylinder
   {
      <0,-3,1>,<3,-3,1>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   
   cylinder
   {
      <0,-3,2>,<3,-3,2>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   cylinder
   {
      <0,1,0>,<3,1,0>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   cylinder
   {
      <0,2,0>,<3,2,0>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   cylinder
   {
      <3,1,0>,<3,1,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   cylinder
   {
      <3,2,0>,<3,2,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   cylinder
   {
      <0,1,3>,<3,1,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   cylinder
   {
      <0,2,3>,<3,2,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   cylinder
   {
      <0,1,0>,<0,1,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
   cylinder
   {
      <0,2,0>,<0,2,3>,CyRadius
      pigment
      {
         color MyOrange
      }
      finish
      {
         ambient 2
      }

   }
}


Post a reply to this message

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