Copy link to clipboard
Copied
Hi there!
Is it possible to draw with OpenGL to the custom UI layer?
Thanks for your help!
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
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.
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 ;-(
Copy link to clipboard
Copied
yeah, sometimes the overhead of the data transfer to the GPU makes it not worth the process.
bummer.
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?