POV-Ray : Newsgroups : povray.binaries.images : Cranial density really annoying! Server Time
16 Nov 2024 00:21:37 EST (-0500)
  Cranial density really annoying! (Message 1 to 5 of 5)  
From: Alan Walkington
Subject: Cranial density really annoying!
Date: 3 Apr 2003 19:34:07
Message: <3e8cd2ff@news.povray.org>
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'
test5.jpg


 

From: Slime
Subject: Re: Cranial density really annoying!
Date: 3 Apr 2003 21:15:15
Message: <3e8ceab3$1@news.povray.org>
Your global settings photon block is missing the "media" keyword. Look up
"media photons" in the docs.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Greg Edwards
Subject: Re: Cranial density really annoying!
Date: 3 Apr 2003 22:16:23
Message: <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.

-- 
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

From: Alan Walkington
Subject: Re: Cranial density really annoying!
Date: 4 Apr 2003 16:27:31
Message: <3e8df8c3$1@news.povray.org>
"Slime" <slm### [at] slimelandcom> wrote in message
news:3e8ceab3$1@news.povray.org...
> Your global settings photon block is missing the "media" keyword. Look up
> "media photons" in the docs.
>
>  - Slime
> [ http://www.slimeland.com/ ]

Yep ... obvious now you mention it!  Although it still didn't work 'till I
followed Greg's suggestion as well.

Thanks to both of you.
Alan


Post a reply to this message

From: Alan Walkington
Subject: Re: Cranial density really annoying!
Date: 4 Apr 2003 17:43:59
Message: <3e8e0aaf$1@news.povray.org>
"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

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