Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. 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,845
    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,845
    @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,845
  8. Virtumonde

    Virtumonde

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