Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

ARFoundation 1.0.0-preview.19 published; includes CPU camera texture access

Discussion in 'Handheld AR' started by tdmowrer, Oct 13, 2018.

  1. tdmowrer

    tdmowrer

    Unity Technologies

    Joined:
    Apr 21, 2017
    Posts:
    543
    Hi folks,

    A request I've heard a lot recently is the ability to get the raw camera texture pixels on the CPU for computer vision or other custom processing applications. While was already possible, it involved reading data back from the GPU, which can be slow. No longer!

    ARFoundation now supports raw camera image access on both ARCore and ARKit with a new Camera Image API. The documentation includes samples code snippets, and you can find a functional sample over on the ARFoundation Samples Github repo.

    Cheers,
    Tim
     
  2. austin_unity382

    austin_unity382

    Joined:
    Oct 3, 2017
    Posts:
    1
    Hi there.

    Thanks for all your work on ARFoundation. I upgraded all of my XR components today to fix the iOS 12 bug reported here:

    https://forum.unity.com/threads/whe...-on-off-the-memory-usage-is-too-large.544643/

    As part of this, I also upgraded ARFoundation to 1.0.0-preview.19. Now after enabling and disabling the ARSession a couple of times, I'm getting an illegal memory access crash within the CameraImageApi.

    I'm building for iPhone 8 running iOS 12. Attached is a screenshot of XCode at the time of the crash.

    I can also file a proper bug report if you'd like.

    Thanks,

    Austin
     

    Attached Files:

  3. Saicopate

    Saicopate

    Joined:
    Sep 25, 2017
    Posts:
    58
    Same bug here, I returned to v.18 and it's ok.
     
    austin_unity382 likes this.
  4. GreeneMachine

    GreeneMachine

    Joined:
    Jul 3, 2015
    Posts:
    126
    Hi @tdmowrer
    I too experienced issues on IOS after upgrading to ARFoundation 19.. I also tracked down a crash to Arkit 16.. I ended up building with different combinations of versions of packages to get a stable enough build.
    My question is, what versions of the folliwing should "currently" work best based on your testing (simply updating all to the latest does not work best)

    Arfoundation package
    ARKit package
    Unity versiin
    Xcode version
    Min target ios version

    Are these thing tightly coupled and where is the best place to check dependencies between them when each are updated?

    Thanks
     
    austin_unity382 and dyuldashev like this.
  5. RaventurnStefan

    RaventurnStefan

    Joined:
    Aug 1, 2012
    Posts:
    13
    Does preview.19 require XCode 10 or XCode 9.x for an iOS build? Thank you!