<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hey Andrew,<br><br>Thank you for your help. I actually tried that after posting the message yesterday and it worked well.. I got daylight factor equal to zero and a nice picture. <br><br>I am hoping to illustrate DF=0 with a black color instead of purple. Can I change the puple color (DF=0) to black and how can this be done?<br><br>Best regards<br>
<br>
Per Haugaard,<br><br> Den <b>tirs 26/5/09 skrev Andrew McNeil <i><andrew.mcneil@arup.com></i></b>:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>Fra: Andrew McNeil <andrew.mcneil@arup.com><br>Emne: Re: [Radiance-general] DF for a polygon<br>Til: perhaugaard@yahoo.dk, "Radiance general discussion" <radiance-general@radiance-online.org><br>Dato: tirsdag 26. maj 2009 17.30<br><br><div id="yiv2141576547">
<title>Re: [Radiance-general] DF for a polygon</title>
<font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Yes, your errors are most likely resulting from deleting some of rtrace points. Rtrace is expecting 4351*3000 points and is getting fewer, hence the unexpected end of file error.<br>
<br>
From the rtrace manual page: “If the direction vector is (0,0,0), a bogus record is printed...” Instead of deleting you could change the vector to ‘0 0 0’ and then the area outside of your polygon would be comprised of bogus records (zeros). This method might not work if you are expecting legitimate zeros in your output.<br>
<br>
<br>
<br>
On 5/26/09 5:09 AM, "Per Haugaard" <perhaugaard@yahoo.dk> wrote:<br>
<br>
</span></font></font><blockquote><font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Dear users,<br>
<br>
I am calculating DF for a polygon. My approach for this is to use cnt, rcalc and rtrace as described below.<br>
<br>
cnt 3000 4351 | rcalc -e 'x=157-$1*0.01; y=168.41-$2*0.01; z=0.85; $1=x; $2=y; $3=z; $4=0; $5=0; $6=1' > grids/grid_level_0.xyz<br>
<br>
I then deleted the lines outside my polygon and initiated rtrace.<br>
<br>
cat grids/grid_level_0.xyz | rtrace -I -ab 4 -aa 0.05 -ar 128 -ad 512 -as 256 -x 4351 -y 3000 -af ambfiles/df.amb -fac octrees/LSE_DF.oct > images/grid2illum_level_0.pic<br>
<br>
which results the following error:<br>
<br>
rtrace: fatal - unexpected EOF on input<br>
pfilt: truncated input (y=754)<br>
images/grid2illum_level_0_resized.pic: read error<br>
<stdin>: read error (y==139)<br>
<br>
Two of the errors occur when I start to work with the grid2illum_level_0.pic image. If I do not specify the picture size in the rtrace command I get the following error:<br>
<br>
pfilt: bad picture size<br>
images/grid2illum_level_0_resized.pic: bad picture size<br>
images/grid2illum_level_0_resized_df.pic: bad picture size<br>
<br>
Does this error occur because i delete points in the plane and how do I get around this this?<br>
<br>
<br>
Best regard<br>
<br>
Per Haugaard,<br>
<br>
<br>
<hr size="1" width="100%" align="center"><br>
Trænger du til at se det store billede? Kelkoo giver dig gode tilbud på LCD TV <a rel="nofollow" target="_blank" href="http://dk.yahoo.com/r/pat/lcd"><http://dk.yahoo.com/r/pat/lcd></a> ! <br>
<hr size="3" width="95%" align="center"></span></font><font face="Consolas, Courier New, Courier"><span style="font-size: 10pt;">_______________________________________________<br>
Radiance-general mailing list<br>
Radiance-general@radiance-online.org<br>
<a rel="nofollow" target="_blank" href="http://www.radiance-online.org/mailman/listinfo/radiance-general">http://www.radiance-online.org/mailman/listinfo/radiance-general</a><br>
</span></font></font></blockquote>
<pre>____________________________________________________________<br>Electronic mail messages entering and leaving Arup business<br>systems are scanned for acceptability of content and viruses<br></pre>
</div></blockquote></td></tr></table><br>
<hr size=1><br><table><tr><td>
Trænger du til at se det store billede? Kelkoo giver dig gode tilbud på <a href=http://dk.yahoo.com/r/pat/lcd>LCD TV</a>!</td></tr></table>