<HTML>
<HEAD>
<TITLE>Re: [Radiance-general] Removing black areas in imagemapping</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Per,<BR>
<BR>
You have two workplane polygons in your scene, one with material fc_glow and one with material mp. The blotches are a result of radiance using the mixpict polygon for some rays and the false color polygon for others. Remove the polygon with material fc_glow from your scene and your problem should be solved.<BR>
<BR>
Andy<BR>
<BR>
<BR>
<BR>
<BR>
On 1/12/10 1: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'>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>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><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>
Re: [Radiance-general] Removing black areas in imagemapping 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 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 ALIGN=CENTER SIZE="1" WIDTH="100%"><BR>
Trænger du til at se det store billede? Kelkoo giver dig gode tilbud på LCD TV <a href="http://dk.yahoo.com/r/pat/lcd"><http://dk.yahoo.com/r/pat/lcd></a> ! <BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></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 href="http://www.radiance-online.org/mailman/listinfo/radiance-general">http://www.radiance-online.org/mailman/listinfo/radiance-general</a><BR>
</SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>____________________________________________________________<BR>
Electronic mail messages entering and leaving Arup business<BR>
systems are scanned for acceptability of content and viruses<BR>
<BR>
</SPAN></FONT></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
<HR ALIGN=CENTER SIZE="1" WIDTH="100%"><BR>
Skal du købe ny bil? Sammenlign priser på brugte biler med Kelkoo og find et godt tilbud! <a href="http://dk.yahoo.com/r/pat/mmb"><http://dk.yahoo.com/r/pat/mmb></a> <BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>