CustomUI OpenGL context

New Here ,
Jan 31, 2020

Copy link to clipboard

Copied

Hi there!

Is it possible to draw with OpenGL to the custom UI layer?

Thanks for your help!

TOPICS
SDK

Views

280

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Most Valuable Participant ,
Jan 31, 2020

Copy link to clipboard

Copied

Not that I know. That's not least of all why any tools that use such functions like Sapphire, Particular, Element 3D and so on use custom windows with their own OpenGL client implementation for their editors.

 

Mylenium

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Feb 04, 2020

Copy link to clipboard

Copied

well, the custom UI can only be drawn to using the drawbot suite. however, in that suite you can pass an arb buffer to create a drawbot image, and then draw that image into the drawbot context.

meaning, you can draw using any source (cairo is a popular choice among devs) and copy the result into the drawbot context.

so i don't see any reason why openGL coundln't be used in exactly the same way.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
New Here ,
Feb 06, 2020

Copy link to clipboard

Copied

Draw buffer was my initial workaround. In my case, this approach doesn't work as it produces high traffic between GPU and CPU. Given that accessing GPU memory from CPU is relatively slow it won't give enough performance ;-(

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Feb 06, 2020

Copy link to clipboard

Copied

yeah, sometimes the overhead of the data transfer to the GPU makes it not worth the process.

bummer.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Roman Belov AUTHOR LATEST
New Here ,
Sep 28, 2020

Copy link to clipboard

Copied

Hi Shachar,

Do you know any best practices to speedup DrawImage drawbot method? Probably there's a way to have a direct access to drawable memory or something. Currently, it takes more than 1/10 sec to redraw the 1920x1080 buffer which is too slow for a responsive interface. Probably performance could be improved if it's known that the buffer is always of the same size?

Likes

Translate

Translate

Report

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