You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this code, the InitGL and UpdateGL used to initialize program and VAO data, as well as the DrawElements section, are the same as what I wrote in GLWpfControl's OnRender(). Here, I want to achieve off screen rendering by binding my own framebuffer to OffScreenRender(), but this framebuffer does not work, when I read by ReadPixels from this buffer, all data in pixels is 0. I want to save the content rendered in GLWpfControl to an image through off screen rendering. What should I do?
The text was updated successfully, but these errors were encountered:
I wrote a piece of code in a GLWpfControl ,Like below, but it doesn't work:
In this code, the InitGL and UpdateGL used to initialize program and VAO data, as well as the DrawElements section, are the same as what I wrote in GLWpfControl's OnRender(). Here, I want to achieve off screen rendering by binding my own framebuffer to OffScreenRender(), but this framebuffer does not work, when I read by ReadPixels from this buffer, all data in pixels is 0. I want to save the content rendered in GLWpfControl to an image through off screen rendering. What should I do?
The text was updated successfully, but these errors were encountered: