|
|
Christopher James Huff <cja### [at] earthlinknet> wrote in
news:cja### [at] netplexaussieorg
> Rafal: look at the optics.pov demo scene.
Ok, and in btw - minimal scene to reproduce my problem :
camera { location <0,9,-8> look_at 0 angle 70 }
#declare UseMedia = 1; // <====
#declare UsePhotons = 1; // <====
#if (UsePhotons) global_settings { photons { spacing .005 media 100 } } #end
light_source { y*5 rgb .5 shadowless } // fill-light
plane { y,0.01 pigment { checker rgb .7 rgb .8 } finish { diffuse .6 } }
light_source { // spot
<0,9,0> rgb 1 spotlight point_at <0,0,0>
radius 10 falloff 10+10 tightness 3
}
box { // glass box
-1,+1 scale 2*<1,.05,1> rotate -y*20 translate <2,3,0>
pigment { rgbt 1 } // <---
interior { ior 1.5 } normal { bozo .5 scale .4 }
photons { refraction on target on } hollow
}
#if (UseMedia) // media - dust box
box {
<-5,-1,-5>, <+5,8,+5>
pigment { rgbt 1 } // <---
interior { media {
samples 100
scattering { 1 rgb .1 extinction 0 }
} }
hollow // <---
}
#end
Using media is ok, using photons is ok, but using them both gives problem.
--
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M
Post a reply to this message
|
|