POV-Ray : Newsgroups : povray.binaries.images : No caustics (50kbbu) : No caustics (50kbbu) Server Time
3 Oct 2024 00:31:38 EDT (-0400)
  No caustics (50kbbu)  
From: Greg M  Johnson
Date: 2 Mar 2000 15:58:10
Message: <38BED4E1.DC1CAE4D@my-dejanews.com>
Could someone help me tweak this code to get real caustics?


#include "colors.inc"
#version unofficial MegaPov 0.4;
  global_settings {    assumed_gamma 2.2
    //hf_gray_16
  }

global_settings{
  photons{
        count 200000000  // count 20000
    //autostop .01
    jitter .4
//    spacing 1
  }
}

  camera {
   location <0,10,-26>      look_at <-3,-3,-2>
    angle 30
  }

background{Blue}
 light_source { <200, 200, 10> color White*0.75}

#declare ck=6;

light_source {
    <0, 0.02, 0>
    color White*2
   photons {
    global
    refraction on
    reflection on
}
  }
isosurface{
        function{
        "sphere",<3>
        }
        accuracy 0.001
         threshold 0.10
          contained_by
                         {
                      sphere{0,3.5}
                      }

           clipped_by
                        {
                        sphere{0,3.4}
                      }
        interior{
        ior 1.5
        }
        pigment{rgbft <1,.9,.9,1,1>}
        finish{ambient 0.2 reflection 0.15
        blinn 1 facets .2 }
          photons {
    target
    refraction on
    reflection on
    ignore_photons
  }
      rotate <0,0,0>
        hollow
        }

plane{y,-6
        //normal {bumps scale 0.01}
        pigment{
        function {noise3d(x,y,z)}
                  color_map {
                                [ 0.0 color  rgb <0,0,1>]
                                [0.68 color rgb <0,0,1> ]
                                [ 0.72 color rgb <0,1,.1>]
                                [ 0.28 color rgb <0,1,.1>]
                                 }
        }
        }


Post a reply to this message


Attachments:
Download 'nocaust.jpg' (50 KB)

Preview of image 'nocaust.jpg'
nocaust.jpg


 

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