The general question is: is there a way to create an OpenGL context on Linux without using GLX, and without having to mess around too much with the system?

I think the short answer is "No", unless (maybe) you're using a custom card driver that doesn't require X.

To my knowledge, Nuke doesn't use OpenGL to accelerate any processing outside of some viewer transforms and node operations in GUI mode; its real GPU acceleration functionality is currently built on CUDA.

-Nathan


-----Original Message----- From: Peter Kaufmann
Sent: Wednesday, June 04, 2014 2:12 AM
To: Nuke plug-in development discussion
Subject: [Nuke-dev] Using OpenGL in a plugin running on a Linux render node

Hi all,

The following boils down to a more generic question, but is also related
to Nuke plugins so might be interesting to developers on this list.

I'm writing a Nuke plugin that (internally) uses OpenGL to perform some
of its processing. To do this I'm creating my own OpenGL context using
platform-specific APIs (e.g. GLX on Linux) and then do the rendering
using OpenGL commands. This works fine on all desktop platforms (Linux,
Win, OS X), but fails on the render farm because on the render nodes,
Nuke is not running in an instance of X Windows, so GLX is not
available, and creating the context fails. The nodes have beefy gfx
cards, so we would like to put them to use.

My question is: does anyone know about a way to make use of OpenGL on a
Linux render node without using X? It looks to me like Nuke also uses
OpenGL to accelerate some of its processing, so I guess the problem
somehow got solved there. The general question is: is there a way to
create an OpenGL context on Linux without using GLX, and without having
to mess around too much with the system? Or is there no easy way around
X to get accelerated OpenGL on Linux?

Thanks,
Peter

_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to