AR增强现实

ARKit学习 - 2

2017-06-13  本文已影响133人  小羊快跑

转载请注明出处
Apple原文地址: https://developer.apple.com/documentation/arkit/understanding_augmented_reality


Article

Understanding Augmented Reality

  • Discover concepts, features, and best practices for building great AR experiences.

Overview

image.png
  • The basic requirement for any AR experience—and the defining feature of ARKit—is the ability to create and track a correspondence between the real-world space the user inhabits and a virtual space where you can model visual content. When your app displays that content together with a live camera image, the user experiences augmented reality: the illusion that your virtual content is part of the real world.

How World Tracking Works

  • To create a correspondence between real and virtual spaces, ARKit uses a technique called visual-inertial odometry. This process combines information from the iOS device’s motion sensing hardware with computer vision analysis of the scene visible to the device’s camera. ARKit recognizes notable features in the scene image, tracks differences in the positions of those features across video frames, and compares that information with motion sensing data. The result is a high-precision model of the device’s position and motion.

  • World tracking also analyzes and understands the contents of a scene. Use hit-testing methods (see the ARHitTestResult
    class) to find real-world surfaces corresponding to a point in the camera image. If you enable the planeDetection
    setting in your session configuration, ARKit detects flat surfaces in the camera image and reports their position and sizes. You can use hit-test results or detected planes to place or interact with virtual content in your scene.

Best Practices and Limitations

  • World tracking is an inexact science. This process can often produce impressive accuracy, leading to realistic AR experiences. However, it relies on details of the device’s physical environment that are not always consistent or are difficult to measure in real time without some degree of error. To build high-quality AR experiences, be aware of these caveats and tips.


上一篇 下一篇

猜你喜欢

热点阅读