OpenGL support in DaVinci Resolve

252 views
Skip to first unread message

Roman Kudinov

unread,
Jul 25, 2017, 5:55:27 PM7/25/17
to ofx-discussion
Hi folks,

Does anyone know if DaVinci Resolve supports rendering in OpenGL mode? It doesn't work for me.

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.


    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.


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

oglEnabled == -1 always

What am I doing wrong?


Thanks,
Roman 


PierreJasmin_REVisionEffects

unread,
Jul 25, 2017, 8:06:40 PM7/25/17
to ofx-discussion

You might have more successful asking the question to BMD directly on their website support or forum

That said, do you have more than a GPU?
They might deactivate the suite it if you have more than 1 GPU

If you only want to support BMD they support a derivative of their own which gets installed with Resolve somewhere on your disk.

Pierre

Roman Kudinov

unread,
Jul 26, 2017, 4:44:06 AM7/26/17
to ofx-discussion
I'll ask on their forum. Though it seems to be less responsive than this group.

I have a single GPU. I tried with integrated Intel GPU and with NVidia 950 GTX. The same result on both. It looks very much like I miss setting of some properties.

Despite this situation I implemented OpenGL rendering and generate textures from the in-memory frames myself, it works fine on OSX, but on Windows it works a way slow, the delays seem to appear because DaVinci uses OpenGL as well and simultaneous calls to GPU driver slows things down. 
Reply all
Reply to author
Forward
0 new messages