how to filp filament frame buffer upside down into a texture? #5058
forrestjgq
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys:
I'm working on rendering filament frame buffer into a texutre_2D so that it could be used for hardware H.264 encoding.
I tried read pixels at each rendering and copy CPU data to texture, it works but not satisfied me for performance reason.
So I changed some filament code so that I can got the pixel buffer from frame buffer, and then copy to texture like this:
this works, only everything is upside down: the first row becomes the last row...
like this:
I know happens because of NDC, but I don't know how to filp it without coping data to CPU memory.
Is there anyboy could be kind to give me a suggestion?
@yxlao @errissa @ssheorey
Beta Was this translation helpful? Give feedback.
All reactions