Hello Bobjt and thank you for this clarification.I was about to begin a game project and I chose Scenekit.I went through tutorials from RW so I would say I am Scenekit ready. However, I find lot of clues here on the forum, on the internet also that make me think spending my time improving my scenekit skills is not worthy. You advise to start an App using RealityKit.Iy makes me doubt.I am currently beginning to learn Unity. Would you advise me to go and learn RealityKit? And why?RegardsBehr
Post
Replies
Boosts
Views
Activity
Dear BobjtThank you for your encouraging though corporate response.- performance differences seems favorable to ARKIT- AR features seems very promising.But I tryied to use RealityKit without AR the way you present it in your first response:// Don’t use an ARSession or camera pass through
arView.cameraMode = .nonARUnfortunatelly this code is raising Swift Compiler Errors at line 20.import UIKit
import RealityKit
class ViewController: UIViewController {
@IBOutlet var arView: ARView!
override func viewDidLoad() {
super.viewDidLoad()
// Load the "Box" scene from the "Experience" Reality File
let boxAnchor = try! Experience.loadBox()
// Add the box anchor to the scene
arView.scene.anchors.append(boxAnchor)
}
func setupArView() {
arView.cameraMode = .nonAR
}
}.../ViewController.swift:28:17: Value of type 'ARView' has no member 'cameraMode'.../ViewController.swift:28:31: Cannot infer contextual base in reference to member 'nonAR'More over my questions would be:1. I intend to manage Light and Camera. I know how to do it with SCENEKIT, but I can not figure out if it is (or will be) possible with REALITYKIT ?2. Can REALITYKIT and SCENEKIT be part of the same project: are they compatible?RegardsBehr
I am not able to build since I have an error in the Editor.My question is how can I setup ma arView to be launch in nonAR ? Since, my syntax is not appropriate.
Thank you maxxfrazer.I could not think that choosing a build target have an impact of how the Editor is behaving.And yet ...When I take my initial code and change the target to be my iPhone... No more warning.Have a nice day.
To be more descriptive for those who do not want to look at image provided in the link, here is the description of my scene:- Two spheres- 2 Lights- A camera- A skybox setAn what I see is: In the build app: It is okIn the xcode editor : instead of seeing the skybox texture. I see tens of warning yellow symbol repeating in the 2 directions of the texture.So, do you have any clue?