POV-Ray : Newsgroups : povray.newusers : optic guide. Server Time
29 Jul 2024 02:29:36 EDT (-0400)
  optic guide. (Message 11 to 14 of 14)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Alain
Subject: Re: optic guide.
Date: 9 Jun 2007 23:01:42
Message: <466b6996$1@news.povray.org>
TP Electronics nous apporta ses lumieres en ce 2007/06/09 07:57:
> I want to desing a optic guide for en LED.
> It is possible to simulated this with povray?
> I can not see where I can change specification of material to define the 
> guide.
> I am play with led source but not manage to make a led with 10degres angle.
> Best regard
> Thierry 
> 
> 
My gues would be to use photons.
Add the folowing to your light guide deffinition:
photons{target refraction on reflection on collect off}
(this can be added in a material{...} block)
and the following to your #global_settings{...} block:
photons{count 100000} OR photons{spacing 0.01}

Photons are a form of "forward" tracing where you start from the light_source, 
go toward selected objects marked with a target atribute, then to other object 
or the camera.
A ray tracer normaly use backward ray tracing where you start from the camera to 
the object and test with light_source to know the illumination.

-- 
Alain
-------------------------------------------------
My toes were playing the piano under the blankets.
They made so much noise that I woke up singing.


Post a reply to this message

From: TP Electronics
Subject: Re: optic guide.
Date: 10 Jun 2007 03:08:45
Message: <466ba37d$1@news.povray.org>
Well it must be the rigth way but do not understand how to use it.
I do not find "clear" example. It is a picture to show what I want to do but 
not example of code.
I have spend to much hours to try.
Thanks for all help.
Perhaps I will try later if I fnd more info.
I can not understand how to use photons and where?


"Alain" <ele### [at] netscapenet> skrev i melding 
news:466b6996$1@news.povray.org...
> TP Electronics nous apporta ses lumieres en ce 2007/06/09 07:57:
>> I want to desing a optic guide for en LED.
>> It is possible to simulated this with povray?
>> I can not see where I can change specification of material to define the 
>> guide.
>> I am play with led source but not manage to make a led with 10degres 
>> angle.
>> Best regard
>> Thierry
> My gues would be to use photons.
> Add the folowing to your light guide deffinition:
> photons{target refraction on reflection on collect off}
> (this can be added in a material{...} block)
> and the following to your #global_settings{...} block:
> photons{count 100000} OR photons{spacing 0.01}
>
> Photons are a form of "forward" tracing where you start from the 
> light_source, go toward selected objects marked with a target atribute, 
> then to other object or the camera.
> A ray tracer normaly use backward ray tracing where you start from the 
> camera to the object and test with light_source to know the illumination.
>
> -- 
> Alain
> -------------------------------------------------
> My toes were playing the piano under the blankets.
> They made so much noise that I woke up singing.


Post a reply to this message

From: Marc
Subject: Re: optic guide.
Date: 10 Jun 2007 03:59:37
Message: <466baf69$1@news.povray.org>

466ba37d$1@news.povray.org...
> Well it must be the rigth way but do not understand how to use it.
> I do not find "clear" example. It is a picture to show what I want to do 
> but not example of code.

maybe a  drawing by hand :-)

Marc

If you want an accurate simulation, POV ins not the good way.
But if you accept to fake it, there are solutions
If I understand you put a LED behind a transparent/filtering piece of 
plastic.

Marc


Post a reply to this message

From: TP Electronics
Subject: Re: optic guide.
Date: 10 Jun 2007 09:35:28
Message: <466bfe20$1@news.povray.org>
Yes it is correct.
The close I arrived. with following code:

global_settings {photons { count 20000 autostop 0 jitter .4  } }
camera {location <0, 0,-12.0> look_at 0 angle 30 }

#declare LED_RED=
light_source { <0, 0, 0> color Red    }

#declare  KNOPP=
difference
{
        cylinder {<0,2,0><0,10,0>,12/2 }
        cylinder {<0,0,0><0,2+1.35,0>,3/2 }
        texture{T_Glass1 } finish {ambient .01 diffuse .9}

}
background {Gray20}

union
{
 object { LED_RED translate<6.000000-4.25,00000,6.000000>}
 object { LED_RED translate<6.000000+4.25,00000,6.000000>}
 //cylinder {<0,2,0><0,10,0>,6 texture{T_Glass1 } finish {ambient .01 
diffuse .5}
 object { KNOPP translate<6.000000,1.700000,6.000000>}

scale <.1,.1,.1>
rotate <30,0,0>
}
//End union

"Marc" <jac### [at] wanadoofr> skrev i melding 
news:466baf69$1@news.povray.org...
>

> 466ba37d$1@news.povray.org...
>> Well it must be the rigth way but do not understand how to use it.
>> I do not find "clear" example. It is a picture to show what I want to do
>> but not example of code.
>
> maybe a  drawing by hand :-)
>
> Marc
>
> If you want an accurate simulation, POV ins not the good way.
> But if you accept to fake it, there are solutions
> If I understand you put a LED behind a transparent/filtering piece of
> plastic.
>
> Marc
>
>
>


Post a reply to this message


Attachments:
Download 'photon.JPG' (10 KB)

Preview of image 'photon.JPG'
photon.JPG


 

<<< Previous 10 Messages Goto Initial 10 Messages

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