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

···

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

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 [[email protected]]
Envoyé : vendredi 3 juillet 2015 10:26
À : [email protected]
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

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

Gensky gives you the sun angle as a comment. You still have to convert it to a view vector and calculate the actual camera location yourself.

···

Achim Geissler <[email protected]> wrote:

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

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

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

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Dear Raphael,

that looks perfect! Thanks.

Best
Achim

···

-----Ursprüngliche Nachricht-----
Von: Compagnon Raphaël [mailto:[email protected]]
Gesendet: Freitag, 3. Juli 2015 14:23
An: Radiance general discussion
Betreff: Re: [Radiance-general] View from sun position

Hi Achim

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

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 [[email protected]] Envoyé : vendredi 3 juillet
2015 10:26 À : [email protected]
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

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

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hi Raphael,

being a lazy bum, I have to ask: Do you also have such a nifty tool to
calculate vh and vv from the Distance of the viewpoint (D) and the desired
size of the surface around (x,y,z)_center?

Thanks again!

Best
Achim

···

-----Ursprüngliche Nachricht-----
Von: Compagnon Raphaël [mailto:[email protected]]
Gesendet: Freitag, 3. Juli 2015 14:23
An: Radiance general discussion
Betreff: Re: [Radiance-general] View from sun position

Hi Achim

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

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 [[email protected]] Envoyé : vendredi 3 juillet
2015 10:26 À : [email protected]
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

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

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

John Mardaljevic shared a nifty little shell script at the 2003 Radiance Workshop that automated the generation and rendering of solar viewpoints for a whole day; it leveraged this information from Gensky as Thomas points out. I used John's script a few times for work and modified it for an art project as well, but I cannot find any of that stuff at the moment. If I unearth it I'll post a sample of John's code, but as Thomas points out Gensky gives you most of the info you need to do this.

- Rob

···

On 7/3/15, 6:23 AM, "Thomas Bleicher" <[email protected]<mailto:[email protected]>> wrote:

Gensky gives you the sun angle as a comment. You still have to convert it to a view vector and calculate the actual camera location yourself.

Achim Geissler <[email protected]<mailto:[email protected]>> wrote:
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

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

________________________________

Radiance-general mailing list
[email protected]<mailto:[email protected]>
http://www.radiance-online.org/mailman/listinfo/radiance-general

--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Dear all,

thank you all for your help! The little tool and additional information from
Raphaël did the trick for me - no additional brain-work necessary which was
good due to the brain-cooking temperatures around here, the past days.

@Robert: If the script surfaces, as "hunter-and-gatherer" I would still be
interested, though.

Best
Achim

···

-----Ursprüngliche Nachricht-----
Von: Guglielmetti, Robert [mailto:[email protected]]
Gesendet: Montag, 6. Juli 2015 16:24
An: [email protected]
Betreff: Re: [Radiance-general] View from sun position

John Mardaljevic shared a nifty little shell script at the 2003 Radiance
Workshop that automated the generation and rendering of solar viewpoints for
a whole day; it leveraged this information from Gensky as Thomas points out.
I used John's script a few times for work and modified it for an art project
as well, but I cannot find any of that stuff at the moment. If I unearth it
I'll post a sample of John's code, but as Thomas points out Gensky gives you
most of the info you need to do this.

- Rob

On 7/3/15, 6:23 AM, "Thomas Bleicher" <[email protected]<mailto:[email protected]>> wrote:

Gensky gives you the sun angle as a comment. You still have to convert it to
a view vector and calculate the actual camera location yourself.

Achim Geissler
<[email protected]<mailto:[email protected]>> wrote:
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

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

________________________________

Radiance-general mailing list
[email protected]<mailto:Radiance-general@radiance-online
.org>
http://www.radiance-online.org/mailman/listinfo/radiance-general

--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Hi Achim,

Here's the script:

http://climate-based-daylighting.com/doku.php?id=resources:sol-pen-script

Cheers
John

John Mardaljevic PhD FSLL
Professor of Building Daylight Modelling
School of Civil & Building Engineering
Loughborough University
Loughborough
Leicestershire
LE11 3TU, UK

Tel: +44 1509 222630 (Direct)
Tel: +44 1509 228529 (Pam Allen, secretary)

[email protected]<mailto:[email protected]>

http://www.lboro.ac.uk/departments/civil-building/staff/mardaljevicjohn/<http://www.lboro.ac.uk/departments/civil-building/staff/mardaljevicjohn>

Personal daylighting website:
http://climate-based-daylighting.com<http://climate-based-daylighting.com/>

[cid:D599A67F-1B02-4789-B332-FB39946891CB@home]