# Access to outgoing radiance at polyhedra	level

**URL:** <https://discourse.radiance-online.org/t/access-to-outgoing-radiance-at-polyhedra-level/240>\
**Category:** radiance-general\
**Created:** [November 12, 2013, 5:54pm UTC](https://discourse.radiance-online.org/t/access-to-outgoing-radiance-at-polyhedra-level/240 "2013-11-12T17:54:49Z")\
**Posts on this page:** 1\
**Page:** 1

<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:** [November 12, 2013, 5:54pm UTC](https://discourse.radiance-online.org/t/access-to-outgoing-radiance-at-polyhedra-level/240/1 "2013-11-12T17:54:49Z")

</div>

Hi Olivier,

The simplest method is to use rtrace. You can separate your polygons by name with:

&nbsp;&nbsp;vwrays [resolution & view options] | rtrace -h -osv scene.oct | sort \> surfaces.txt

You should get a selection of radiance values for each surface based on the selected view. If you want orthonormal values for \_every\_ polygon, not just those visible from one perspective, more sophisticated methods are needed. You would have to read in the scene file and generate a custom view for each polygon. It can be done, but it might require some scripting/programming to accomplish it.

-Greg

P.S. If you want irradiance/illuminance values rather than radiance/luminance, use the rtrace -i option.

> **···**
>
> > From: Olivier Penacchio \<op5@st-andrews.ac.uk\>  
> > Date: November 12, 2013 5:36:30 AM PST
> > 
> > Hi Everyone,
> > 
> > I am using Radiance to render objects using realistic lighting conditions.
> > 
> > The objects I use are represented as triangulated polyhedra. Currently I'm accessing  
> > the radiance outgoing from the objects in a scene using rendered images (rpict and then pfilt)  
> > of the scene (with no information anymore on each single triangle).
> > 
> > I am wondering whether it is possible to have access to the  
> > radiance outgoing from each triangle directly (as a list of values, one for each triangle  
> > for example)?
> > 
> > I'm running minGW radiance in windows (with a Matlab wrapper), but could  
> > switch to Linux if required.
> > 
> > Best wishes,  
> > Olivier---
> > 
> > Dr Olivier Penacchio---  
> > School of Psychology & Neuroscience  
> > St Mary's Quad  
> > South Street  
> > St Andrews  
> > Fife  
> > KY16 9JP  
> > Scotland, United Kingdom  
> > Tel: +44 (0) 1334 462099  
> > Fax:+44 (0) 1334 463042  
> > Email:op5@st-andrews.ac.uk
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Radiance-general mailing list  
> > Radiance-general@radiance-online.org  
> > [http://www.radiance-online.org/mailman/listinfo/radiance-general](http://www.radiance-online.org/mailman/listinfo/radiance-general)
