<div dir="ltr"><i><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">I did now add an alpha threshold per render layer which should make</span><br style="font-family:arial,sans-serif;font-size:12.800000190734863px">
<span style="font-family:arial,sans-serif;font-size:12.800000190734863px">render passes work a bit better with fully transparent surfaces. Not</span><br style="font-family:arial,sans-serif;font-size:12.800000190734863px">
<span style="font-family:arial,sans-serif;font-size:12.800000190734863px">quite what you asked for, but this had been on my To Do for a while.</span><br style="font-family:arial,sans-serif;font-size:12.800000190734863px">
<a href="https://developer.blender.org/rBa41648c1dc58f" target="_blank" style="font-family:arial,sans-serif;font-size:12.800000190734863px">https://developer.blender.org/rBa41648c1dc58f</a></i><div class="" style="font-family:arial,sans-serif;font-size:12.800000190734863px">
<div id=":1y9" class="" tabindex="0"><i><img class="" src="https://mail.google.com/mail/u/0/images/cleardot.gif" style=""></i></div><div id=":1y9" class="" tabindex="0">Well this does solve a lot of shortcomings. Thanks.</div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-06 Brecht Van Lommel <span dir="ltr">&lt;<a href="mailto:brechtvanlommel@pandora.be" target="_blank">brechtvanlommel@pandora.be</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Feb 5, 2014 at 10:12 PM, David Fenner &lt;<a href="mailto:d4vidfenner@gmail.com">d4vidfenner@gmail.com</a>&gt; wrote:<br>

&gt; The thing about transparency counted on material override is that, for<br>
&gt; example, you wan&#39;t to make a custom light moving around the scene but only<br>
&gt; to be composed later. You could make all a grey shader for the render layer<br>
&gt; to render fast, but if you use leaves or any transparent surface (or in the<br>
&gt; future displacement) you get wrong results and the little planes would start<br>
&gt; to appear in the render, instead of leaves. If displacement is implemented,<br>
&gt; the surfaces would also have wrong shape. So render layer override taking<br>
&gt; into account original shader displacement and transparency (only if its<br>
&gt; full, no need for partial transparency) would be ideal for custom render<br>
&gt; passes, rim lights, animated lights, gunfire lights, you name it. I know<br>
&gt; this maybe isn&#39;t about technical/code optimizations, but the ability to do<br>
&gt; this could make render custom passes way faster, so it does optimize the<br>
&gt; lighting workflow.<br>
&gt; Currently, lighting or texturing in any compositor is also impossible<br>
&gt; because normal and uv pass don&#39;t take transparency into account, therefore<br>
&gt; in the same leave example you end up lighting planes instead of leaves. So<br>
&gt; it isn&#39;t possible with a custom render layer in 3D and it&#39;s also impossible<br>
&gt; with fake compositor lights based on normal / z / uv pass.<br>
<br>
</div>Ok, I see what you&#39;re getting at, I was thinking too much of partial<br>
transparency, with binary transparency it&#39;s easier to do things in<br>
compositing. Making it possible to do lighting and texturing in the<br>
compositor is not something I&#39;ve tried to optimize. We can do a lot<br>
better here, it&#39;s not really a workflow I&#39;ve considered a priority.<br>
<br>
Making override materials more flexible in what they affect would be<br>
useful. There&#39;s also some other possibilities like giving access to<br>
the current render layer in shader nodes, so you could do this kind of<br>
thing in nodes setups, although that&#39;s not as convenient always. I&#39;ll<br>
think about this more, but don&#39;t really consider it as something to<br>
tackle as part of this performance project, just general features that<br>
can be added at some point.<br>
<br>
I did now add an alpha threshold per render layer which should make<br>
render passes work a bit better with fully transparent surfaces. Not<br>
quite what you asked for, but this had been on my To Do for a while.<br>
<a href="https://developer.blender.org/rBa41648c1dc58f" target="_blank">https://developer.blender.org/rBa41648c1dc58f</a><br>
<div class="HOEnZb"><div class="h5"><br>
Brecht.<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>