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

Digging for GLFW sample with after effects SDK

Explorer ,
Dec 21, 2019 Dec 21, 2019

Copy link to clipboard

Copied

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

Views

816

Translate

Translate

Report

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

Votes

Translate

Translate
Guest
Dec 23, 2019 Dec 23, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Ah, cool, good to know!

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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