POV-Ray : Newsgroups : povray.newusers : Why doesn't this work? : Re: Why doesn't this work? Server Time
1 May 2024 18:35:11 EDT (-0400)
  Re: Why doesn't this work?  
From: Bald Eagle
Date: 8 Sep 2014 09:05:01
Message: <web.540da8a73faefec35e7df57c0@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> For media *always* use intervals 1 (default; like method 3) and *only*
> one parameter for samples (second parameter ignored). Confidence and
> variance are default values so you can comment them out.

Thanks as always, Thomas - but I seem to be having some fundamental problem
that's preventing it from working.  Your code gives me the same troublesome
behaviour when _I_ run it.
POV-Ray 3.7, WinXP, 2GB, 640x480 aa0.3, +q9

Full code below.


#version 3.7;
global_settings{ assumed_gamma 1.0 }

#include "debug.inc"
 Set_Debug (true)
#include "colors.inc"
#include "textures.inc"
#include "glass.inc"
#include "metals.inc"
#include "golds.inc"
#include "stones.inc"
#include "woods.inc"
#include "shapes.inc"
#include "shapes2.inc"
#include "functions.inc"
#include "math.inc"
#include "transforms.inc"

#declare Feet = 12;


  #declare Camera_Position = < 0, 150, -50*Feet> ;  // front view
  #declare Camera_Look_At  = < 0, 150,  0.00> ;
  #declare Camera_Angle    =  65 ;

camera { location Camera_Position
        right    x*image_width/image_height
        angle    Camera_Angle
        look_at  Camera_Look_At
 }


light_source {<25*Feet, 100*Feet, -100*Feet> color rgb <1, 1, 1>*0.4}

/*
sky_sphere{ pigment{ gradient <0,1,0>
                     color_map{ [0   color rgb <1, 1, 1>         ]//White
                                [0.4 color rgb <0.14, 0.14, 0.56>]//~Navy
                                [0.6 color rgb <0.14, 0.14, 0.56>]//~Navy
                                [1.0 color rgb <1, 1, 1>         ]//White
                              }
                     scale 2 }
           } // end of sky_sphere

*/



box {<-300, 0, 100>, <300, 400, 101> pigment {Gray50}}
//sphere {<0, 0, 0> 100 pigment {rgbf <0.6, 0, 0, 0.9>} translate y*270}
//light_source {<0, 270, 10> color rgb <1, 1, 1>}


sphere {<0, 270, 0>, 10 hollow
  pigment {color rgbf <1, 1, 1, 1>}
  finish { ambient 0 diffuse 0 }
  interior {
   media {
    emission color rgb<1.0,0.75,0.1>*1.75
    intervals 1
    samples 100
    //confidence 0.9999
    //variance 1/100
    density {spherical
     ramp_wave
     turbulence 0.15
     color_map {
      //[0.0 color rgb <0.0,0.0,0.0>]
      [0.6 color rgb <0.8,0.3,0.0>]
      [0.9 color rgb <1.0,0.8,0.3>]
      [1.0 color rgb <1.0,1.0,0.1>]
      }  //  end color_map
     scale <1,3.5,1>
     }  //  end of density
    }  //  end of media
   }  // end interior
  }  //  end sphere

/*
sphere {<0, 270, 0>, 1
 pigment {rgbt 1} hollow
 interior {
  media {
   emission 1
   intervals 1
   samples 100
   density {spherical
    density_map {
     [0 rgb 0]
     [0.0 rgb <1,0,0>]
     [0.8 rgb <1,1,0>]
     [1 rgbf 1]
     }  // end density map
    }  // end density block
   }  // end media block
  //media {absorption 0.2}
  }  // end interior
 }  // end sphere
*/

/*
sphere {<0, 270, 0>, 100 hollow
 pigment {color rgbf <1, 1, 1, 1>}
 finish { ambient 0 diffuse 0 }
 interior {
  media {
   emission color rgb<1.0,0.75,0.1>*1.75
   intervals 9
   samples 1, 20
   confidence 0.9999
   variance 1/100
   density {spherical
    ramp_wave
    turbulence 0.15
    color_map {
     //[0.0 color rgb <0.0,0.0,0.0>]
     [0.6 color rgb <0.8,0.3,0.0>]
     [0.9 color rgb <1.0,0.8,0.3>]
     [1.0 color rgb <1.0,1.0,0.1>]
     }  //  end color_map
    scale <1,2.5,1>
    }  //  end of density
   }  //  end of media
  }  // end interior
 }  //  end sphere
*/


/*
sphere {<0, 270, 0>, 100
 pigment {rgbt 1} hollow
 interior {
  media {
   emission <1,1,1>
   intervals 3
   samples 1, 1 //min,max
   } // end of media ---
  } // end of interior
  //translate <0, 1.00, 0>
} //----- end of sphere
*/


Post a reply to this message

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