POV-Ray : Newsgroups : povray.advanced-users : Photons detection?! Server Time
3 Jul 2024 05:49:53 EDT (-0400)
  Photons detection?! (Message 1 to 8 of 8)  
From:
Subject: Photons detection?!
Date: 12 Mar 2008 09:30:00
Message: <web.47d7e7fcede45537dcf53ead0@news.povray.org>
Hi,




take. Is there somebody have an idea?

Thank you

Sylvain


Post a reply to this message

From: Jan Dvorak
Subject: Re: Photons detection?!
Date: 12 Mar 2008 10:31:45
Message: <47d7f761$1@news.povray.org>

> Hi,




> take. Is there somebody have an idea?
> 
> Thank you
> 
> Sylvain
> 
> 
> 
No. Photons are cast after the parsing is done so they cannot influence 
the parsing. The only possible way would be to parse the photons file 
using an external application. I don't understand its structure, though.


Post a reply to this message

From: M a r c
Subject: Re: Photons detection?!
Date: 12 Mar 2008 12:12:14
Message: <47d80eee$1@news.povray.org>

web.47d7e7fcede45537dcf53ead0@news.povray.org...
> Hi,
> I'm using POV-Ray to simulate a laser beam pointed to a screen. I'm also 
> using
> photons in my programming and I would like to know if it's possible to 
> detect
> photons on my screen. Does there exist any function for this? I'm looking 
> for a

> approach
> take. Is there somebody have an idea?
>
> Thank you
>
> Sylvain


trace() is the best way to test if a ray hits an object and to know the 
coordinates and normal of the intersection point.


Marc


Post a reply to this message

From: Jan Dvorak
Subject: Re: Photons detection?!
Date: 12 Mar 2008 12:42:55
Message: <47d8161f@news.povray.org>
M_a_r_c napsal(a):

> web.47d7e7fcede45537dcf53ead0@news.povray.org...
>> Hi,
>> I'm using POV-Ray to simulate a laser beam pointed to a screen. I'm also 
>> using
>> photons in my programming and I would like to know if it's possible to 
>> detect
>> photons on my screen. Does there exist any function for this? I'm looking 
>> for a

>> approach
>> take. Is there somebody have an idea?
>>
>> Thank you
>>
>> Sylvain
> 
> 
> trace() is the best way to test if a ray hits an object and to know the 
> coordinates and normal of the intersection point.
> 
> 
> Marc 
> 
> 
I think he needs to trace the beam through a series of mirrors and 
lenses. This is quite difficult in SDL at the very least.

-- 
the ultimate time-killer:
+a0.0 +am2 +r9

Johnny D


Post a reply to this message

From: Alain
Subject: Re: Photons detection?!
Date: 12 Mar 2008 15:28:30
Message: <47d83cee$1@news.povray.org>
Sylvain Dubé nous apporta ses lumieres en ce 2008/03/12 10:26:
> Hi,
> I’m using POV-Ray to simulate a laser beam pointed to a screen. I’m also using
> photons in my programming and I would like to know if it’s possible to detect
> photons on my screen. Does there exist any function for this? I’m looking for a
> command like « trace » to know where are my impact. I cannot know which approach
> take. Is there somebody have an idea?
> 
> Thank you
> 
> Sylvain
> 
> 
> 
The trace function return the intersection point between a line shoot from an 
arbitrary point toward a previously deffined object. It only return the first 
intersection point and, optionaly, the normal at the found point. It ignore any 
reflectivity. It also ignore any transparency.
It ignore any object exept it's target object.

As the sequance of events of a render is: parse, [shoot photons], [do radiosity 
pretrace], render. The "[...]" denote optional steps. You can't access the 
photons white parsing, even if you use the load file option for your photons. 
The photons data from the file are loaded after the parsing is finished.

If your laser never reflect or refract before it reatch the screen, you don't 
need photons at all. Just use a light_source with the parallel and cylindrical 
atributes.


If you want to see where the photons go, you need some surface to catch them. 
The screen you mention is perfect for that task. Just make it white. You don't 
need to add a photons block to it's definition, it default to collect ON.
If you want to see their trajectory, you need to fill the scene with scattering 
media.

-- 
Alain
-------------------------------------------------
Hinduism: This shit has happened before.


Post a reply to this message

From: Mike Williams
Subject: Re: Photons detection?!
Date: 13 Mar 2008 02:50:55
Message: <ePWshNFFuN2HFwFh@econym.demon.co.uk>
Wasn't it Alain who wrote:
>Sylvain Dubé nous apporta ses lumieres en ce 2008/03/12 10:26:
>> Hi,
>> I’m using POV-Ray to simulate a laser beam pointed to a screen. 
>>I’m also using
>> photons in my programming and I would like to know if it’s possible 
>>to detect
>> photons on my screen. Does there exist any function for this? I’m 
>>looking for a
>> command like ? trace ? to know where are my impact. I cannot know 
>>which approach
>> take. Is there somebody have an idea?
>>  Thank you
>>  Sylvain
>>
>The trace function return the intersection point between a line shoot 
>from an arbitrary point toward a previously deffined object. It only 
>return the first intersection point and, optionaly, the normal at the 
>found point. It ignore any reflectivity. It also ignore any transparency.
>It ignore any object exept it's target object.

If you know the reflection, transparency and IOR of the object you've 
hit, you can use that information to trace() new reflected and refracted 
photon paths onwards from that intersection point.

You don't know which object those reflected photons are going to hit 
next, so you have to use trace() against every candidate object and 
select the one that has the nearest intersection point.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From:
Subject: Re: Photons detection?!
Date: 14 Mar 2008 13:55:00
Message: <web.47dac952a2dcdd79dcf53ead0@news.povray.org>
Is MegaPOV have any function for this?

Sylvain


Post a reply to this message

From: Alain
Subject: Re: Photons detection?!
Date: 14 Mar 2008 14:27:39
Message: <47dad1ab$1@news.povray.org>
Sylvain Dubé nous apporta ses lumieres en ce 2008/03/14 14:52:
> Is MegaPOV have any function for this?
> 
> Sylvain
> 
> 
> 
Not that know of.

You should use user functions and macros to do the task.

Don't forget that when you enter an object, your next trace will be toward that 
same object to find the exit point. This can lead to multiple total internal 
reflections.

Once you exit an object, there are cases where that object can be a valid 
target. Any object with any concavity or opening can interact more than twice.

Any concave reflective object can reflect a ray more than once.

All this mean that you may need a recursive function.

-- 
Alain
-------------------------------------------------
   I'm so ugly I stuck my head out the window and got arrested for Mooning.
   	Rodney Dangerfield


Post a reply to this message

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