|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
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] netscape net> 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
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
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] wanadoo fr> 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](/povray.newusers/attachment/%3C466bfe20%241%40news.povray.org%3E/photon.JPG?preview=1)
|
![](/i/fill.gif) |