|
![](/i/fill.gif) |
On 04/18/2011 11:02 PM, awestover wrote:
> Maybe I'm not fully understanding photons and the light source, this is my first
> pov ray program.
>
> What I came up with after your post was
>
> global_settings{
> photons{
> spacing 0.05 autostop 0
> }
> }
>
> light_source {
> <-5, -3, -8>
> color rgb<1, 1, 1>
> translate<-5, 5, -5>
> spotlight
> point_at<0,0,0>
> radius 10
> photons {
> refraction on
> reflection on
> }
>
> }
>
>
> camera {
> location<-15,10,-40>
> look_at<3,-2,0>
> angle 60
> }
>
> difference {
> box {
> <-4,-2,-8>,<4,2,8>
> }
> plane {
> <0,-1,0>,-1 rotate<0,0,60>
> }
> plane {
> <0,-1,0>,-1 rotate<0,0,-60>
> }
> hollow on
> pigment {
> color rgbt<.8,1,.9,.7>
> }
> finish{
> reflection{
> 0.01 1 fresnel
> }
> conserve_energy
> }
> interior {
> ior 1.5 dispersion 1.03
> dispersion_samples 12
> }
> photons{
> target refraction on reflection on
> }
> }
>
> This makes a good triangular prism and the photons make it look good, but there
> is still no visible light entering the prism/rainbow exiting. Am I doing
> something wrong with the light source?
>
>
>
>
The simple media tutorial beginning here:
http://wiki.povray.org/content/Documentation:Tutorial_Section_3.6#Simple_Media_Tutorial
will get you going with the media that you need to make the light
visible ;-)
Post a reply to this message
|
![](/i/fill.gif) |