This commit is contained in:
AFathi
2018-04-04 13:23:22 -04:00
3 changed files with 36 additions and 56 deletions
@@ -37,6 +37,9 @@ class SCNViewController: UIViewController, ARSCNViewDelegate, RenderARDelegate,
// Set the scene to the view
sceneView.scene = scene
sceneView.scene.rootNode.scale = SCNVector3(0.2, 0.2, 0.2)
//
sceneView.automaticallyUpdatesLighting = true
sceneView.autoenablesDefaultLighting = true
// Initialize ARVideoKit recorder
recorder = RecordAR(ARSceneKit: sceneView)
@@ -55,6 +58,9 @@ class SCNViewController: UIViewController, ARSCNViewDelegate, RenderARDelegate,
// Configure ARKit content mode. Default is .auto
recorder?.contentMode = .aspectFill
//record or photo add environment light rendering, Default is false
recorder?.enableAdjsutEnvironmentLighting = true
// Set the UIViewController orientations
recorder?.inputViewOrientations = [.landscapeLeft, .landscapeRight, .portrait]
// Configure RecordAR to store media files in local app directory