Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Digging for GLFW sample with after effects SDK

Explorer ,
Dec 21, 2019 Dec 21, 2019

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?

TOPICS
SDK
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Dec 23, 2019 Dec 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.

Screen Shot 2019-12-23 at 12.27.36.png

Translate
Guest
Dec 23, 2019 Dec 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 23, 2019 Dec 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.

Screen Shot 2019-12-23 at 12.27.36.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 23, 2019 Dec 23, 2019

Ah, cool, good to know!

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 24, 2019 Dec 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 27, 2019 Dec 27, 2019
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines