# Radiance-general Digest, Vol 142, Issue 5

**URL:** <https://discourse.radiance-online.org/t/radiance-general-digest-vol-142-issue-5/2246>\
**Category:** radiance-general\
**Created:** [December 4, 2015, 7:38am UTC](https://discourse.radiance-online.org/t/radiance-general-digest-vol-142-issue-5/2246 "2015-12-04T07:38:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Per\_Haugaard](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/p/ee59a6/32.png) [@Per\_Haugaard](https://discourse.radiance-online.org/u/Per_Haugaard)\
**Post date:** [December 4, 2015, 7:38am UTC](https://discourse.radiance-online.org/t/radiance-general-digest-vol-142-issue-5/2246/1 "2015-12-04T07:38:21Z")

</div>

Hi group,  
I have put the octree info and the picture for my rendering at [http://phaugaard.blogspot.dk/2015/12/two-clipping-boxes.html](http://phaugaard.blogspot.dk/2015/12/two-clipping-boxes.html) Both clipping boxes are quite big and cut off one side and the top respectively. The only thing that is removed in the pictere is where the two clipping boxes intersect.  
I am not familiar with the second option mentioned in the paper (used to "peek into" a space while preserving the geometry for the traced rays).  
How does the second option work?  
Once again thank you for your help.

Best regards  
Per Haugaard

> **···**
>
> Den 21:01 torsdag den 3. december 2015 skrev "radiance-general-request@radiance-online.org" \<[radiance-general-request@radiance-online.org](mailto:radiance-general-request@radiance-online.org)\>:
> 
> Send Radiance-general mailing list submissions to  
> [radiance-general@radiance-online.org](mailto:radiance-general@radiance-online.org)
> 
> To subscribe or unsubscribe via the World Wide Web, visit  
> [http://www.radiance-online.org/mailman/listinfo/radiance-general](http://www.radiance-online.org/mailman/listinfo/radiance-general)  
> or, via email, send a message with subject or body 'help' to  
> [radiance-general-request@radiance-online.org](mailto:radiance-general-request@radiance-online.org)
> 
> You can reach the person managing the list at  
> [radiance-general-owner@radiance-online.org](mailto:radiance-general-owner@radiance-online.org)
> 
> When replying, please edit your Subject line so it is more specific  
> than "Re: Contents of Radiance-general digest..."
> 
> Today's Topics:
> 
> 1. Using two clipping boxes in visualization of lighting  
> distribution (Per Haugaard)  
> 2. Re: Using two clipping boxes in visualization of lighting  
> distribution (Guglielmetti, Robert)
> 
> ----------------------------------------------------------------------
> 
> Message: 1  
> Date: Thu, 3 Dec 2015 14:34:32 +0000 (UTC)  
> From: Per Haugaard \<perhaugaard@yahoo.dk\>  
> To: Radiance General Discussion \<[radiance-general@radiance-online.org](mailto:radiance-general@radiance-online.org)\>  
> Subject: [Radiance-general] Using two clipping boxes in visualization  
> of lighting distribution  
> Message-ID:  
> \<[379352180.24236382.1449153272917.JavaMail.yahoo@mail.yahoo.com](mailto:379352180.24236382.1449153272917.JavaMail.yahoo@mail.yahoo.com)\>  
> Content-Type: text/plain; charset="utf-8"
> 
> Dear group,  
> I would like to use?two clipping boxes to "cut off" the top and side in my model to better visualize lighting distribution in my design.I have tried to include two clipping boxes in a clipping box octree:  
> oconv objects/BOX\_top.rad objects/BOX\_PL2-3.rad \> octrees/Clipping\_box.oct
> 
> I then use vwrays for illustration:  
> vwrays -fd -vf views/View\_perspective.vf -x 1000 -y 1000 | rtrace -w -h -fd -opd octrees/Clipping\_box.oct | rtrace -w -ab 1 -fdc `vwrays -d -vf views/View_perspective.vf -x 1000 -y 1000` octrees/office.oct \> images/office.pic
> 
> My problem is that the only things that seem to be "cut off" is the intersecting part of the two boxes.  
> Is there a way to work with two clipping boxes to "cut off" the top and side in a model for better visualization of the lighting distribution?  
> Any input is much appreciated.
> 
> Best regards  
> Per Haugaard  
> -------------- next part --------------  
> An HTML attachment was scrubbed...  
> URL: \<[http://www.radiance-online.org/pipermail/radiance-general/attachments/20151203/b2d58af3/attachment-0001.html](http://www.radiance-online.org/pipermail/radiance-general/attachments/20151203/b2d58af3/attachment-0001.html)\>
> 
> ------------------------------
> 
> Message: 2  
> Date: Thu, 3 Dec 2015 14:49:18 +0000  
> From: "Guglielmetti, Robert" \<[Robert.Guglielmetti@nrel.gov](mailto:Robert.Guglielmetti@nrel.gov)\>  
> To: Per Haugaard \<perhaugaard@yahoo.dk\>, Radiance general discussion  
> \<[radiance-general@radiance-online.org](mailto:radiance-general@radiance-online.org)\>  
> Subject: Re: [Radiance-general] Using two clipping boxes in  
> visualization of lighting distribution  
> Message-ID: \<D285A323.200E6%Robert.Guglielmetti@nrel.gov\>  
> Content-Type: text/plain; charset="us-ascii"
> 
> That looks a lot like the technique John M. details here ([http://radsite.lbl.gov/radiance/refer/Notes/jm\_technote\_02.pdf](http://radsite.lbl.gov/radiance/refer/Notes/jm_technote_02.pdf)), but it seems like you're using the first technique (used to mask arbitrarily shaped, adjacent obstructions) and really want the second one (used to "peek into" a space while preserving the geometry for the traced rays. Could you post images of the result, as well as images of each octree you're using?
> 
> On 12/3/15, 7:34 AM, "Per Haugaard" \<perhaugaard@yahoo.dk\<[mailto:perhaugaard@yahoo.dk](mailto:perhaugaard@yahoo.dk)\>\> wrote:
> 
> Dear group,
> 
> I would like to use two clipping boxes to "cut off" the top and side in my model to better visualize lighting distribution in my design.  
> I have tried to include two clipping boxes in a clipping box octree:
> 
> oconv objects/BOX\_top.rad objects/BOX\_PL2-3.rad \> octrees/Clipping\_box.oct
> 
> I then use vwrays for illustration:
> 
> vwrays -fd -vf views/View\_perspective.vf -x 1000 -y 1000 | rtrace -w -h -fd -opd octrees/Clipping\_box.oct | rtrace -w -ab 1 -fdc `vwrays -d -vf views/View_perspective.vf -x 1000 -y 1000` octrees/office.oct \> images/office.pic
> 
> My problem is that the only things that seem to be "cut off" is the intersecting part of the two boxes.
> 
> Is there a way to work with two clipping boxes to "cut off" the top and side in a model for better visualization of the lighting distribution?
> 
> Any input is much appreciated.
> 
> Best regards
> 
> Per Haugaard
> 
> ------------------------------
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Radiance-general mailing list  
> [Radiance-general@radiance-online.org](mailto:Radiance-general@radiance-online.org)  
> [http://www.radiance-online.org/mailman/listinfo/radiance-general](http://www.radiance-online.org/mailman/listinfo/radiance-general)
> 
> End of Radiance-general Digest, Vol 142, Issue 5  
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

---

<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:** [December 4, 2015, 1:08pm UTC](https://discourse.radiance-online.org/t/radiance-general-digest-vol-142-issue-5/2246/2 "2015-12-04T13:08:11Z")

</div>

Hi Per,

You should try using a single box, setting it up so that the sides visible from your viewpoint are just inside the wall and ceiling of your space. That way, your rays will start in the appropriate place. Your rays are probably starting outside your space with your current box placements.

Cheers,  
-Greg

> **···**
>
> > From: Per Haugaard \<perhaugaard@yahoo.dk\>  
> > Subject: Re: [Radiance-general] Radiance-general Digest, Vol 142, Issue 5  
> > Date: December 4, 2015 8:38:21 AM GMT+01:00
> > 
> > Hi group,
> > 
> > I have put the octree info and the picture for my rendering at [Div: Two clipping boxes](http://phaugaard.blogspot.dk/2015/12/two-clipping-boxes.html) Both clipping boxes are quite big and cut off one side and the top respectively. The only thing that is removed in the pictere is where the two clipping boxes intersect.
> > 
> > I am not familiar with the second option mentioned in the paper (used to "peek into" a space while preserving the geometry for the traced rays).
> > 
> > How does the second option work?
> > 
> > Once again thank you for your help.
> > 
> > Best regards
> > 
> > Per Haugaard

---

<div class="post-metadata">

**Author:** ![Thomas\_Bleicher2](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@Thomas\_Bleicher2](https://discourse.radiance-online.org/u/Thomas_Bleicher2)\
**Post date:** [December 4, 2015, 1:34pm UTC](https://discourse.radiance-online.org/t/radiance-general-digest-vol-142-issue-5/2246/3 "2015-12-04T13:34:28Z")

</div>

Per

Basically your command traces rays from the view point (inside the box) to  
the surface of the box. Where it intersects with the polygon it creates a  
new ray to render everything on the other side of the box with rtrace.

When you use boxes as cut-away shapes for this technique you have to think  
from "inside the box". I assume that your clipping boxes are very large,  
both enclose the view point and the top and front of the building  
respectively. In this case you would see from the inside viewpoint the  
following surfaces (top to bottom in an imaginary image):

a) The inside of the box cutting away the front of the building (green  
below)  
b) The eave of the building (blue below)  
c) The bottom of the box cutting away the top of the building (red below)

A bit of ascii art to confuse things:

> **···**
>
> +--------------------------------+  
> &nbsp;&nbsp;&nbsp;\> \> top cutting box  
> +-------------------------+ |
> 
> > \> \* viewpoint | |  
> > \> \> \>  
> > \> \> \>  
> > \> \> \>  
> > \> \> \>  
> > \> \> \>  
> > \> \> b |  
> > \> b b |  
> > \> b | b |  
> > +------------------b-----------b-+  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b | b  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b | b  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b | b  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>
> 
> +-------------------------+  
> &nbsp;&nbsp;front cutting box
> 
> Your command will use the first ray intersection with the boxes to generate  
> the cutting edges: the green and red lines. Everything \_behind\_ these  
> cutting planes will be rendered. Therefore the only thing you cut out of  
> the image is the eave of the building.
> 
> To create the effect you want with your current command create a single box  
> that encloses the building core (the part you want to see). Think of it  
> more of a "gift wrap" than a "clipping box": It encloses the parts you  
> want, not the part you don't want.
> 
> Hth,  
> Thomas

---

<div class="post-metadata">

**Author:** ![Per\_Haugaard](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/p/ee59a6/32.png) [@Per\_Haugaard](https://discourse.radiance-online.org/u/Per_Haugaard)\
**Post date:** [December 4, 2015, 4:06pm UTC](https://discourse.radiance-online.org/t/radiance-general-digest-vol-142-issue-5/2246/4 "2015-12-04T16:06:04Z")

</div>

Hi Greg and Thomas,  
The obvious solution blinded me :)Thank you very much for your input.

Best regards  
Per Haugaard

> **···**
>
> Den 14:16 fredag den 4. december 2015 skrev Greg Ward \<[gregoryjward@gmail.com](mailto:gregoryjward@gmail.com)\>:
> 
> Hi Per,  
> You should try using a single box, setting it up so that the sides visible from your viewpoint are just inside the wall and ceiling of your space. That way, your rays will start in the appropriate place. Your rays are probably starting outside your space with your current box placements.  
> Cheers,-Greg
> 
> From: Per Haugaard \<perhaugaard@yahoo.dk\>Subject: Re: [Radiance-general] Radiance-general Digest, Vol 142, Issue 5Date: December 4, 2015 8:38:21 AM GMT+01:00
> 
> Hi group,  
> I have put the octree info and the picture for my rendering at [http://phaugaard.blogspot.dk/2015/12/two-clipping-boxes.html](http://phaugaard.blogspot.dk/2015/12/two-clipping-boxes.html) Both clipping boxes are quite big and cut off one side and the top respectively. The only thing that is removed in the pictere is where the two clipping boxes intersect.  
> I am not familiar with the second option mentioned in the paper (used to "peek into" a space while preserving the geometry for the traced rays).  
> How does the second option work?  
> Once again thank you for your help.
> 
> Best regards  
> Per Haugaard
