|
|
Le 17-12-15 à 07:25, Masaki a écrit :
> There are two things I want you to ask for a favor.
>
> I want to make the light source, which is positioned randomly between y=0~1 and
> emits the light at the specific angle, 45 degrees. The light beam forms the
> conical surface.
> (Q1) Can I make this light source ?
Yes.
>
> I conceive that if the light through the torus (or the disk) is only rendering,
> the above requirement can meet. So, I write the source code as follows, but the
> pov-ray dose not work properly. It seems to be wrong with the "projected
> through" option.
> (Q2) What is wrong in my source code and how to revise it ?
>
>
>
> Sincerely,
> Masaki Yoneyama.
>
>
Use only a single light_source.
rgb 1e5 is extremely bright. You only use such a bright light when you
also use light fading with a short fade_distance.
Why place 10 lights? Their illumination bands will overlap.
You need some surface to get illuminated or some media to make the light
visible.
My proposition :
#declare R2= seed(frame_number);
//#declare R2= seed(12345678*clock);
//Make the seed change when using the animation feature
#declare V_Pos = rand(R2)
light_source{
<0,V_Pos ,0>
rgb 100000
fade_power 2
fade_distance 0.02
projected_through{
cylinder{<0,V_Pos-1,0><0,V_Pos-1.1,0>,1 open}
//makes a thin cone
//open used to remove the end caps
//as we only want the side
}
}
plane{-z, -0.1 pigment{rgb 1} finish{brilliance 0}}
//Add something for the light to shine on
//and make it's illumination independent from the angle of incidence
Render with +kff 9 on the command line.
Post a reply to this message
|
|