POV-Ray : Newsgroups : povray.unofficial.patches : Still mucking around with photons Server Time
1 Nov 2024 03:15:29 EDT (-0400)
  Still mucking around with photons (Message 1 to 1 of 1)  
From: Tom Melly
Subject: Still mucking around with photons
Date: 18 Jul 2001 06:12:04
Message: <3b5560f4$1@news.povray.org>
I've managed to reduce my photons problem to a fairly small scene (below). It
all seems very odd - particularily the count of 500 being okay, but not 50 or
5000. If count is 0 or ommited, what value for count/spacing is used? (this
seems to be the most reliable fix for this scene).

#version unofficial MegaPov 0.7;
#include "colors.inc"

global_settings{
  photons{
//    count 0     // ok - also okay if count is ommitted
//    count 50000 // bad
//    count 5000  // bad
//    count 500   // ok
//    count 50    // bad
    autostop 0
    jitter 0.01
  }
}

// ----------------------------------------

#declare myRadius = 500;
#declare myHeight = 200;

// use either light
// light_source{0 rgb 1 translate <0, myHeight*2, 0>}
light_source{0 color rgb 2 spotlight translate y*500 point_at 0 radius 5
tightness 50 falloff 5}

camera{location <0,myHeight/2,-20> look_at <0,myHeight/2,0>}
sky_sphere{pigment{wrinkles scale 0.1 pigment_map{[0 White][1 Blue]}}}

plane{y,1  pigment{Yellow}}
cylinder{
  0, y*myHeight,myRadius
  open
  hollow
  pigment{Yellow}
}

box{
  <-(myRadius + 1),-1,-(myRadius + 1)>,<(myRadius + 1),1,(myRadius + 1)>
  pigment {color rgbt 1}
  translate y*myHeight
  photons {target refraction on reflection on}
}

sphere{0,5 pigment{Yellow} translate<0,myHeight/2,0>}

--
#macro G(D,E,F)#local I=array[3]{D,E,F}#local B=0;triangle{#while(
B<3)#while(I[B])A[mod(I[B],10)]+#local I[B]=div(I[B],10);#end<-5,-
2,9>#local B=B+1;#end}#end #local A=array[7]{x,x*2,x*4,y,y*2,y*4,z
}light_source{-x*6-z*9,1}mesh{G(105,10,146)G(105,246,10)G(105,56,
146)G(105,1256,246)G(1256,126,220)G(22156,2216,201)pigment{rgb 1}}//TM


Post a reply to this message

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