<div dir="ltr">Then Device::draw_pixels will completely fail, since that&#39;s not how things were assumed to work.<div><br></div><div>What&#39;s the point of doing foreground render without display anyway?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 1:14 PM, Mohamed Sakr <span dir="ltr">&lt;<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nathan,<br>
<br>
thanks for the info &quot;I already read that file&quot;.<br>
what if background = false, and no OpenGL context?<br>
<div class="HOEnZb"><div class="h5"><br>
On 1/27/16, Nathan Letwory &lt;<a href="mailto:nathan@mcneel.com">nathan@mcneel.com</a>&gt; wrote:<br>
&gt; -----BEGIN PGP SIGNED MESSAGE-----<br>
&gt; Hash: SHA256<br>
&gt;<br>
&gt; On 26/01/2016 17:03, Mohamed Sakr wrote:<br>
&gt;&gt; I wanted to know where does Cycles connect to an OpenGL context. so<br>
&gt;&gt; if background = false, I couldn&#39;t figure out how does Cycles know<br>
&gt;&gt; which window to draw to?? &quot;can I ignore the window drawing??&quot;<br>
&gt;<br>
&gt; It is the job of the code that drives Cycles to provide an OpenGL<br>
&gt; context. For the stand-alone application this code is in<br>
&gt; util/util_view.cpp [1]. In the case of Blender, well, it is Blender<br>
&gt; managing the OpenGL context.<br>
&gt;<br>
&gt; For instance with CCSycles one could use OpenTK to create a window<br>
&gt; with an OpenGL context.<br>
&gt;<br>
&gt; /Nathan<br>
&gt;<br>
&gt; [1]<br>
&gt; <a href="https://developer.blender.org/diffusion/C/browse/master/src/util/util_vi" rel="noreferrer" target="_blank">https://developer.blender.org/diffusion/C/browse/master/src/util/util_vi</a><br>
&gt; ew.cpp<br>
&gt;<br>
&gt; - --<br>
&gt; Nathan Letwory<br>
&gt;<br>
&gt;<br>
&gt; -----BEGIN PGP SIGNATURE-----<br>
&gt; Version: GnuPG v2<br>
&gt;<br>
&gt; iQEcBAEBCAAGBQJWqI+2AAoJEKtfN7KsE0Ttg6UIAKxqC5R5nDImev/B6T1hri7I<br>
&gt; CqQcmQ82wQgJjwqPZdvPevs7l5xvUNo4snO9I2w5a+ZE+EQPFvbtYrJxqsgpenWU<br>
&gt; jM84qCFgjjP06iqju1namZxjShWKwnV39G9/l5265wNSudlvaO/k1XqZvDfWTb2G<br>
&gt; 9RLm8yGHXy6OrEM9+SOBWyv2XDu7uP9BXtAK/FMF1RJjIRa3cqmLziULn21HLBNZ<br>
&gt; inN4hL4DVCnvmQnFqoqQK6Ku5eIvPRLGK04ZqlNJeJtLfaB05D3w05/XZP8W8SNP<br>
&gt; +bYN+5kARiFb7vo8gfHpYsmyMy4yTKgg5KLXUMpAxn37EpmzGom0K1BSkJ30EQg=<br>
&gt; =weEm<br>
&gt; -----END PGP SIGNATURE-----<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" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
&gt;<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" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>