<div dir="ltr"><div style><span style="font-family:arial,sans-serif;font-size:13px">Hi Storm,</span></div><span style="font-family:arial,sans-serif;font-size:13px"><div><span style="font-family:arial,sans-serif;font-size:13px"><br>

</span></div>&gt; Bidirectional can do some cool images (posting now Jay Hardy kitchen </span><span style="font-family:arial,sans-serif;font-size:13px">example to testing therad on</span><br style="font-family:arial,sans-serif;font-size:13px">

&gt; <a href="http://blenderartists.org/forum/showthread.php?216866-Cycles-tests-the-new-blender-CPU-GPU-renderer-of-awesomeness&amp;p=2329482&amp;viewfull=1#post2329482" target="_blank" style="font-family:arial,sans-serif;font-size:13px">http://blenderartists.org/forum/showthread.php?216866-Cycles-tests-the-new-blender-CPU-GPU-renderer-of-awesomeness&amp;p=2329482&amp;viewfull=1#post2329482</a><div>

<font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">It&#39;s hard to tell from the two images whether this compare or surpass trunk quality/performance.</font></div><div><font face="arial, sans-serif">Can you post the same  file rendered in the same machine but with trunk instead</font><span style="font-family:arial,sans-serif">?</span></div>

<div><span style="font-family:arial,sans-serif"><br></span></div><div style><span style="font-family:arial,sans-serif">It&#39;s nice to see progress in both fronts (volumetric and bi-di) regardless :)</span></div><div style>

<span style="font-family:arial,sans-serif"><br></span></div><div style><span style="font-family:arial,sans-serif">( btw, I love that kitchen scene, I use it for benchmarks as well </span><a href="http://goo.gl/DFy98">http://goo.gl/DFy98</a> )</div>

<div style><span style="font-family:arial,sans-serif"><br></span></div><div style><span style="font-family:arial,sans-serif">Thanks,</span></div><div style><span style="font-family:arial,sans-serif">Dalai</span></div><div>

<font face="arial, sans-serif"><br></font><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div></div><div class="gmail_extra"><br clear="all"><div><a href="http://blendernetwork.org/member/dalai-felinto" target="_blank">blendernetwork.org/member/dalai-felinto</a><br>

<a href="http://www.dalaifelinto.com" target="_blank">www.dalaifelinto.com</a></div>
<br><br><div class="gmail_quote">2013/3/13 storm <span dir="ltr">&lt;<a href="mailto:kartochka22@yandex.ru" target="_blank">kartochka22@yandex.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Thanks.<br>
<br>
Yes, that was plan, but Blender is very big project, one man can barely<br>
understand every module, from probability theory to compiler graph<br>
theory and other inverse kinematics, graph black magic, so i deside do<br>
not burden core developers until patch pass some my own test and then<br>
wider testing by blender community, only then it can be passed to other<br>
developer attention.<br>
<br>
I am in very beginning state, patch do not pass my own testing, need fix<br>
3 bugs at least - final render crasher (so nobody will say &quot;that your<br>
Blender is crap, it crash immediately as i hit F12 to render defaul<br>
cube, i go Maya instead and never return&quot; when download new shiny<br>
ghaphicall build &quot;now with bidirectional volume spectral sampling&quot;),<br>
Adjoint BSDF (need duplicate and rewrite a bit almost every BSDF to<br>
respect difference between geometry normal and smooth normal) - lot of<br>
code, better postpone for late as it affect shaders system, that can be<br>
changed in core Cycles for some reason, to not do work twice, and ray<br>
visibility flags, as many scenes have hidden emission plains and other<br>
tricks.<br>
<br>
Only then call for some test build on graphicall, maybe with few example<br>
scenes to save ppl time changing endless debug checkboxes in integrator<br>
property panel. Then, after some time (~month?) if get community<br>
positive answer to question &quot;is it needed at all, maybe better drop it<br>
and go only Path tracer way?&quot; call for core Blender team support, maybe<br>
some sort of official branch. Ideally, it must work somehow on GPU,<br>
maybe in very cutted form, but main MIS paths must work and benchmarked.<br>
<br>
The problem is that bidirectoinal thing a bit complicated (although very<br>
vell described in Veach dissertation, and many pbrt-derived projects<br>
exist), i suspect that everyone that get how it work tend to run away to<br>
commercial dark side, and it is better to faster make base that can be<br>
later expanded by ppl with less knowledge to probability theory, but<br>
skilled in other related parts (like code optimization or good knowledge<br>
of GPU internals), but that base at least must produce absolutely<br>
correct image, and have all math algorithms in place. Now i have almost<br>
good picture, but terrific &quot;obfscated&quot; by leftower code, and unresolved<br>
adjoint bsdfs. I must solve it myself to save other time.<br>
<br>
In short, current state is volume things guarantee some work with bidir<br>
off, and only background used as only light. Anything other have issues.<br>
<br>
Bidirectional can do some cool images (posting now Jay Hardy kitchen<br>
example to testing therad on<br>
<a href="http://blenderartists.org/forum/showthread.php?216866-Cycles-tests-the-new-blender-CPU-GPU-renderer-of-awesomeness&amp;p=2329482&amp;viewfull=1#post2329482" target="_blank">http://blenderartists.org/forum/showthread.php?216866-Cycles-tests-the-new-blender-CPU-GPU-renderer-of-awesomeness&amp;p=2329482&amp;viewfull=1#post2329482</a>), but only one man can set it up and not crash - I am. If you very adventurous and lucky, you can make some street light in fog town scene (be ready for 2+ hours minimum to start to see some solhoettes of light beams).<br>


<br>
В Ср, 13/03/2013 в 21:32 -0400, Matthew Heimlich пишет:<br>
<div class="HOEnZb"><div class="h5">&gt; Very cool stuff Storm, but without context it&#39;s kind of hard to follow<br>
&gt; what is/isn&#39;t working in the current condition of the patch. Do you<br>
&gt; think you could do another post to the mailing list with a simple list<br>
&gt; like:<br>
&gt;<br>
&gt; Volumes:<br>
&gt;<br>
&gt; This works:<br>
&gt; 1. ...<br>
&gt; 2. ...<br>
&gt; 3. ...<br>
&gt; etc.<br>
&gt;<br>
&gt; This doesn&#39;t work:<br>
&gt; 1. ...<br>
&gt; 2. ...<br>
&gt; 3. ...<br>
&gt; etc.<br>
&gt;<br>
&gt; BiDirectional:<br>
&gt;<br>
&gt; This works:<br>
&gt;<br>
&gt; This doesn&#39;t work:<br>
&gt;<br>
&gt;<br>
&gt; I think it would be very helpful for sorting out the status of your progression.<br>
&gt;<br>
&gt; And congrats on crushing an old, annoying bug!<br>
&gt;<br>
&gt; Thanks, keep up the good work,<br>
&gt;<br>
&gt; Matt Heimlich<br>
&gt;<br>
&gt; On Wed, Mar 13, 2013 at 9:10 PM, storm &lt;<a href="mailto:kartochka22@yandex.ru">kartochka22@yandex.ru</a>&gt; wrote:<br>
&gt; &gt; It Working !1!1111<br>
&gt; &gt;<br>
&gt; &gt; Fixed very stupid off-by-one array index offset in backward pdf<br>
&gt; &gt; calculation. I must admit, that bug tortured me more then 6 months if<br>
&gt; &gt; not longer. The problem it affect only paths with 2 and more bounces,<br>
&gt; &gt; and as energy usually lower it was barely noticeable on test scenes, and<br>
&gt; &gt; i have plenty of theories why sometime color bleeding too bright,<br>
&gt; &gt; blaming everything, from compiler optimizer up to FPU flaw. Now that<br>
&gt; &gt; nightmare over and my mind got a chance to stay clear.<br>
&gt; &gt;<br>
&gt; &gt; Many scenes converging so fast i cannot believe it possible (comparing<br>
&gt; &gt; to my old patch ofcourse, not other renderers) that bidirectional MIS is<br>
&gt; &gt; really cool stuff when it work (selected hard areas close to light<br>
&gt; &gt; covered by complex geometry).<br>
&gt; &gt;<br>
&gt; &gt; Also, i found that current algorithm that trying to track volime media<br>
&gt; &gt; material from light to camera direction is horrible, must to replace it<br>
&gt; &gt; by something different, so light sources inside object with volume media<br>
&gt; &gt; rendering wrong.<br>
&gt; &gt;<br>
&gt; &gt; Another bug is related to skin-like shaders, when &quot;mix&quot; or &quot;add&quot; used to<br>
&gt; &gt; combine other BSDF, then volume density get wrong values (i am think<br>
&gt; &gt; that random values used to mix clash with value used for distance or<br>
&gt; &gt; maybe other reason, but fact it completely broken), so only simple like<br>
&gt; &gt; single glass or transparent work.<br>
&gt; &gt;<br>
&gt; &gt; MLT replaced to more interactive approach, now you can set mutations to<br>
&gt; &gt; insane 25000 and get cool splashy useless pictures. But it force to<br>
&gt; &gt; single thread model as i do not want to hack deeper in Cycles and<br>
&gt; &gt; rewrite parts before kernel_integrate() call. I very doubt some one even<br>
&gt; &gt; test it, but must note that change.<br>
&gt; &gt;<br>
&gt; &gt; Other known bugs are same as previous patches, only preview window if<br>
&gt; &gt; light tracing enabled (segfault otherwise), only perspective camera w/o<br>
&gt; &gt; DoF, only flat triangles guarantee quality if bidirectional used, only<br>
&gt; &gt; zero size point and emission meshes as light sources (done sime initial<br>
&gt; &gt; support of spot lights, but it unfinished untested and buggy), no GPU,<br>
&gt; &gt; no OSL, no ray visibility flags respected for light-&gt;camera rays.<br>
&gt; &gt;<br>
&gt; &gt; Adjoint BSDF is next big target, as w/o it any surface with interpolated<br>
&gt; &gt; normals will have ugly errors, like flat with some weird gradients. In<br>
&gt; &gt; addition, I think that it is reason that bump not work for light-&gt;camera<br>
&gt; &gt; rays. No smooth surfaces, no bump maps -&gt; unusable for wide testing.<br>
&gt; &gt;<br>
&gt; &gt; Short plan: get rid of stupid XXX_compensation constants and other debug<br>
&gt; &gt; leftowers, make code close to Blender coding style.<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Bf-cycles mailing list<br>
&gt; &gt; <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
&gt; &gt; <a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
&gt; &gt;<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>
_______________________________________________<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>