<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="yiv231180871"><div id="yiv1255655895"><div id="yiv61052255">Hi Andrew,<br><br>Thank you for your reply. Nothing happens when I play with the FTINY. The image remains the same if I remove FTINY and also if I change the expecting rounding error to 2e-3 or larger. I guess the error might be elsewhere. <br><br>Below you will find the input for the illum and falsecolor image.<br><br># calculating illumince values on a virtual plan using vwrays<br>vwrays -x 600 -y 600 -vf views/kontor_ned.vp \<br>| rcalc -e '$1=$1; $2=$2; $3=0.8; $4=$4; $5=$5; $6=1' \<br>| rtrace -ab 3 -aa 0.1 -ar 128 -ad 512 -as 256 -fac -w -I -ov `vwrays -d -vf views/kontor_ned.vp -x 600 -y 600` \<br>octrees/kontor_CIE.oct > images/vwrays_illum.pic<br><br># making falsecolor image of the illuminace image<br>falsecolor -n 10 -s 1000 -lw 0 -cl -i images/vwrays_illum.pic >
images/vwrays_illum_falsecolor.pic<br><br>Below is the viewfile kontor_ned.vp<br><br>rview -vtl -vp 6.4 8.4 2.79 -vd 0 0 -1 -vu 1 0 0 -vh 16.6 -vv 12.8 -vo 0 -va 0 -vs 0 -vl 0<br><br>Below is the input for the working plane image:<br><br>void colorpict fc_val<br>7 red green blue images/vwrays_illum_falsecolor.pic fc_4.cal fc_u fc_v<br>0<br>0<br><br>fc_val glow fc_glow<br>0<br>0<br>4 10 10 10 0<br><br>fc_glow polygon office.working_plane<br>0<br>0<br>12<br> 0.2 0.2 0.8<br> 13.0
0.2
0.8<br> 13.0 16.8 0.8<br> 0.2 16.8 0.8<br><br>void mixpict mp<br>7 fc_glow void nonzero images/vwrays_illum_falsecolor.pic fc_4.cal fc_u fc_v<br>0<br>0<br><br>mp polygon
office.working_plane.2<br>0<br>0<br>12<br> 0.2 0.2 0.8<br> 13.0 0.2 0.8<br>
13.0 16.8 0.8<br> 0.2 16.8 0.8<br><br>And below is the fc_4.cal file <br><br>nonzero(r,g,b) = if(max(r,max(g,b))-FTINY, 1, 0);<br>fc_u = -(Py-16.6)/12.8;<br>fc_v = (Px-0.2)/12.8;<br><br>I have not been working with HDR images. Maybe you can update on how to easily convert from pic-files to hdr-files in Linux, so I can upload these for illustration
purposes.<br><br>Best regards<br><br>Per,<br><br>--- Den <b>man 11/1/10 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] Removing black areas in imagemapping<br>Til: perhaugaard@yahoo.dk, "Radiance general discussion" <radiance-general@radiance-online.org><br>Dato: mandag 11. januar 2010 19.19<br><br><div id="yiv445184342">
<title>Re: [Radiance-general] Removing black areas in imagemapping</title>
<font size="4"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Hi Per,<br>
<br>
Perhaps you are experiencing rounding error larger than FTINY. I’d suggest replacing FTINY with a larger value (ie 2e-3) and seeing if black spots reduce. A bit of trial and error might be necessary.<br>
<br>
If that doesn’t work can you send more scene info? I’d like to see your falsecolor statement, your colorpict and mixpict material definitions and perhaps you could post your contour image in hdr format.<br>
<br>
Best,<br>
Andy<br>
<br>
<br>
On 1/11/10 4:10 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 mapping a falsecolor image on a working in a room but there is still some black parts left in the image. I have FTINY as a guard against rounding errors but it does not remove everything.<br>
<br>
As written i Axel J. tutorial I have build a ..cal file with a nonzero function:<br>
<br>
nonzero(r,g,b) = if(max(r,max(g,b))-FTINY, 1, 0);<br>
fc_u = -(Py-16.6)/12.8;<br>
fc_v = (Px-0.2)/12.8;<br>
<br>
Any idea of how to remove the remaining black spots in the image?<br>
<br>
The images can be seen at:<br>
<a rel="nofollow" target="_blank" href="http://perhaugaard.blogspot.com/2010/01/removing-black-parts-in-imagemapping-in.html">http://perhaugaard.blogspot.com/2010/01/removing-black-parts-in-imagemapping-in.html</a> <br>
<br>
<br>
Happy new year<br>
<br>
/Per<br>
<br>
<br>
<hr width="100%" align="CENTER" size="1"><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 width="95%" align="CENTER" size="3"></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></div></div></div></td></tr></table><br>
<hr size=1><br><table><tr><td>
Skal du købe ny bil? Sammenlign priser på brugte biler med Kelkoo og find et godt <a href=http://dk.yahoo.com/r/pat/mmb> tilbud!</a></td></tr></table>