Hi I've been using a 3D model .dae object taken from example ie for Mac
I copied the sample to iOS
default code (Ship example) But not able to adjust the camera
SCNNode *cameraNode = [SCNNode node];
cameraNode.camera = [SCNCamera camera];
[scene.rootNode addChildNode:cameraNode];
// place the camera
cameraNode.position = SCNVector3Make(0, 0, 100);
I have changed the z axis from 100-1000 but not luck so far. How can I adjust this character right on to the screen as it is in mac example code
Are you sure that "cameraNode" is the only camera in the scene and the current active camera? Did you try to force it to be the active camera with:
scnView.pointOfView = cameraNode;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.