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

CustomUI OpenGL context

New Here ,
Jan 31, 2020 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

498

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
LEGEND ,
Jan 31, 2020 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

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
Community Expert ,
Feb 04, 2020 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.

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
New Here ,
Feb 06, 2020 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 ;-(

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
Community Expert ,
Feb 06, 2020 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.

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
New Here ,
Sep 28, 2020 Sep 28, 2020

Copy link to clipboard

Copied

LATEST

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?

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