question about sky.mat

Hi community,
In radiance tutorial, for simulation of daylighting, we must create a file named sky.rad and an other file named sky_overcast.mat. But I can't find a description of the second file, I mean sky_overcast.mat. I know that is a material for an overcast sky but what should we write to define this file? Please, can you gives me an example?
thank you
imène

···

___________________________________________________________
Cuisine, salon, chambre enfant… Les promos pour changer votre mobilier sont sur Voila.fr http://shopping.voila.fr/vitrine/meubles

Hi community,
In radiance tutorial, for simulation of daylighting, we must create a file
named sky.rad and an other file named sky_overcast.mat.

I don't know which tutorial you refere to but I think that the general idea
is to separate the scene elements that create the sky from the description
that defines the actual sky condition.

In Radiance you first have to define a "material" for a scene element and
then you apply this material to a geometric object like a polygone or a
disk. For the sky description there is a special type of geometry which is
called "source". This is, I expect, what you use in the sky.rad file in
your tutorial.

But I can't find a description of the second file, I mean
sky_overcast.mat. I know that is a material for an overcast sky but what
should we write to define this file?

You can read the man page for gensky to get an idea of how the program is
typically used. About half way through there is an example of a complete
sky description (it starts with "!gensky 4 1 14"). Compare this with the
contents of your sky.rad file and the lines before need to go into the
sky.rad file. This may only be the "!gensky ..." line or this line and the
following "skyfunc ..." definition.

When you use this now in a scene you first add the sky_overcast.mat and
then the sky.rad file to an oconv command line to compile the octree for
the scene. When you want to use the same scene under different sky
conditions you only need to replace the sky_overcast.mat file with another
one which contains a different "!gensky ..." command to create an
intermediate or sunny sky.

Regards,
Thomas

···

On Mon, Jul 16, 2012 at 6:35 PM, <[email protected]> wrote:

Hi Imene,

I don't know which tutorial you use.

A very basic way to create an overcast sky at june 21 at 13.00 would be like:

iep@login4:~/projecten/PHB$ gensky 6 21 13 -c > sky.mat

This would add the following lines to the file sky .mat:

# gensky 6 21 13 -c
# Local solar time: 12.84
# Solar altitude and azimuth: 72.0 40.5
# Ground ambient level: 31.8

void brightfunc skyfunc
2 skybr skybright.cal
0
3 2 4.09e+01 6.36e+00

Now you can edit yourself a sky description file for the upper hemisphere. Create a file sky_overcast.mat and add these lines:

skyfunc glow sky_mat
0
0
4
1 1 1 0

sky_mat source sky
0
0
4 0 0 1 180

This is very basic, but gives you the idea.

Hope this helps,

- iebele

···

Op 16 jul. 2012, om 19:35 heeft [email protected] het volgende geschreven:

Hi community,
In radiance tutorial, for simulation of daylighting, we must create a file named sky.rad and an other file named sky_overcast.mat. But I can't find a description of the second file, I mean sky_overcast.mat. I know that is a material for an overcast sky but what should we write to define this file? Please, can you gives me an example?
thank you
imène
___________________________________________________________
Cuisine, salon, chambre enfant… Les promos pour changer votre mobilier sont sur Voila.fr http://shopping.voila.fr/vitrine/meubles

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

Hi,
Thank you Thomas
regards
Imène

···

Message du 16/07/12 à 19h51
De : "Thomas Bleicher"
A : "Radiance general discussion"
Copie à :
Objet : Re: [Radiance-general] question about sky.mat

On Mon, Jul 16, 2012 at 6:35 PM, wrote:
Hi community,
In radiance tutorial, for simulation of daylighting, we must create a file named sky.rad and an other file named sky_overcast.mat.
I don't know which tutorial you refere to but I think that the general idea is to separate the scene elements that create the sky from the description that defines the actual sky condition.
In Radiance you first have to define a "material" for a scene element and then you apply this material to a geometric object like a polygone or a disk. For the sky description there is a special type of geometry which is called "source". This is, I expect, what you use in the sky.rad file in your tutorial. But I can't find a description of the second file, I mean sky_overcast.mat. I know that is a material for an overcast sky but what should we write to define this file?
You can read the man page for gensky to get an idea of how the program is typically used. About half way through there is an example of a complete sky description (it starts with "!gensky 4 1 14"). Compare this with the contents of your sky.rad file and the lines before need to go into the sky.rad file. This may only be the "!gensky ..." line or this line and the following "skyfunc ..." definition.
When you use this now in a scene you first add the sky_overcast.mat and then the sky.rad file to an oconv command line to compile the octree for the scene. When you want to use the same scene under different sky conditions you only need to replace the sky_overcast.mat file with another one which contains a different "!gensky ..." command to create an intermediate or sunny sky.
Regards,Thomas

___________________________________________________________
Cuisine, salon, chambre enfant… Les promos pour changer votre mobilier sont sur Voila.fr http://shopping.voila.fr/vitrine/meubles