Show feature point detection

Share on Twitter Share on Facebook Share on LinkedIn

Show feature point detection


We will use the built in ARSCNDebugOptions.ShowFeaturePoints flag in the DebugOptions to show the feature points that are detected in the scene.

How well the feature points are detected depends on the type of surface the camera is looking at and the lighting conditions. Dark, featureless and reflective surfaces are difficult to identify feature points.

ARKit uses feature points to map and remember a scene.


No video yet


using ARKit;
using Foundation;
using SceneKit;
using System;
using System.Linq;
using UIKit;

namespace XamarinArkitSample
    public partial class ViewController : UIViewController
        private readonly ARSCNView sceneView;

        public ViewController(IntPtr handle) : base(handle)
            // Lesson: Show feature points
            this.sceneView = new ARSCNView
                AutoenablesDefaultLighting = true,
                DebugOptions = ARSCNDebugOptions.ShowFeaturePoints


        public override void ViewDidLoad()

            this.sceneView.Frame = this.View.Frame;

        public override void ViewDidAppear(bool animated)

			this.sceneView.Session.Run(new ARWorldTrackingConfiguration
                AutoFocusEnabled = true,
                PlaneDetection = ARPlaneDetection.Horizontal,
                LightEstimationEnabled = true,
                WorldAlignment = ARWorldAlignment.GravityAndHeading
            }, ARSessionRunOptions.ResetTracking | ARSessionRunOptions.RemoveExistingAnchors);

        public override void ViewDidDisappear(bool animated)


        public override void DidReceiveMemoryWarning()

Next Step : Place cube in scene

After you have mastered this you should try Place cube in scene