[Bf-committers] Multiple OpenGL Windows?

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Jul 4 13:31:28 CEST 2013

I found some suspicious code in Blender that would set the environment
variable SDL_VIDEODRIVER=dummy. I'm not sure if that's the cause of
the problem, but I would expect such environment variables to
influence child processes. That code is removed now in svn revision
57992 or newer, please test if it helps.

On Thu, Jul 4, 2013 at 1:29 AM, Sinan Hassani <[email redacted]> wrote:
> Hi,
> So I'm creating a plug-in that uses BGE's interface to run an external
> game engine (Urho3D). I add custom buttons to BGE and implement my own
> draw functions.
> However when I launch the engine, I get an error:
> ERROR: Could not open window
> I'm using Python's "subprocess.Popen" to launch the engine, and I've
> even tried os.system, and other similar python functions and methods
> (like executing a .sh script directly for example).
> Urho3D uses SDL 2.0 to create a window and opengl context on Linux, and
> it looks like it doesn't like to launch from within Blender. If I launch
> it from a shell script it runs fine.
> So for the time being I get Blender to prepare the shell script, but I
> have to go to a file manager or xterm to launch the engine.
> To fix this, is this something where the code has to be changed on the
> game engine side or is it something that has to be supported by Blender?
> Can Blender support multiple OpenGL Windows? I'm pretty sure it works
> for GameKit, why not an SDL 2.0 application?
> Sinan
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers

More information about the Bf-committers mailing list