Package apple.scenekit
Class SCNRenderer
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.scenekit.SCNRenderer
-
- All Implemented Interfaces:
NSObject,SCNSceneRenderer,SCNTechniqueSupport
public class SCNRenderer extends NSObject implements SCNSceneRenderer, SCNTechniqueSupport
SCNRenderer SCNRenderer lets you use the SceneKit renderer in an OpenGL context or Metal render pass descriptor of your own.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.scenekit.protocol.SCNSceneRenderer
SCNSceneRenderer.Block_prepareObjectShouldAbortBlock, SCNSceneRenderer.Block_prepareObjectsWithCompletionHandler, SCNSceneRenderer.Block_presentSceneWithTransitionIncomingPointOfViewCompletionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSCNRenderer(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static SCNRendereralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)AVAudioEngineaudioEngine()[@property] audioEngine Contains the instance of audio engine used by the scene.AVAudioEnvironmentNodeaudioEnvironmentNode()[@property] audioEnvironmentNode Contains the instance of audio environment node used by the scene to spacialize sounds.SCNNodeaudioListener()[@property] audioListener Use this property to set the audio node to use as the listener position and orientation when rendering positional audio for this scene.booleanautoenablesDefaultLighting()[@property] autoenablesDefaultLighting Specifies whether the receiver should automatically light up scenes that have no light source.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()longcolorPixelFormat()[@property] colorPixelFormat The pixel format of the color attachment 0 of the renderer.MTLCommandQueuecommandQueue()[@property] commandQueue The command queue of the renderer.org.moe.natj.general.ptr.VoidPtrcontext()[@property] context A Core OpenGL render context that is used as the render target (a CGLContextObj on macOS, an EAGLContext on iOS).MTLRenderCommandEncodercurrentRenderCommandEncoder()[@property] currentRenderCommandEncoder The current render command encoder if any.MTLRenderPassDescriptorcurrentRenderPassDescriptor()[@property] currentRenderPassDescriptor The render pass descriptor of the receiver.CGRectcurrentViewport()[@property] currentViewport Returns the current viewport for this renderer, can be used to get the actual viewport from within the delegate callback during a live resize.static java.lang.StringdebugDescription_static()longdebugOptions()[@property] debugOptions Specifies the debug options of the receiver.java.lang.Objectdelegate()[@property] delegate Specifies the renderer delegate.longdepthPixelFormat()[@property] depthPixelFormat The pixel format of the depth attachment of the renderer.static java.lang.Stringdescription_static()MTLDevicedevice()[@property] device The metal device of the renderer.static longhash_static()NSArray<? extends SCNHitTestResult>hitTestOptions(CGPoint point, NSDictionary<java.lang.String,?> options)hitTest:options: Returns an array of SCNHitTestResult for each node that contains a specified point.SCNRendererinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisJitteringEnabled()[@property] jitteringEnabled Specifies whether the receiver should jitter the rendered scene to reduce aliasing artifacts.booleanisNodeInsideFrustumWithPointOfView(SCNNode node, SCNNode pointOfView)isNodeInsideFrustum:withPointOfView: Test whether node is visible from the specified point of view.booleanisPlaying()[@property] playing Returns YES if the scene is playing, NO otherwise.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisTemporalAntialiasingEnabled()[@property] temporalAntialiasingEnabled Specifies whether the receiver should reduce aliasing artifacts in real time based on temporal coherency.static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)booleanloops()[@property] loops Indicates whether the receiver restarts playback when it reaches the end of its content.static java.lang.Objectnew_objc()doublenextFrameTime()[@property] nextFrameTime Returns the time at which the next update should happen.NSArray<? extends SCNNode>nodesInsideFrustumWithPointOfView(SCNNode pointOfView)nodesInsideFrustumWithPointOfView: Returns an array containing the nodes visible from the specified point of view.SKSceneoverlaySKScene()[@property] overlaySKScene Specifies the overlay of the receiver as a SpriteKit scene instance.SCNNodepointOfView()[@property] pointOfView Specifies the point of view used to render the scene.booleanprepareObjectShouldAbortBlock(java.lang.Object object, SCNSceneRenderer.Block_prepareObjectShouldAbortBlock block)prepareObject:shouldAbortBlock: Prepare the specified object for drawing.voidprepareObjectsWithCompletionHandler(NSArray<?> objects, SCNSceneRenderer.Block_prepareObjectsWithCompletionHandler completionHandler)prepareObjects:withCompletionHandler: Prepare the specified objects for drawing on the background.voidpresentSceneWithTransitionIncomingPointOfViewCompletionHandler(SCNScene scene, SKTransition transition, SCNNode pointOfView, SCNSceneRenderer.Block_presentSceneWithTransitionIncomingPointOfViewCompletionHandler completionHandler)presentScene:withTransition:incomingPointOfView: Present a SCNScene in the receiver, replacing the current scene.SCNVector3projectPoint(SCNVector3 point)projectPoint Projects a point in the world coordinate system using the receiver's current point of view and viewport.voidrender()Deprecated.voidrenderAtTime(double time)renderAtTime: updates and renders the receiver's scene at the specified time (system time).voidrenderAtTimeViewportCommandBufferPassDescriptor(double time, CGRect viewport, MTLCommandBuffer commandBuffer, MTLRenderPassDescriptor renderPassDescriptor)renderAtTime:viewport:commandBuffer:passDescriptor: updates and renders the receiver's scene at the specified time (system time) viewport, Metal command buffer and pass descriptor.static SCNRendererrendererWithContextOptions(EAGLContext context, NSDictionary<?,?> options)rendererWithContext:options: Creates a new renderer object.static SCNRendererrendererWithDeviceOptions(MTLDevice device, NSDictionary<?,?> options)rendererWithDevice:options: Creates a new renderer object that renders using Metal.longrenderingAPI()[@property] renderingAPI Specifies the rendering API associated to the receiver.voidrenderWithViewportCommandBufferPassDescriptor(CGRect viewport, MTLCommandBuffer commandBuffer, MTLRenderPassDescriptor renderPassDescriptor)renderWithViewport:viewport:commandBuffer:passDescriptor: renders the receiver's scene with the specified viewport, Metal command buffer and pass descriptor.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)SCNScenescene()[@property] scene Specifies the scene of the receiver.doublesceneTime()[@property] sceneTime Specifies the current "scene time" to display the scene.voidsetAudioListener(SCNNode value)[@property] audioListener Use this property to set the audio node to use as the listener position and orientation when rendering positional audio for this scene.voidsetAutoenablesDefaultLighting(boolean value)[@property] autoenablesDefaultLighting Specifies whether the receiver should automatically light up scenes that have no light source.voidsetDebugOptions(long value)[@property] debugOptions Specifies the debug options of the receiver.voidsetDelegate(java.lang.Object value)[@property] delegate Specifies the renderer delegate.voidsetDelegate_unsafe(java.lang.Object value)voidsetJitteringEnabled(boolean value)[@property] jitteringEnabled Specifies whether the receiver should jitter the rendered scene to reduce aliasing artifacts.voidsetLoops(boolean value)[@property] loops Indicates whether the receiver restarts playback when it reaches the end of its content.voidsetOverlaySKScene(SKScene value)[@property] overlaySKScene Specifies the overlay of the receiver as a SpriteKit scene instance.voidsetPlaying(boolean value)[@property] playing Returns YES if the scene is playing, NO otherwise.voidsetPointOfView(SCNNode value)[@property] pointOfView Specifies the point of view used to render the scene.voidsetScene(SCNScene value)[@property] scene Specifies the scene of the receiver.voidsetSceneTime(double value)[@property] sceneTime Specifies the current "scene time" to display the scene.voidsetShowsStatistics(boolean value)[@property] showsStatistics Determines whether the receiver should display statistics info like FPS.voidsetTechnique(SCNTechnique value)[@property] technique Specifies the technique of the receiver.voidsetTemporalAntialiasingEnabled(boolean value)[@property] temporalAntialiasingEnabled Specifies whether the receiver should reduce aliasing artifacts in real time based on temporal coherency.voidsetUsesReverseZ(boolean value)[@property] usesReverseZ Specifies if the renderer should use the reverse Z technique.static voidsetVersion_static(long aVersion)booleanshowsStatistics()[@property] showsStatistics Determines whether the receiver should display statistics info like FPS.UIImagesnapshotAtTimeWithSizeAntialiasingMode(double time, CGSize size, long antialiasingMode)snapshotAtTime:withSize:antialiasingMode: renders the receiver's scene at the specified time (system time) into an image.longstencilPixelFormat()[@property] stencilPixelFormat The pixel format of the stencil attachment of the renderer.static org.moe.natj.objc.Classsuperclass_static()SCNTechniquetechnique()[@property] technique Specifies the technique of the receiver.SCNVector3unprojectPoint(SCNVector3 point)unprojectPoint Unprojects a screenspace 2D point with depth info using the receiver's current point of view and viewport.voidupdateAtTime(double time)updateAtTime: updates the receiver's scene at the specified time (system time).voidupdateProbesAtTime(NSArray<? extends SCNNode> lightProbes, double time)updateProbes:atTime: Update the specified probes by computing their incoming irradiance in the receiver's scene at the specified time.booleanusesReverseZ()[@property] usesReverseZ Specifies if the renderer should use the reverse Z technique.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static SCNRenderer alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
rendererWithContextOptions
public static SCNRenderer rendererWithContextOptions(EAGLContext context, NSDictionary<?,?> options)
rendererWithContext:options: Creates a new renderer object.- Parameters:
context- The context to render into.options- An optional dictionary for future extensions.
-
rendererWithDeviceOptions
public static SCNRenderer rendererWithDeviceOptions(MTLDevice device, NSDictionary<?,?> options)
rendererWithDevice:options: Creates a new renderer object that renders using Metal.- Parameters:
device- The metal device to use. Pass nil to let SceneKit choose a default device.options- An optional dictionary for future extensions.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
audioEngine
public AVAudioEngine audioEngine()
Description copied from interface:SCNSceneRenderer[@property] audioEngine Contains the instance of audio engine used by the scene. The audio engine can be used to add custom nodes to the audio graph.- Specified by:
audioEnginein interfaceSCNSceneRenderer
-
audioEnvironmentNode
public AVAudioEnvironmentNode audioEnvironmentNode()
Description copied from interface:SCNSceneRenderer[@property] audioEnvironmentNode Contains the instance of audio environment node used by the scene to spacialize sounds.- Specified by:
audioEnvironmentNodein interfaceSCNSceneRenderer
-
audioListener
public SCNNode audioListener()
Description copied from interface:SCNSceneRenderer[@property] audioListener Use this property to set the audio node to use as the listener position and orientation when rendering positional audio for this scene. The default is nil which means that the current point of view will be used dynamically.- Specified by:
audioListenerin interfaceSCNSceneRenderer
-
autoenablesDefaultLighting
public boolean autoenablesDefaultLighting()
Description copied from interface:SCNSceneRenderer[@property] autoenablesDefaultLighting Specifies whether the receiver should automatically light up scenes that have no light source. The default is NO. When enabled, a diffuse light is automatically added and placed while rendering scenes that have no light or only ambient lights.- Specified by:
autoenablesDefaultLightingin interfaceSCNSceneRenderer
-
colorPixelFormat
public long colorPixelFormat()
Description copied from interface:SCNSceneRenderer[@property] colorPixelFormat The pixel format of the color attachment 0 of the renderer. This property is only valid on a renderer created with a Metal device.- Specified by:
colorPixelFormatin interfaceSCNSceneRenderer
-
commandQueue
public MTLCommandQueue commandQueue()
Description copied from interface:SCNSceneRenderer[@property] commandQueue The command queue of the renderer. This property is only valid on a renderer created with a Metal device. Otherwise it is set to nil.- Specified by:
commandQueuein interfaceSCNSceneRenderer
-
context
public org.moe.natj.general.ptr.VoidPtr context()
Description copied from interface:SCNSceneRenderer[@property] context A Core OpenGL render context that is used as the render target (a CGLContextObj on macOS, an EAGLContext on iOS).- Specified by:
contextin interfaceSCNSceneRenderer
-
currentRenderCommandEncoder
public MTLRenderCommandEncoder currentRenderCommandEncoder()
Description copied from interface:SCNSceneRenderer[@property] currentRenderCommandEncoder The current render command encoder if any. This property is only valid within the SCNSceneRendererDelegate methods and when rendering with Metal. Otherwise it is set to nil.- Specified by:
currentRenderCommandEncoderin interfaceSCNSceneRenderer
-
debugOptions
public long debugOptions()
Description copied from interface:SCNSceneRenderer[@property] debugOptions Specifies the debug options of the receiver. Defaults to SCNDebugOptionNone.- Specified by:
debugOptionsin interfaceSCNSceneRenderer
-
delegate
public java.lang.Object delegate()
Description copied from interface:SCNSceneRenderer[@property] delegate Specifies the renderer delegate.- Specified by:
delegatein interfaceSCNSceneRenderer
-
depthPixelFormat
public long depthPixelFormat()
Description copied from interface:SCNSceneRenderer[@property] depthPixelFormat The pixel format of the depth attachment of the renderer. This property is only valid on a renderer created with a Metal device.- Specified by:
depthPixelFormatin interfaceSCNSceneRenderer
-
device
public MTLDevice device()
Description copied from interface:SCNSceneRenderer[@property] device The metal device of the renderer. This property is only valid on a renderer created with a Metal device. Otherwise it is set to nil.- Specified by:
devicein interfaceSCNSceneRenderer
-
hitTestOptions
public NSArray<? extends SCNHitTestResult> hitTestOptions(CGPoint point, NSDictionary<java.lang.String,?> options)
Description copied from interface:SCNSceneRendererhitTest:options: Returns an array of SCNHitTestResult for each node that contains a specified point.- Specified by:
hitTestOptionsin interfaceSCNSceneRenderer- Parameters:
point- A point in the coordinate system of the receiver.options- Optional parameters (see the "Hit test options" group for the available options).
-
init
public SCNRenderer init()
-
isJitteringEnabled
public boolean isJitteringEnabled()
Description copied from interface:SCNSceneRenderer[@property] jitteringEnabled Specifies whether the receiver should jitter the rendered scene to reduce aliasing artifacts. When enabled, the jittering is performed asynchronously and automatically by SCNView and SCNLayer. It is done synchronously by SCNRenderer.- Specified by:
isJitteringEnabledin interfaceSCNSceneRenderer
-
setJitteringEnabled
public void setJitteringEnabled(boolean value)
Description copied from interface:SCNSceneRenderer[@property] jitteringEnabled Specifies whether the receiver should jitter the rendered scene to reduce aliasing artifacts. When enabled, the jittering is performed asynchronously and automatically by SCNView and SCNLayer. It is done synchronously by SCNRenderer.- Specified by:
setJitteringEnabledin interfaceSCNSceneRenderer
-
isNodeInsideFrustumWithPointOfView
public boolean isNodeInsideFrustumWithPointOfView(SCNNode node, SCNNode pointOfView)
Description copied from interface:SCNSceneRendererisNodeInsideFrustum:withPointOfView: Test whether node is visible from the specified point of view. Return YES if the node is inside or intersects the clipping planes of the point of view. This method doesn't test if 'node' is occluded by another node.- Specified by:
isNodeInsideFrustumWithPointOfViewin interfaceSCNSceneRenderer- Parameters:
node- The node to test the visibility of.pointOfView- The point of view used to test the visibility.
-
isPlaying
public boolean isPlaying()
Description copied from interface:SCNSceneRenderer[@property] playing Returns YES if the scene is playing, NO otherwise.- Specified by:
isPlayingin interfaceSCNSceneRenderer
-
setPlaying
public void setPlaying(boolean value)
Description copied from interface:SCNSceneRenderer[@property] playing Returns YES if the scene is playing, NO otherwise.- Specified by:
setPlayingin interfaceSCNSceneRenderer
-
loops
public boolean loops()
Description copied from interface:SCNSceneRenderer[@property] loops Indicates whether the receiver restarts playback when it reaches the end of its content. Default: YES. YES when the receiver restarts playback when it finishes, NO otherwise.- Specified by:
loopsin interfaceSCNSceneRenderer
-
nextFrameTime
public double nextFrameTime()
[@property] nextFrameTime Returns the time at which the next update should happen. If infinite no update needs to be scheduled yet. If the current frame time, a continuous animation is running and an update should be scheduled after a "natural" delay.
-
nodesInsideFrustumWithPointOfView
public NSArray<? extends SCNNode> nodesInsideFrustumWithPointOfView(SCNNode pointOfView)
Description copied from interface:SCNSceneRenderernodesInsideFrustumWithPointOfView: Returns an array containing the nodes visible from the specified point of view. Returns an array of all the nodes that are inside or intersects the clipping planes of the point of view. Starting in macOS10.13/iOS11 this method work with the presentation tree.- Specified by:
nodesInsideFrustumWithPointOfViewin interfaceSCNSceneRenderer- Parameters:
pointOfView- The point of view used to test the visibility.
-
overlaySKScene
public SKScene overlaySKScene()
Description copied from interface:SCNSceneRenderer[@property] overlaySKScene Specifies the overlay of the receiver as a SpriteKit scene instance. Defaults to nil.- Specified by:
overlaySKScenein interfaceSCNSceneRenderer
-
pointOfView
public SCNNode pointOfView()
Description copied from interface:SCNSceneRenderer[@property] pointOfView Specifies the point of view used to render the scene. A point of view must have either a camera or a spot light attached.- Specified by:
pointOfViewin interfaceSCNSceneRenderer
-
prepareObjectShouldAbortBlock
public boolean prepareObjectShouldAbortBlock(java.lang.Object object, SCNSceneRenderer.Block_prepareObjectShouldAbortBlock block)Description copied from interface:SCNSceneRendererprepareObject:shouldAbortBlock: Prepare the specified object for drawing. Returns YES if the object was prepared successfully, NO if it was canceled. This method may be triggered from a secondary thread. This method is observable using NSProgress.- Specified by:
prepareObjectShouldAbortBlockin interfaceSCNSceneRenderer- Parameters:
object- The object to prepare. It can be an instance of SCNScene, SCNNode, SCNGeometry, or SCNMaterialblock- This block will be called repeatedly while the object is prepared. Return YES if you want the operation to abort.
-
prepareObjectsWithCompletionHandler
public void prepareObjectsWithCompletionHandler(NSArray<?> objects, SCNSceneRenderer.Block_prepareObjectsWithCompletionHandler completionHandler)
Description copied from interface:SCNSceneRendererprepareObjects:withCompletionHandler: Prepare the specified objects for drawing on the background. This method is observable using NSProgress.- Specified by:
prepareObjectsWithCompletionHandlerin interfaceSCNSceneRenderer- Parameters:
objects- The objects to prepare. It can be one or more instances of SCNScene, SCNNode, SCNGeometry, or SCNMaterialcompletionHandler- This block will be called when all objects has been prepared, or on failure.
-
presentSceneWithTransitionIncomingPointOfViewCompletionHandler
public void presentSceneWithTransitionIncomingPointOfViewCompletionHandler(SCNScene scene, SKTransition transition, SCNNode pointOfView, SCNSceneRenderer.Block_presentSceneWithTransitionIncomingPointOfViewCompletionHandler completionHandler)
Description copied from interface:SCNSceneRendererpresentScene:withTransition:incomingPointOfView: Present a SCNScene in the receiver, replacing the current scene.- Specified by:
presentSceneWithTransitionIncomingPointOfViewCompletionHandlerin interfaceSCNSceneRenderer- Parameters:
scene- The new scene to present.transition- the transition to use when presenting the scene.pointOfView- the point of view to use to render the new scene.completionHandler- the block invoked on completion.
-
projectPoint
public SCNVector3 projectPoint(SCNVector3 point)
Description copied from interface:SCNSceneRendererprojectPoint Projects a point in the world coordinate system using the receiver's current point of view and viewport. A point projected from the near (resp. far) clip plane will have a z component of 0 (resp. 1). Starting in macOS 11.0, iOS 14, tvOS 14 and watchOS 7 the range of z component will be reversed (from 1 to 0) if the receiver uses 'reverseZ'.- Specified by:
projectPointin interfaceSCNSceneRenderer- Parameters:
point- The world position to be projected.
-
render
@Deprecated public void render()
Deprecated.Deprecated render renders the receiver's scene at the current system time. This method only work if the receiver was allocated with an OpenGL context and it is deprecated (use renderAtTime: instead). Use renderAtTime:withEncoder:pass:commandQueue: to render with Metal.
-
renderAtTime
public void renderAtTime(double time)
renderAtTime: updates and renders the receiver's scene at the specified time (system time). This method only work if the receiver was allocated with an OpenGL context. Use renderAtTime:withEncoder:pass:commandQueue: to render with Metal.
-
renderAtTimeViewportCommandBufferPassDescriptor
public void renderAtTimeViewportCommandBufferPassDescriptor(double time, CGRect viewport, MTLCommandBuffer commandBuffer, MTLRenderPassDescriptor renderPassDescriptor)renderAtTime:viewport:commandBuffer:passDescriptor: updates and renders the receiver's scene at the specified time (system time) viewport, Metal command buffer and pass descriptor. Use this method to render using Metal.
-
renderingAPI
public long renderingAPI()
Description copied from interface:SCNSceneRenderer[@property] renderingAPI Specifies the rendering API associated to the receiver. This is the rendering API effectively used by the receiver. You can specify a preferred rendering API when initializing a view programmatically (see SCNPreferredRenderingAPI in SCNSceneRenderer.h) or using Interface Builder's SCNView inspector.- Specified by:
renderingAPIin interfaceSCNSceneRenderer
-
scene
public SCNScene scene()
Description copied from interface:SCNSceneRenderer[@property] scene Specifies the scene of the receiver.- Specified by:
scenein interfaceSCNSceneRenderer
-
sceneTime
public double sceneTime()
Description copied from interface:SCNSceneRenderer[@property] sceneTime Specifies the current "scene time" to display the scene. The scene time only affect scene time based animations (see SCNAnimation.h "usesSceneTimeBase" and SCNSceneSource.h "SCNSceneSourceAnimationImportPolicyKey" for how to create scene time based animations). Scene time based animations and this property are typically used by tools and viewer to ease seeking in time while previewing a scene.- Specified by:
sceneTimein interfaceSCNSceneRenderer
-
setAudioListener
public void setAudioListener(SCNNode value)
Description copied from interface:SCNSceneRenderer[@property] audioListener Use this property to set the audio node to use as the listener position and orientation when rendering positional audio for this scene. The default is nil which means that the current point of view will be used dynamically.- Specified by:
setAudioListenerin interfaceSCNSceneRenderer
-
setAutoenablesDefaultLighting
public void setAutoenablesDefaultLighting(boolean value)
Description copied from interface:SCNSceneRenderer[@property] autoenablesDefaultLighting Specifies whether the receiver should automatically light up scenes that have no light source. The default is NO. When enabled, a diffuse light is automatically added and placed while rendering scenes that have no light or only ambient lights.- Specified by:
setAutoenablesDefaultLightingin interfaceSCNSceneRenderer
-
setDebugOptions
public void setDebugOptions(long value)
Description copied from interface:SCNSceneRenderer[@property] debugOptions Specifies the debug options of the receiver. Defaults to SCNDebugOptionNone.- Specified by:
setDebugOptionsin interfaceSCNSceneRenderer
-
setDelegate_unsafe
public void setDelegate_unsafe(java.lang.Object value)
-
setDelegate
public void setDelegate(java.lang.Object value)
Description copied from interface:SCNSceneRenderer[@property] delegate Specifies the renderer delegate.- Specified by:
setDelegatein interfaceSCNSceneRenderer
-
setLoops
public void setLoops(boolean value)
Description copied from interface:SCNSceneRenderer[@property] loops Indicates whether the receiver restarts playback when it reaches the end of its content. Default: YES. YES when the receiver restarts playback when it finishes, NO otherwise.- Specified by:
setLoopsin interfaceSCNSceneRenderer
-
setOverlaySKScene
public void setOverlaySKScene(SKScene value)
Description copied from interface:SCNSceneRenderer[@property] overlaySKScene Specifies the overlay of the receiver as a SpriteKit scene instance. Defaults to nil.- Specified by:
setOverlaySKScenein interfaceSCNSceneRenderer
-
setPointOfView
public void setPointOfView(SCNNode value)
Description copied from interface:SCNSceneRenderer[@property] pointOfView Specifies the point of view used to render the scene. A point of view must have either a camera or a spot light attached.- Specified by:
setPointOfViewin interfaceSCNSceneRenderer
-
setScene
public void setScene(SCNScene value)
Description copied from interface:SCNSceneRenderer[@property] scene Specifies the scene of the receiver.- Specified by:
setScenein interfaceSCNSceneRenderer
-
setSceneTime
public void setSceneTime(double value)
Description copied from interface:SCNSceneRenderer[@property] sceneTime Specifies the current "scene time" to display the scene. The scene time only affect scene time based animations (see SCNAnimation.h "usesSceneTimeBase" and SCNSceneSource.h "SCNSceneSourceAnimationImportPolicyKey" for how to create scene time based animations). Scene time based animations and this property are typically used by tools and viewer to ease seeking in time while previewing a scene.- Specified by:
setSceneTimein interfaceSCNSceneRenderer
-
setShowsStatistics
public void setShowsStatistics(boolean value)
Description copied from interface:SCNSceneRenderer[@property] showsStatistics Determines whether the receiver should display statistics info like FPS. Defaults to NO. When set to YES, statistics are displayed in a overlay on top of the rendered scene.- Specified by:
setShowsStatisticsin interfaceSCNSceneRenderer
-
setTechnique
public void setTechnique(SCNTechnique value)
Description copied from interface:SCNTechniqueSupport[@property] technique Specifies the technique of the receiver. Defaults to nil.- Specified by:
setTechniquein interfaceSCNTechniqueSupport
-
showsStatistics
public boolean showsStatistics()
Description copied from interface:SCNSceneRenderer[@property] showsStatistics Determines whether the receiver should display statistics info like FPS. Defaults to NO. When set to YES, statistics are displayed in a overlay on top of the rendered scene.- Specified by:
showsStatisticsin interfaceSCNSceneRenderer
-
snapshotAtTimeWithSizeAntialiasingMode
public UIImage snapshotAtTimeWithSizeAntialiasingMode(double time, CGSize size, long antialiasingMode)
snapshotAtTime:withSize:antialiasingMode: renders the receiver's scene at the specified time (system time) into an image.
-
stencilPixelFormat
public long stencilPixelFormat()
Description copied from interface:SCNSceneRenderer[@property] stencilPixelFormat The pixel format of the stencil attachment of the renderer. This property is only valid on a renderer created with a Metal device.- Specified by:
stencilPixelFormatin interfaceSCNSceneRenderer
-
technique
public SCNTechnique technique()
Description copied from interface:SCNTechniqueSupport[@property] technique Specifies the technique of the receiver. Defaults to nil.- Specified by:
techniquein interfaceSCNTechniqueSupport
-
unprojectPoint
public SCNVector3 unprojectPoint(SCNVector3 point)
Description copied from interface:SCNSceneRendererunprojectPoint Unprojects a screenspace 2D point with depth info using the receiver's current point of view and viewport. A point whose z component is 0 (resp. 1) is unprojected on the near (resp. far) clip plane. Starting in macOS 11.0, iOS 14, tvOS 14 and watchOS 7 the range of the z component will be reversed (from 1 to 0) if the receiver uses 'reverseZ'.- Specified by:
unprojectPointin interfaceSCNSceneRenderer- Parameters:
point- The screenspace position to be unprojected.
-
updateProbesAtTime
public void updateProbesAtTime(NSArray<? extends SCNNode> lightProbes, double time)
updateProbes:atTime: Update the specified probes by computing their incoming irradiance in the receiver's scene at the specified time. Light probes are only supported with Metal. This method is observable using NSProgress.- Parameters:
lightProbes- An array of nodes that must have a light probe attached.time- The time used to render the scene when computing the light probes irradiance.
-
renderWithViewportCommandBufferPassDescriptor
public void renderWithViewportCommandBufferPassDescriptor(CGRect viewport, MTLCommandBuffer commandBuffer, MTLRenderPassDescriptor renderPassDescriptor)
renderWithViewport:viewport:commandBuffer:passDescriptor: renders the receiver's scene with the specified viewport, Metal command buffer and pass descriptor. Use this method to render using Metal. This method doesn't update the scene's animations, physics, particles etc... It's up to you to call "updateAtTime:" to update the scene.
-
updateAtTime
public void updateAtTime(double time)
updateAtTime: updates the receiver's scene at the specified time (system time).
-
currentViewport
public CGRect currentViewport()
Description copied from interface:SCNSceneRenderer[@property] currentViewport Returns the current viewport for this renderer, can be used to get the actual viewport from within the delegate callback during a live resize.- Specified by:
currentViewportin interfaceSCNSceneRenderer
-
isTemporalAntialiasingEnabled
public boolean isTemporalAntialiasingEnabled()
Description copied from interface:SCNSceneRenderer[@property] temporalAntialiasingEnabled Specifies whether the receiver should reduce aliasing artifacts in real time based on temporal coherency. Defaults to NO.- Specified by:
isTemporalAntialiasingEnabledin interfaceSCNSceneRenderer
-
setTemporalAntialiasingEnabled
public void setTemporalAntialiasingEnabled(boolean value)
Description copied from interface:SCNSceneRenderer[@property] temporalAntialiasingEnabled Specifies whether the receiver should reduce aliasing artifacts in real time based on temporal coherency. Defaults to NO.- Specified by:
setTemporalAntialiasingEnabledin interfaceSCNSceneRenderer
-
setUsesReverseZ
public void setUsesReverseZ(boolean value)
Description copied from interface:SCNSceneRenderer[@property] usesReverseZ Specifies if the renderer should use the reverse Z technique. Defaults to YES. This property is only valid on a renderer created with a Metal device.- Specified by:
setUsesReverseZin interfaceSCNSceneRenderer
-
usesReverseZ
public boolean usesReverseZ()
Description copied from interface:SCNSceneRenderer[@property] usesReverseZ Specifies if the renderer should use the reverse Z technique. Defaults to YES. This property is only valid on a renderer created with a Metal device.- Specified by:
usesReverseZin interfaceSCNSceneRenderer
-
currentRenderPassDescriptor
public MTLRenderPassDescriptor currentRenderPassDescriptor()
Description copied from interface:SCNSceneRenderer[@property] currentRenderPassDescriptor The render pass descriptor of the receiver. This property is only valid within the SCNSceneRendererDelegate methods and when rendering with Metal. Otherwise it is set to nil.- Specified by:
currentRenderPassDescriptorin interfaceSCNSceneRenderer
-
-