[Bf-cycles] OpenGL context

Mohamed Sakr 3dsakr at gmail.com
Wed Jan 27 13:14:08 CET 2016


Hi Nathan,

thanks for the info "I already read that file".
what if background = false, and no OpenGL context?

On 1/27/16, Nathan Letwory <nathan at mcneel.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 26/01/2016 17:03, Mohamed Sakr wrote:
>> I wanted to know where does Cycles connect to an OpenGL context. so
>> if background = false, I couldn't figure out how does Cycles know
>> which window to draw to?? "can I ignore the window drawing??"
>
> It is the job of the code that drives Cycles to provide an OpenGL
> context. For the stand-alone application this code is in
> util/util_view.cpp [1]. In the case of Blender, well, it is Blender
> managing the OpenGL context.
>
> For instance with CCSycles one could use OpenTK to create a window
> with an OpenGL context.
>
> /Nathan
>
> [1]
> https://developer.blender.org/diffusion/C/browse/master/src/util/util_vi
> ew.cpp
>
> - --
> Nathan Letwory
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQEcBAEBCAAGBQJWqI+2AAoJEKtfN7KsE0Ttg6UIAKxqC5R5nDImev/B6T1hri7I
> CqQcmQ82wQgJjwqPZdvPevs7l5xvUNo4snO9I2w5a+ZE+EQPFvbtYrJxqsgpenWU
> jM84qCFgjjP06iqju1namZxjShWKwnV39G9/l5265wNSudlvaO/k1XqZvDfWTb2G
> 9RLm8yGHXy6OrEM9+SOBWyv2XDu7uP9BXtAK/FMF1RJjIRa3cqmLziULn21HLBNZ
> inN4hL4DVCnvmQnFqoqQK6Ku5eIvPRLGK04ZqlNJeJtLfaB05D3w05/XZP8W8SNP
> +bYN+5kARiFb7vo8gfHpYsmyMy4yTKgg5KLXUMpAxn37EpmzGom0K1BSkJ30EQg=
> =weEm
> -----END PGP SIGNATURE-----
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> http://lists.blender.org/mailman/listinfo/bf-cycles
>


More information about the Bf-cycles mailing list