|
|
"Philipp" <pov### [at] phipracom> wrote:
> Hi,
>
> I am considering to dig into PovRay, if it can do what I need - so I hope
> that someone of you can tell me whether it will:
>
> A light source (the sun) shines on a reflecting surface (say, a
> square-shaped mirror that is hanging on a wall). As the sunlight comes from
> above and shines onto the mirror, part of the sunlight is reflected
> downwards to the floor. Thus, a basically parallelogram-shaped lighter area
> should be visible on the floor.
>
> I then would like to determine when (date and time of the day) the reflected
> sunlight falls on a certain area of the floor (or objects). It need not be a
> realistic rendering - I just want to determine the days in the year when the
> reflected sunlight hits an object that sits on the floor.
>
> To my understanding, this should be possible by using photon mapping, and
> then trying to make a fast-motion video from it. Is that correct, and is it
> feasable for, say, a hobby programmer to do this within two working weeks?
>
> (Is there some module or code-snippet for automatically calculating the
> sun's position, given geographical position and date/time?)
>
>
> Many thanks!
> Philipp
Rather than using photon mapping, which can add to render time, if you don't
need to consider any other reflection/refraction other than the mirror
surface, and the mirror surface is flat, it would be far simpler to use
direct lighting.
Assuming you know the position of the sun and the plane of the mirror, you
would just mirror the sun's position relative to the mirror surface,
creating a virtual sun. Then you can use the projected_through option for
the virtual sun using the mirror surface as the projected_through object.
This may take a little bit more mathematics, but would save considerably on
render time.
-tgq
Post a reply to this message
|
|