|
|
Somehow my thick mind can't figure out how to use photons properly. Why
doesn't this object reflect light rays!!!???
-----------
#version 3.5;
#include "colors.inc"
#include "glass.inc"
#include "textures.inc"
global_settings {
// copied right from one of the examples
assumed_gamma 1
max_trace_level 25
photons {
spacing 0.03
autostop 0
jitter 0
}
}
camera {
// I want to look at angles, not perspective
// camera is straight overhead
orthographic
location <0, 50, 0> * .5
look_at <0,0,0>
}
light_source { //background lighting
<0, 30, 0>
color White *.25
}
box { // fog box
<10,-5,10>,<-10,5,-10>
pigment { White filter 1 }
hollow on
interior{
media {
scattering { 1, rgb 0.03}
intervals 1
samples 5
method 3
}
}
}
light_source { //spotlight
// i'd like to make this a laser
// if I could just figure out how
0*x
color Red * 10
cylinder
spotlight
translate <-20,1.0 ,0>
point_at <0, 1, 0>
radius .1
tightness 80
falloff 6
photons {
refraction on
reflection on
}
}
box { //mirror
<1,1,.01>
<-1,-1,-.01>
texture {
Polished_Chrome
finish {reflection .90}
}
scale <1,1,1> *7
photons {
target
reflection on
refraction off
collect off
}
rotate -y*45
}
---------------------
Alan Walkington
Post a reply to this message
Attachments:
Download 'test5.jpg' (23 KB)
Preview of image 'test5.jpg'
|
|
|
|
On Thu, 3 Apr 2003 21:15:03 -0500, Slime wrote:
> Your global settings photon block is missing the "media" keyword. Look up
> "media photons" in the docs.
>
> - Slime
> [ http://www.slimeland.com/ ]
Another note, there seems to be a quirk with the photons being collected by
the box. Adding photons { pass_through } to the media box object seems to
fix this.
--
light_source#macro G(E)sphere{z+E*y*5e-3.04rotate-z*E*6pigment{rgbt#end{
20*y-10#local n=162;1}#while(n)#local n=n-.3;G(n)x}}G(-n).7}}#end//GregE
Post a reply to this message
|
|
|
|
"Greg Edwards" <edw### [at] hotmailcomremovethis> wrote in message
news:1nncrrunn38wn.1p8x5471byuvh$.dlg@40tude.net...
> On Thu, 3 Apr 2003 21:15:03 -0500, Slime wrote:
>
> > Your global settings photon block is missing the "media" keyword. Look
up
> > "media photons" in the docs.
> >
> > - Slime
> > [ http://www.slimeland.com/ ]
>
> Another note, there seems to be a quirk with the photons being collected
by
> the box. Adding photons { pass_through } to the media box object seems to
> fix this.
Thank you!
That saved me from yanking out what little hair I have left!
Alan
>
> --
> light_source#macro G(E)sphere{z+E*y*5e-3.04rotate-z*E*6pigment{rgbt#end{
> 20*y-10#local n=162;1}#while(n)#local n=n-.3;G(n)x}}G(-n).7}}#end//GregE
Post a reply to this message
|
|