Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

How to convert CreateExternalTexture into Unity Texture2D

Discussion in 'AR' started by BinaryBanana, Feb 16, 2018.

  1. BinaryBanana

    BinaryBanana

    Joined:
    Mar 17, 2014
    Posts:
    81
    Hi,
    I am trying to do some image processing but the texture I am getting from UnityARVideo (VideoTextureY) is external and so I can't access pixels (GetRawTextureData returns nothing). I think I should be able to load it with Marshal.Copy and Native pointer from that external texture but it doesn't work. I think I tried everything and it would be great to get some new ideas.

    Overall goal is to get an access to Texture2D from ARKit screen video so I can do image processing. I would like to avoid a solution with additional camera and render texture.

    Thanks!
     
  2. FMark92

    FMark92

    Joined:
    May 18, 2017
    Posts:
    1,243
  3. jimmya

    jimmya

    Joined:
    Nov 15, 2016
    Posts:
    793