Platforms to show: All Mac Windows Linux Cross-Platform
SCNSceneMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | SceneKit | MBS Mac64bit Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
To display 3D content with SceneKit, you create a scene containing a hierarchy of the nodes and attributes that together represent your visual elements. Typically, you build your assets in a 3D visual editor, then assemble them into a scene using Xcode’s SceneKit Scene Editor, ready for SceneKit to render.
The simplest way to create a scene is through Xcode’s SceneKit Scene Editor. Start by importing one or more assets from a 3D editor, such as Blender. Then you adjust the positions and attributes of the assets, and set global scene properties, such as lighting environment, to compose your scene. The scene editor creates a .scn file, which you save to a .scnassets folder in the app bundle. When you build your project, Xcode optimizes the scene file for your target platform.
- 10 properties
- property background as SCNMaterialPropertyMBS
- property fogColor as NSColorMBS
- property fogDensityExponent as Double
- property fogEndDistance as Double
- property fogStartDistance as Double
- property lightingEnvironment as SCNMaterialPropertyMBS
- property paused as Boolean
- property physicsWorld as SCNPhysicsWorldMBS
- property rootNode as SCNNodeMBS
- property attributeForKey(key as String) as Variant
- method Constructor
- 10 shared methods
- shared method scene as SCNSceneMBS
- shared method sceneNamed(name as string) as SCNSceneMBS
- shared method sceneNamed(name as string, folder as folderItem, options as Dictionary = nil) as SCNSceneMBS
- shared method sceneWithFile(file as folderItem, options as Dictionary = nil, byref Error as NSErrorMBS) as SCNSceneMBS
- shared method sceneWithURL(FileURL as string, options as Dictionary = nil, byref Error as NSErrorMBS) as SCNSceneMBS
- shared method SCNSceneEndTimeAttributeKey as String
- shared method SCNSceneExportDestinationURL as String
- shared method SCNSceneFrameRateAttributeKey as String
- shared method SCNSceneStartTimeAttributeKey as String
- shared method SCNSceneUpAxisAttributeKey as String
This class has no sub classes.
Some properties using for this class:
- SCNViewMBS.scene as SCNSceneMBS
Some events using this class:
- DesktopSCNControlMBS.rendererDidRenderScene(scene as SCNSceneMBS, time as double)
- DesktopSCNControlMBS.rendererWillRenderScene(scene as SCNSceneMBS, time as double)
- SCNControlMBS.rendererDidRenderScene(scene as SCNSceneMBS, time as double)
- SCNControlMBS.rendererWillRenderScene(scene as SCNSceneMBS, time as double)
- SCNIOSControlMBS.rendererDidRenderScene(scene as SCNSceneMBS, time as double)
- SCNIOSControlMBS.rendererWillRenderScene(scene as SCNSceneMBS, time as double)
Some examples using this class:
- /Mac64bit/SceneKit/Camera with fix elements
- /Mac64bit/SceneKit/Change Backgroundcolor by Click
- /Mac64bit/SceneKit/Free form
- /Mac64bit/SceneKit/Physics
- /Mac64bit/SceneKit/Rotation
- /Mac64bit/SceneKit/SceneKit Images
- /Mac64bit/SceneKit/SceneKit iOS
- /Mac64bit/SceneKit/SceneKit Primitives
- /Mac64bit/SceneKit/SceneKit Spheres
- /Mac64bit/SceneKit/Triangle Demo
Blog Entries
Xojo Developer Magazine
- 19.6, pages 45 to 46: Rotating Christmas Tree, Using the MBS Plugins to create an animated 3D Christmas tree by Stefanie Juchmes
- 18.4, page 53: On the Scene Again (Part 3), Getting Started with SceneKit by Stefanie Juchmes
- 18.4, page 39: On the Scene Again (Part 3), Getting Started with SceneKit by Stefanie Juchmes
- 18.1, pages 26 to 27: On the Scene, Getting Started with SceneKit by Stefanie Juchmes
Release notes
- Version 18.4
- Started SceneKit plugin part with new SCNControlMBS control and new SCNGeometryMBS, SCNNodeMBS, SCNSceneMBS and SCNViewMBS classes.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
SCNReplicatorConstraintMBS - SCNShapeMBS