|
|
On 18/12/2017 11:42, Masaki wrote:
> I appreciate for your kind advice.
>
Thanks for all of us.
> I started pov-ray recently, so it takes some time to understand the all advice.
> I would like to try the two way, projected through and spotlights.
>
There are a couple of things wrong with your scene. First, your lights
and objects are inside the Prism. So you will not see anything.
The Prism is 1 unit thick. So move it down a bit.
The camera is pointing the wrong way as the light source needs to be
above the projected through object. For the effect to work. Only where
the light rays hit the object will they be calculated. So multiply the
camera position by -1 * Y and maybe give it a little offset in the X or
Y direction.
There is no need to create so many lights and objects by putting them in
the loop. If you create then outside the loop then call or reference
them from inside the loop. It is more efficient, I am told.
> The projected through puzzled me, so I have to consider.
>
> There are two questions about using spotlight.
> (1) How can I configurate the “negative” option?
Multiply the colour by -1.
> (2) Can the “negative” light distinguish the “positive” light completely?
> It seems that the “negative” light only weaken the positive light.
>
Yes, remember the lights value is not limited to 1
> The reason why I place the 10 lights is that I want to know the response when
> the light source moves in the depth direction, but I am very happy if the
> reasonable result is obtained from the one light at first.
>
That sounds as if you want to make an animation.
> I post again the source code with object (hexagonal prism).
--
Regards
Stephen
Post a reply to this message
|
|