OpenGL support in OpenFX plugins in DaVinci Resove

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message

Roman Kudinov

  • Posts: 4
  • Joined: Fri Jun 16, 2017 2:27 pm

OpenGL support in OpenFX plugins in DaVinci Resove

PostWed Jul 26, 2017 8:48 am


I develop OpenFX plugin and can't make Resolve to render in OpenGL mode. Does anyone know if DaVinci Resolve supports rendering in OpenGL mode?

In kOfxActionDescribe I check the value of kOfxImageEffectPropOpenGLRenderSupported in the host property set. It is set to "true". Then I set this property to true to the effect's property set.

Code: Select all
    const char *oglSupport = NULL;
    gPropHost->propGetString(gHost->host, kOfxImageEffectPropOpenGLRenderSupported, 0, &oglSupport);
    std::cout << "oglSupport = " << oglSupport << std::endl;          //olgSupport == "true"
    // get the property handle for the plugin
    OfxPropertySetHandle effectProps;
    gEffectHost->getPropertySet(effect, &effectProps);
    //enable OpenGL processing
    gPropHost->propSetString(effectProps, kOfxImageEffectPropOpenGLRenderSupported, 0, "true");

I can fetch pointer to kOfxOpenGLRenderSuite suite successfully.

BUT! kOfxActionOpenGLContextAttached is never called and kOfxImageEffectPropOpenGLEnabled is not set during kOfxImageEffectActionRender action.

Code: Select all
        int oglEnabled = -1;
   status = gPropHost->propGetInt(inArgs, kOfxImageEffectPropOpenGLEnabled, 0, &oglEnabled);

oglEnabled == -1 always

What am I doing wrong?


Return to Software Developers

Who is online

Users browsing this forum: No registered users and 3 guests