modelling reflections from surrounding buildings

Hello Christoph.

I don't quite understand how you want to create a "reflected" sun without
knowing the position and orientation of the reflecting window. And if you do
know that why don't you just use a "mirror" material for this window which
will create the reflected sun for you?

Anyway, back to creating a second sun:

I was thinking of adding another line into my sky file, however am not

totally sure how to exactly do this and was hoping that someone here could
help me with this.

If you look at the output of a gensky command for skies with sun ("+i" or
"+s" option) you will find the definition for the sun; something like this:

void light solar
0
0
3 6.92e+06 6.92e+06 6.92e+06

solar source sun
0
0
4 0.067845 -0.617210 0.783868 0.5

The definition of "solar" defines the intensity of the sun which you have to
modify according to the reflection of the glazing.

The second block creates the actual sun with the first 3 parameters as
direction vector. This vector needs to be modified by "reflecting" it on the
plan of the reflecting window. You should be able to find the math for the
that on the internet.

The fourth parameter is the size of the sun (in degrees) and can probably
stay unchanged.

Regards,
Thomas

ยทยทยท

On Wed, Aug 11, 2010 at 3:36 AM, Christoph Begert - SBE < Christoph.Begert@sbe.com.au> wrote:

Hi!

The second block creates the actual sun with the first 3 parameters as
direction vector. This vector needs to be modified by "reflecting" it on
the plan of the reflecting window. You should be able to find the math
for the that on the internet.

You can add a line

!gensky [genskyoptions] | xform [xformoption]

To your scene file.

xform will do the translations then. Check the manpage for it, it allows you to perform all necessary rotation, mirror and translation operations.

Just as Thomas, I still do not get want you really want to achieve and why not to use mirror modifiers and real geometry.

Cheers, Lars.