# Rtcontrib and tregsamp.dat file

**URL:** <https://discourse.radiance-online.org/t/rtcontrib-and-tregsamp-dat-file/2510>\
**Category:** radiance-general\
**Created:** [March 12, 2009, 2:56pm UTC](https://discourse.radiance-online.org/t/rtcontrib-and-tregsamp-dat-file/2510 "2009-03-12T14:56:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_Makrithanasis](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/g/73ab20/32.png) [@George\_Makrithanasis](https://discourse.radiance-online.org/u/George_Makrithanasis)\
**Post date:** [March 12, 2009, 2:56pm UTC](https://discourse.radiance-online.org/t/rtcontrib-and-tregsamp-dat-file/2510/1 "2009-03-12T14:56:27Z")

</div>

Dear all,

I was looking the rtcontutor example of the Radiance 2006 Workshop and the examples of the R3.8. I have a question for the  
second pass of rtcontrib. If I understand correctly, the input for rtcontrib is the tregsamp.dat  
file but modified by rcalc. The modofication applies to the rays origin which from 0,0,0 I think  
that they are distributed 1.7m off the facade of the building. It looks that the directions  
remain the same. In adittion, if one tries to actually plot the file it looks that all these rays are directed to the facade of the building.

The description for this step within the readme file was "The second stage computes the incidence of sky  
illumination on these portholes, and the results are combined".

Could somebody throw a little bit of light on this step as I can not figure out the logic behind. Hopefully,  
I have not misunderstood what's going on and this email does make a bit of sense.

Cheers,

George

> **···**
>
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Χρησιμοποιείτε Yahoo!;  
> Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail  
> διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών  
> μηνυμάτων [http://login.yahoo.com/config/mail?.intl=gr](http://login.yahoo.com/config/mail?.intl=gr)

---

<div class="post-metadata">

**Author:** ![Greg\_Ward](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/greg_ward/32/471_2.png) [@Greg\_Ward](https://discourse.radiance-online.org/u/Greg_Ward)\
**Post date:** [March 13, 2009, 6:19pm UTC](https://discourse.radiance-online.org/t/rtcontrib-and-tregsamp-dat-file/2510/2 "2009-03-13T18:19:55Z")

</div>

Hi George,

What part is unclear to you? The second stage is a kind of forward ray-tracing to determine the relationship between sky patches and outgoing directions in each of the ceiling "sources."

-Greg

> **···**
>
> > From: George Makrithanasis \<nofunciona\_g@yahoo.gr\>  
> > Date: March 12, 2009 7:56:27 AM PDT
> > 
> > Dear all,
> > 
> > I was looking the rtcontutor example of the Radiance 2006 Workshop and the examples of the R3.8. I have a question for the  
> > second pass of rtcontrib. If I understand correctly, the input for rtcontrib is the tregsamp.dat  
> > file but modified by rcalc. The modofication applies to the rays origin which from 0,0,0 I think  
> > that they are distributed 1.7m off the facade of the building. It looks that the directions  
> > remain the same. In adittion, if one tries to actually plot the file it looks that all these rays are directed to the facade of the building.
> > 
> > The description for this step within the readme file was "The second stage computes the incidence of sky  
> > illumination on these portholes, and the results are combined".
> > 
> > Could somebody throw a little bit of light on this step as I can not figure out the logic behind. Hopefully,  
> > I have not misunderstood what's going on and this email does make a bit of sense.
> > 
> > Cheers,
> > 
> > George
