SceneKit

RSS for tag

Create 3D games and add 3D content to apps using high-level scene descriptions using SceneKit.

SceneKit Documentation

Posts under SceneKit subtopic

Post

Replies

Boosts

Views

Activity

How to set defaultCameraController?
I have this code, and want to set the defaultCameraController.maximumVerticalAngle = 0.001 to disable up/down rotation of camera. How can this property be set in SwiftUI? import SwiftUI import SceneKit struct ContentView: View {     var scene = SCNScene(named: "LowPolyCopNew.usdz")     var body: some View {         VStack{             SceneView(scene: scene, options: [.allowsCameraControl, .autoenablesDefaultLighting])             .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height / 2)         Spacer(minLength: 0)         }     } }
0
0
455
Jan ’22
How to set defaultCameraController?
I have this code, and want to set the defaultCameraController.maximumVerticalAngle = 0.001 to disable up/down rotation of camera. How can this property be set in SwiftUI? import SwiftUI import SceneKit struct ContentView: View {     var scene = SCNScene(named: "LowPolyCopNew.usdz")     var body: some View {         VStack{             SceneView(scene: scene, options: [.allowsCameraControl, .autoenablesDefaultLighting])             .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height / 2)         Spacer(minLength: 0)         }     } }
Replies
0
Boosts
0
Views
455
Activity
Jan ’22
How to set the resolution?
How can you set the resolution in scenekit?I would like to render the scenekit view at half the resolution and then scale it up. (I'm hoping this will give a performance boost to my game at the cost of non retina graphics)
Replies
5
Boosts
0
Views
3.9k
Activity
Dec ’21