|
|
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 ?
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 ?
The pov-ray version is 3.7.
source code:
*********************************************
#include "colors.inc"
#include "textures.inc"
background{Black}
camera {
location <0, -1, 0>
right <-1.33, 0, 0>
angle 40
look_at <0, 0.5, 0>
}
//Source
#declare r2 = seed(12345);
#declare I = 0;
#declare number = 10;
#while (I < number)
#declare a = rand(r2);
#declare Object1 = torus {
0.1, 0.05
sturm
translate <0, a-0.1, 0>
}
light_source {
<0, a, 0>
color 100000
projected_through {Object1}
}
#declare I = I+1;
#end
*********************************************
Sincerely,
Masaki Yoneyama.
Post a reply to this message
|
|