<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p><br>
</p>
<p>the relevant code in Blender's Cycles integration is
BlenderSync::sync_background_light.</p>
<p>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><br>
</p>
<p>- Lukas<br>
</p>
<br>
<div class="moz-cite-prefix">Am 25/02/2018 um 14:52 schrieb F
Escobar:<br>
</div>
<blockquote type="cite"
cite="mid:AM5PR0801MB17000882E46F3014E9F14B6DCEC20@AM5PR0801MB1700.eurprd08.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<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" moz-do-not-send="true">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="LPBorder428118" style="width: 100%; margin-top: 16px;
margin-bottom: 16px; position: relative; max-width: 800px;
min-width: 424px;" contenteditable="false">
<table id="LPContainer428118" role="presentation"
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 style="border-spacing: 0px;" valign="top">
<td>
<div id="LPImageContainer428118" style="position:
relative; margin-right: 12px; height: 134.4px;
overflow: hidden; width: 240px;">
<a target="_blank" id="LPImageAnchor428118"
href="https://www.youtube.com/watch?v=8MYDuWn-PoA"
istemptitle="true" moz-do-not-send="true"><img
id="LPThumbnailImageId428118" alt=""
style="display: block;"
src="https://www.bing.com/th?id=OVP.M5sXhNKPyWjnTGdY6wlLcwEsCo&pid=Api"
moz-do-not-send="true" height="134" width="240"></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);" istemptitle="true" moz-do-not-send="true">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="moz-txt-link-abbreviated" href="http://www.youtube.com">www.youtube.com</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Bf-cycles mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a>
<a class="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>
</body>
</html>