Skip to main content
RichardL712212682
Inspiring
December 21, 2019
Answered

Digging for GLFW sample with after effects SDK

  • December 21, 2019
  • 3 replies
  • 1294 views

Hey guys,

I'm looking for anything that could get be started using GLFW inside an AE panel plugin.

I intend to bring IMGUI to build the panel UI.

 

Suggestions?

This topic has been closed for replies.
Correct answer RichardL712212682

I have successfully rendered IMGUI inside the Panelator example.

The key was to create an opengl view as a child to the root NSView.
Then initialise IMGUI properly.



3 replies

RichardL712212682
Inspiring
December 28, 2019

The keyboard and mouse input are now working when docked.
When not docked, the input are very flaky.

RichardL712212682
RichardL712212682AuthorCorrect answer
Inspiring
December 23, 2019

I have successfully rendered IMGUI inside the Panelator example.

The key was to create an opengl view as a child to the root NSView.
Then initialise IMGUI properly.



December 24, 2019

Ah, cool, good to know!

 

RichardL712212682
Inspiring
December 24, 2019

Now, if I can find a way to pass down the key and mouse events, we are good to go!
I'll host this sample on github soon for this community.

December 23, 2019

Using OpenGL and/or GLFW as a processing algorithm in the main window is not really that complicated, as long as you keep and manage your own rendering context and do the proper context switching. You then have to convert the input pixel buffers (in RAM) that you get from the render call and convert them to OpenGL textures, upload them to your GL context and process them there. The result needs to be converted back then into a RAM buffer (e.g. by reading out the backbuffer or a texture).

This all however only applies to the pixel processing in the main window, not to a panel UI or the effect parameter panel. I don't think it is possible to do this in a simple way.