Hi Francesco.<br><br>A couple of comments: <br><br>If I understand correctly you are trying to render an image of a beam of light passing through<br>a dielectric material. If you try to create an image you should use the rpict program and not<br>
the 'rtrace' command line you used.<br><br>You mention that you don't understand the results but you don't show us what they are.<br>The output of your command line should give you lux values but I don't know how the<br>
input relates to the geometry (haven't looked at it close enough).<br><br>Your scene description below is incomplete. There are some '0's missing in the descriptions.<br>I hope that is an effect of copy-and-paste. Otherwise I doubt that the simulation would run<br>
at all.<br><br>Do you know about the docs in<br><br><a href="http://radsite.lbl.gov/radiance/refer">http://radsite.lbl.gov/radiance/refer</a> <br><br>in particular<br><br><a href="http://radsite.lbl.gov/radiance/refer/materials.pdf">http://radsite.lbl.gov/radiance/refer/materials.pdf</a><br>
<br><br>Regards<br>Thomas<br><br><br><div class="gmail_quote">On Thu, Aug 20, 2009 at 1:58 PM, <span dir="ltr"><<a href="mailto:francesco.frontini@polimi.it">francesco.frontini@polimi.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear all,<br>
I am running a simulation test to asses if Radiance calculates correctly the refraction inside a dielectric material. (Snell law n1*sin(A1) = n2sin(A2) ).<br>
<br>
<br>
I build up two identical geometry one with a dielectric pane and the second without. The direct light can pass through a gap between two plastic surfaces.<br>
<br>
<br>
Using just direct calculation (sun) I should have two identical bright stripes in dimension but the one passing through the dielectric panel should be shifted due to the refraction in the dielectric pane.<br>
<br>
I copy and paste down the geometry and the material definition.<br>
<br>
I am running the following command:<br>
<br>
cat sensor.grd |rtrace -h -I -ab 0 test-1.oct | rcalc -e '$1=47.4*$1+120*$2+11.6*$3' > test-1-sensor1.out<br>
<br>
the file sensor.grd is the list of my sensor:<br>
<br>
X Y Z 0 0 1<br>
<br>
where:<br>
<br>
"X" is 2500 (for the case of the dielectric panel) or 7500 (for the case without the dielectric panel)<br>
<br>
"Y" is changing between 10 and 5000 (with a step of 0.1)<br>
<br>
"Z" is 0.01<br>
<br>
the simulation results are not clear to me.<br></blockquote></div><br>