POV-Ray : Newsgroups : povray.programming : photons : photons Server Time
28 Jul 2024 06:15:48 EDT (-0400)
  photons  
From: Rafal 'Raf256' Maj
Date: 4 Oct 2002 13:37:24
Message: <Xns929DC7599AAE0raf256com@204.213.191.226>
Hellow,
I want to get information about all places where photons hit some 
object(s).

I have scene like (ascii-art) :


light   photons  /\
* - - - > - - - -\/ metall ball
                /|
               / |
              /  |
  -----------*---*------- plane y=0
            A1   A2

photon bounces off reflecive ball and lands on plane in point A1
I want to have all points A1,A2...An in some i.e. disc file.

I alsow want all additional informations i.e. how big/bright is the spot 
that this photon created (i.e. scene with count 5 will have 5 very bright 
and large spots, and count 10000 will give nice shape created from many 
small spots).

IMHO there are 2 possibilities 
1. to interprate binary data created by photons { save_data }
2. to add in sources function to fprintf(...) data into some file in text 
format.

1 - where can I find description of this format ?
2 - is there some function that is called whenever photon hit's an surface 
(during shooting photons) ?

        


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

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