- Home /
Example of a working FBO texture copy for Android?
I'm trying to get a GL_TEXTURE_EXTERNAL_OES texture into unity. The source is decoded video frames which must be sent to a GL texture with the EXTERNAL target set.
So I believe the only way to get that texture into unity is to take a unity texture and perform an FBO copy from the external texture to the texture managed by unity. I believe this is how vuforia does it, but I don't believe they publish that source.
Does anyone have a working example or perhaps have another suggestion on how to get decoded video frames into unity android?
Answer by Lanre · Jun 15, 2016 at 10:17 PM
You shouldn't try to do this because the GL_TEXTURE_EXTERNAL_OES spec is much more restictive than the GL_TEXTURE_2D spec. Blit the external texture to a regular GL_TEXTURE_2D target (using and off-screen FBO) then pass that texture to Unity.
Your answer
Follow this Question
Related Questions
Transparent texture not rendering over video overlay on Android 0 Answers
How to record video from the screen on android and save it to gallery? 1 Answer
How to recover Auto Graphics API for Android back to default? 0 Answers
Cannot build to Android: CommandInvokationFailure: Android Asset Packaging Tool failed. 1 Answer
Unity 5.6 Video Clip stream on Android 0 Answers