Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[Android] Sharing Open GL context

Discussion in 'General Graphics' started by kurak38, Feb 25, 2020.

  1. kurak38

    kurak38

    Joined:
    Jan 23, 2014
    Posts:
    3
    Hi,
    I wonder if it is possible to feed Unity with OpenGL context that is created on Java side on Android? Would there be a lot of work to add it if needed?
    I only found information about doing the other way around, so getting access to Unity OpenGL Context and feed it back to Android.
    Thanks
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,983
    Hi!
    No, it's not possible.
    What's the use case for this?
     
  3. kurak38

    kurak38

    Joined:
    Jan 23, 2014
    Posts:
    3
    The use case is that if there is existing OpenGL context used, we need to shut good portion of system down, and recreated with Unity context, which makes everything a less viable solution.
    @aleksandrk are you part of Unity Team? Can you send me your work email, we can talk more on priv?
     
  4. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,983
    @kurak38 if you change your settings, we can have a private conversation right on the forums :)
     
  5. kurak38

    kurak38

    Joined:
    Jan 23, 2014
    Posts:
    3
  6. tedhsieh

    tedhsieh

    Joined:
    Feb 23, 2021
    Posts:
    1
    Hi @aleksandrk , I would like to know if it is possible now?
     
  7. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,983
  8. Virtumonde

    Virtumonde

    Joined:
    Apr 15, 2020
    Posts:
    84
    Last edited: Apr 10, 2021