<div dir="ltr">Hey folks,<div><br></div><div>Indeed, vector socket like the SSS radius is the way to go.</div><div><br></div><div>As for presets, I think we should have this as a todo for a later stage. We could benefit with presets for many areas, such as wavelengths, color temperatures, SSS presets like BI, and even complete material setups.</div>

<div>This is not a new idea of course, I just think if we&#39;re to add presets for certain things, we should begin doing the same for others similarly.</div><div><br></div><div>Instead of (or in addition to) presets, some nice documentation with those measured Eta and K values will be important - I&#39;ve little experience with this sort of physically based shading, but if you need any help with the documentation I&#39;d be glad to.</div>

<div><br></div><div>Great job on this Lukas :) I&#39;ve no doubt many folk will appreciate it.</div><div><br></div><div>Cheers,</div><div>Greg Zaal</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 26 December 2013 20:23, Thomas Dinges <span dir="ltr">&lt;<a href="mailto:blender@dingto.org" target="_blank">blender@dingto.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oh and I forgot, we already have a fresnel_conductor() function, which<br>
is currently unused in bsdf_util.h, maybe you can re-use that?<br>
For OSL you would need to copy the code into node_fresnel.h, and include<br>
this in the OSL shader then.<br>
<br>
Am 26.12.2013 19:17, schrieb Thomas Dinges:<br>
<div class="HOEnZb"><div class="h5">&gt; Hi,<br>
&gt; looks good already, thank you.<br>
&gt;<br>
&gt; I wouldn&#39;t go with color sockets, that is weird, as the resulting color<br>
&gt; is not what the user sets. Probably it would be better to use vector<br>
&gt; sockets for this, but I leave this decision to Brecht. (We already use<br>
&gt; the Vector socket for SSS RGB Radius).<br>
&gt;<br>
&gt; As for presets, not sure. We don&#39;t have presets yet for (Shading) Nodes,<br>
&gt; but maybe this could be added.<br>
&gt;<br>
&gt; Also on a side note, maybe you&#39;d like to use this here to upload<br>
&gt; patches: <a href="https://developer.blender.org/differential/diff/create/" target="_blank">https://developer.blender.org/differential/diff/create/</a><br>
&gt; This way its easier to review the code and we have all infos/patches in<br>
&gt; one place. :)<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Thomas<br>
&gt;<br>
&gt; Am 26.12.2013 17:45, schrieb Lukas Stockner:<br>
&gt;&gt; Wow, adding a node was really difficult, but I got it working. Attached is a<br>
&gt;&gt; patch that adds a &quot;Conductive BSDF&quot; which just calculates reflectance based on<br>
&gt;&gt; the Fresnel equation for conductors.<br>
&gt;&gt;<br>
&gt;&gt; Its inputs are Eta and K, the coefficients of the complex IOR, and Roughness. It<br>
&gt;&gt; supports Sharp, Beckmann and GGX microfacets. Performance and sampling look<br>
&gt;&gt; just as good as the Glossy BSDF. I haven&#39;t tried the OSL version yet since I<br>
&gt;&gt; can&#39;t get it to build, but the shader itself works in standard 2.69.7 in the<br>
&gt;&gt; script node. GPU should work, but not tested since my GPU still is Compute<br>
&gt;&gt; Capability 1.3.<br>
&gt;&gt;<br>
&gt;&gt; Two questions remain: First, how should the ETa and K values be input?<br>
&gt;&gt; Currently, since thay are RGB, they just show up as a color. However, their<br>
&gt;&gt; compontents can easily reach 5 and higher. 6 Sliders, on the other hand, ane<br>
&gt;&gt; probably overkill. Second, should there be a set of preset coefficients to<br>
&gt;&gt; choose from (like in the LuxRender plugin), or just a list somewhere in the<br>
&gt;&gt; Wiki?<br>
&gt;&gt;<br>
&gt;&gt; I have rendered a simple demo, the image is on<br>
&gt;&gt; <a href="http://postimg.org/image/70vyf00yp/" target="_blank">http://postimg.org/image/70vyf00yp/</a> . From left to right, the materials are:<br>
&gt;&gt; Silver, Gold, Chrome, Copper and Aluminium. The coefficients are simply from<br>
&gt;&gt; multiplication of the PBRT measurements with the CIE XYZ curves and a<br>
&gt;&gt; transform to sRGB. If someone is interested, I could post an Octave script for<br>
&gt;&gt; it.<br>
&gt;&gt;<br>
&gt;&gt; Lukas Stockner<br>
&gt; _______________________________________________<br>
&gt; Bf-cycles mailing list<br>
&gt; <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br>
_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</div></div></blockquote></div><br></div>