Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
avatar image
0
Question by jerrytian · Jun 12, 2016 at 04:51 PM · androidtexturepluginbackgroundthreading

Implement multiple OpenGL context for background texture loading.

I am in the middle of developing a GearVR Android application, and a native demo app has already built.

In the native app, I used a technique which is described here, since we are handling very large jpg (8k, on local disk) files as textures:

http://higherorderfun.com/blog/2011/05/26/multi-thread-opengl-texture-loading/

By using this technique, when updating textures after everything is ready, the frame rate drop is almost non-noticeable.

However, in Unity, we can not find any similar solution of it, and whenever we drop a new image to display using Texture.LoadImage(), the screen will freeze for seconds, which is not acceptable.

We have some experience of writing native plugin for Unity3d, so if this is the only way out, we will definitely give it a try.

Any suggestion on this will be much appreciated.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by WisockiJr · Jul 03, 2016 at 11:44 AM

I just found the solution for this so awaited feature on Unity3D. besides Unity saying it is not possible to load a texture of this size without blocking the main thread, I found a component that does just that, it is EasyMovieTexture, the component is great and is one huge sucess on unity store, in fact the solution for the problem I found in the 'editor mode' workaround that the component bring to us, it uses ffmpeg to show video frames on Unity, and as we can see, it decodes 4K videos frame by frame and updates a texture, almost 60 times per second, it is amazing, it does a trick that uses the rendering thread to upload the texture, so the main thread is not used at all. But we still need to compile a c++ dll that decode our .jpg in another thread, but thats easy. I have been looking for this solution for years, since Unity 3, we use Vuforia for augmented reality applications, and now Unity 5 is the big player in Virtual Reality, (so Unity must stop saying it is a game engine, it is now the most important VR Application Engine in the market), for me its the future. Let me solve this and then I will send you a sample. thanks to JaeYunLee

Comment
Add comment · Show 1 · 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 PeterGeneral · Feb 13, 2017 at 01:33 PM 0
Share

Did you ever figure out a way to perform this? I'm working on something similar and it would be a god send if you can help me out!

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.

Follow this Question

Answers Answers and Comments

93 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 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 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 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 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

Problems sharing textures with plugin in Unity 5 0 Answers

creating plugin for android 0 Answers

Unity Android GameObject stop updating after onActivityResult 0 Answers

need help making background texture partially transparent 1 Answer

Hello.I use the Region Capture to create the coloring of augmented reality. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges