• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by s0phist · Dec 03, 2013 at 08:40 PM · androidvideoopenglar

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?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by batmobile · Oct 11, 2015 at 01:47 PM

@s0phist I have the same question. Did you ever solve this?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Transparent texture not rendering over video overlay on Android 0 Answers

After updated from Unity 2018.2.16 to 2019.1.8, alpha channel wont show on webm video on Android devices 0 Answers

GL_LUMINANCE format for texture uploads in Android plugin 0 Answers

video-audio not playing in build (i tried webgl and android) 0 Answers

android export dex failed error 4 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges