Closed jayzhen521 closed 1 month ago
eglCreatePbufferSurface
is not yet supported in the GL backend for Android, but I'll put it on my todo list since I'm already actively making updates for Android support.
Can you share how your app is intending to use LLGL for offscreen rendering only? On Desktop your app could be entirely a background application, but I'm not aware of Android apps allowing to run entirely in the background at least I never heard of such an app that also uses GPU rendering.
My application is a video editor, similar to After Effects but relatively simpler. Users can edit and preview scenes, then export the final video. I plan to use off-screen rendering during video export, and during this process, it might display rendering progress or advertisements. Do you have any better suggestions? This is a workflow that I came up with myself.
I see, so your app is still drawing to a surface but you need the GL rendering to happen in the background, into a pbuffer that is. I can try porting the Offscreen example to Android and we can go from there.
Great, I look forward to seeing your updates soon!!!
Excuse me, can the development of off-screen rendering of opengles be advanced, or tell me when it will start, we really need this feature. I really appreciate your help!
I’m on vacation right now, but I might be able to continue with the Android support this weekend. If this is urgent, you can try to extend AndroidGLContext
and AndroidGLSwapChainContext
to create a pbuffer surface instead of a window surface.
Enjoy your time! There's no rush on my end.
I started with porting the C99 examples, especially the Offscreen example, to Android with f31eb23. This introduced the Pbuffer EGLSurface but needs testing. I'll see if I can find some time this week to continue with this.
With ffadc60, I ported the Offscreen C99 example to Android which does not require a native window to render into the Pbuffer. The result is written to the Documents/ folder as shown below (tested on a Galaxy Tab A8):
Thank you very much for your previous help. My app can be previewed on Android, but I don't know how to do off-screen rendering. I didn't find any code related to eglCreatePbufferSurface in the source code. In your submission, you mentioned that LLGL can do offscreen rendering, but I don't know how to do it. Can you give me some tips?: