How to add black and white filter on arkit

All I want to do is take the basic arkit view and turn it into a black and white view. Right now the basic view is just normal and I have no idea on how add the filter. Ideally when taking a screenshot the black and white filter is added onto the screenshot.

          import UIKit;import SceneKit;import ARKit

    class ViewController: UIViewController, ARSCNViewDelegate {

     @IBOutlet var sceneView: ARSCNView!

  override func viewDidLoad() {
super.viewDidLoad()
sceneView.delegate = self
sceneView.showsStatistics = true
   }

   override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
let configuration = ARWorldTrackingConfiguration()
sceneView.session.run(configuration)
   }

   override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
sceneView.session.pause()
 }
 }

@timswift I have noticed that you have also posted your question on StackOverflow as well. Did the answers you got there actually solve your problem or do you still need any help with this one?

This topic was automatically closed after 166 days. New replies are no longer allowed.