Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

SCNViewMBS.allowsCameraControl as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property SceneKit MBS Mac64bit Plugin 18.4 Yes No No Yes, macOS only No
Function: A Boolean value that determines whether the user can manipulate the current point of view that is used to render the scene.
Notes:
If you set this property to YES, SceneKit creates a camera node and handles mouse or touch events to allow the user to pan, zoom, and rotate their view of the scene. (Enabling user camera control does not modify camera objects already existing in the scene graph or the nodes containing them.)

When you enable user camera control, the defaultCameraController object handles input events and drives camera behavior. You can use that object's methods and properties to change the style of user camera interaction, and use the cameraControlConfiguration property to adjust control sensitivity.

In the default configuration, SceneKit provides the following controls:
  • Pan with one finger to rotate the camera around the scene
  • Pan with two fingers to translate the camera on its local xy-plane
  • Pan with three fingers vertically to move the the camera forward backward
  • Double-tap to switch to the next camera in the scene
  • Rotate with two fingers to roll the camera (rotate on the camera node's z-axis)

Pinch to zoom in or zoom out (change the camera's fieldOfView)
The default value of this property is false. Use this option if you intend to control the camera programmatically.
(Read and Write property)

Feedback, Comments & Corrections

SCNViewMBS.autoenablesDefaultLighting as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: A Boolean value that determines whether SceneKit automatically adds lights to a scene.
Notes:
If this property’s value is false (the default), the only light sources SceneKit uses for rendering a scene are those contained in the scene graph. If you change the value to true, SceneKit automatically adds and places an omnidirectional light source when rendering scenes that contain no lights or only contain ambient lights.
(Read and Write property)

Feedback, Comments & Corrections

SCNViewMBS.backgroundColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property SceneKit MBS Mac64bit Plugin 18.4 Yes No No Yes, macOS only No
Function: The background color of the view.
Notes:
SceneKit displays this color behind the contents of the rendered scene. If the scene contents fill the view or if the scene provides its own background using the background property, the view’s background color may not be visible.
This property’s value must be a color that can be represented using RGBA components.
(Read and Write property)

Feedback, Comments & Corrections

SCNViewMBS.defaultCameraController as SCNCameraControllerMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property SceneKit MBS Mac64bit Plugin 18.5 Yes No No Yes, macOS only No
Function: The default camera controller for this view.
Notes: (Read only property)

Feedback, Comments & Corrections

SCNViewMBS.loops as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: A Boolean value that determines whether SceneKit restarts the scene time after all animations in the scene have played.
Notes:
If the value of this property is true (the default), SceneKit returns the scene time to zero after all animations associated with the scene have played, causing those animations to repeat. Otherwise, SceneKit stops playing the scene when all animations have completed.
(Read and Write property)

Feedback, Comments & Corrections

SCNViewMBS.Playing as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: A Boolean value that determines whether the scene is playing.
Notes:
If the value of this property is false (the default), SceneKit does not increment the scene time, so animations associated with the scene do not play. Change this property’s value to true to start animating the scene.
(Read and Write property)

Feedback, Comments & Corrections

SCNViewMBS.pointOfView as SCNNodeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: The node from which the scene’s contents are viewed for rendering.
Notes:
Use a node with an SCNCameraMBS instance assigned to its camera property to view a scene. The node provides the position and direction of a virtual camera, and the camera object provides rendering parameters such as field of view and focus.
For debugging lights and shadows, you can also designate a spotlight (an SCNLightMBS object whose type property is spot) as a point of view. In this case, the light’s spotInnerAngle property determines the field of view, and its zNear and zFar properties determine the near and far extents of the region that is visible onscreen (also known as the viewing frustum).
In either case, the direction of view is along the negative z-axis of the node’s local coordinate space.
(Read and Write property)

Feedback, Comments & Corrections

SCNViewMBS.preferredFramesPerSecond as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property SceneKit MBS Mac64bit Plugin 18.4 Yes No No Yes, macOS only No
Function: The animation frame rate that the view uses to render its scene.
Notes:
SceneKit chooses an actual frame rate that is as close as possible to your preferred frame rate based on the capabilities of the screen the view is displayed on. The actual frame rate is usually a factor of the maximum refresh rate of the screen to provide a consistent frame rate. For example, if the maximum refresh rate of the screen is 60 frames per second, that is also the highest frame rate the view sets as the actual frame rate. However, if you ask for a lower frame rate, SceneKit might choose 30, 20, 15 or some other factor to be the actual frame rate. For this reason, you want to choose a frame rate that your app can consistently maintain.
The default value is 60 frames per second.
(Read and Write property)

Feedback, Comments & Corrections

SCNViewMBS.rendersContinuously as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property SceneKit MBS Mac64bit Plugin 18.4 Yes No No Yes, macOS only No
Function: A Boolean value that determines whether the view always renders at its preferred frame rate or only when its visible content changes.
Notes:
When this value is false (the default), the view redraws its contents only when something in its scene graph change or animates. Use this option to maximize energy efficiency.

If you change this value to true, the view redraws itself continually, at the rate specified by the preferredFramesPerSecond property, regardless of whether content is changing or animating.
(Read and Write property)

Feedback, Comments & Corrections

SCNViewMBS.scene as SCNSceneMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property SceneKit MBS Mac64bit Plugin 18.4 Yes No No Yes, macOS only No
Function: The scene to be displayed in the view.
Notes: (Read and Write property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Mac64bit Plugin.

The biggest plugin in space...




Links
MBS FileMaker Plugins