<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
Thank you!</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
For future readers: <span style="background-color: rgba(0, 0, 0, 0);">scene->default_light->use_mis = true; is needed too.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> Bf-cycles <bf-cycles-bounces@blender.org> en nombre de Lukas Stockner <lukas.stockner@freenet.de><br>
<b>Enviado:</b> domingo, 25 de febrero de 2018 17:39<br>
<b>Para:</b> bf-cycles@blender.org<br>
<b>Asunto:</b> Re: [Bf-cycles] Enabling multiple importance sampling and increasing its resolution</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
Hi,</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
the relevant code in Blender's Cycles integration is BlenderSync::sync_background_light.</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
In short, you need to add a Light with type LIGHT_BACKGROUND, set its use_mis flag to true and set its map_resolution to the resolution you want to use and its shader to the world background shader.<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top: 0px; margin-bottom: 0px;">
- Lukas<br>
</p>
<br>
<div class="x_moz-cite-prefix">Am 25/02/2018 um 14:52 schrieb F Escobar:<br>
</div>
<blockquote type="cite">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
I've seen several tutorials on the internet about this like <a href="https://www.youtube.com/watch?v=8MYDuWn-PoA" id="LPlnk630913">https://www.youtube.com/watch?v=8MYDuWn-PoA</a></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
But I didn't found any way to do it programatically. I've found a flag to enable mip on the shader but it seems to have no effect (lots of white fireflies on the render) and I cannot figure where I could change its resolution.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgba(0,0,0,0)">
Thank you in advance, F.</div>
<div id="LPBorder_BVTaHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g:dj04TVlEdVduLVBvQQ.." class="x_LPBorder428118" style="width: 100%; margin-top: 16px; margin-bottom: 16px; max-width: 800px; min-width: 424px; position: relative;">
<table id="LPContainer428118" style="padding:12px 36px 12px 12px; width:100%; border-width:1px; border-style:solid; border-color:rgb(200,200,200); border-radius:2px">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td>
<div id="LPImageContainer428118" style="margin-right: 12px; height: 134.4px; overflow: hidden; width: 240px; position: relative;">
<a target="_blank" id="LPImageAnchor428118" href="https://www.youtube.com/watch?v=8MYDuWn-PoA"><img data-imagetype="External" id="LPThumbnailImageId428118" alt="" height="134" width="240" style="display:block" src="https://www.bing.com/th?id=OVP.M5sXhNKPyWjnTGdY6wlLcwEsCo&pid=Api"></a></div>
</td>
<td style="width:100%">
<div id="LPTitle428118" style="font-size:21px; font-weight:300; margin-right:8px; font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; margin-bottom:12px">
<a target="_blank" id="LPUrlAnchor428118" href="https://www.youtube.com/watch?v=8MYDuWn-PoA" style="text-decoration:none; color:rgb(0,120,215)">Blender HDRI Tutorial: Cycles</a></div>
<div id="LPDescription428118" style="font-size:14px; max-height:100px; color:rgb(102,102,102); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; margin-bottom:12px; margin-right:8px; overflow:hidden">
A quick tutorial on HDR lighting in Blender Cycles, specifically focusing on using high resolution images with small, bright light sources, and how to fix 'fire flies ...</div>
<div id="LPMetadata428118" style="font-size:14px; font-weight:400; color:rgb(166,166,166); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif">
<a class="x_moz-txt-link-abbreviated" href="http://www.youtube.com">www.youtube.com</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
Bf-cycles mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a>
<a class="x_moz-txt-link-freetext" href="https://lists.blender.org/mailman/listinfo/bf-cycles">https://lists.blender.org/mailman/listinfo/bf-cycles</a>
</pre>
</blockquote>
<br>
</div>
</body>
</html>