[Radiance-general] View from sun position

Compagnon Raphaël Raphael.Compagnon at hefr.ch
Fri Jul 3 05:23:07 PDT 2015


Hi Achim

You may want to download a file named tracefromsun.tar from this URL:
https://drive.switch.ch/public.php?service=files&t=5b1df34fbb0f39db18a8d73494fdbdf4

It contains a C program that will do what you need.
Before compiling it, you have to adjust the latitude of your site at the beginning of the source file.

To use it you just need to call the tracefromsun program this way:

tracefromsun #month #day x y z

where
#month is the month number
#day the day within the month
x,y,z the coordinates of the "centre" point toward which all the rays will be traced

The program will send one ray per hour (true solar time is assumed) for te specified date. The output contains:
x y z coordinates of a remote starting point (i.e. the sun...)
dx dy dz the direction of the sunray toward the centre point

I hope this will help you.

Raphaël

________________________________
De : Achim Geissler [achim.geissler at intergga.ch]
Envoyé : vendredi 3 juillet 2015 10:26
À : radiance-general at radiance-online.org
Objet : [Radiance-general] View from sun position

Dear all,

it should be possible to automate a viewpoint as “view from the sun position” in order to generate a sequence of images over a day, for example. Sadly, I was unable to find anything on the net or in Rendering with Radiance to this end. Does anyone know a good source – I would want to avoid having to do the vector maths, myself ;o) ?

Thanks.

Best
Achim

---------------------------------------------------------------------




More information about the Radiance-general mailing list