I have one little problem, maybe wrong approach. I created an ipad app (swift4) with SCNView, it works great, all transformations, lights, gestures... But I would like to display this scene on an external screen, connected by air play, not just to duplicate what i see on ipad. The SCNView is in UIView with another ui elements, that i don't want to display on external screen. How to get it work with smooth transformations on both screens? I have tried to clone scene nodes, but it did't work (maybe wrong code), another solution was to create new SCNView and load new scene, but then i don't know how to detect gestures to get the same transformations as on the main ipad display, and i think it costs more gpu calculations. Last solution was to snapshot the view and on an external screen display just the image, but again, i don't know how to listen to gestures or camera movements and make it smooth. Do you have few minutes to write me an example with the solution? With proper way, listeners on SCNView or different approach? I will be very grateful to you!
Get Swift4 SCNScene 30 snapshots per second and draw them smoothly on external screen in UIImageView
223 Views Asked by Petr Kysela At
2
There are 2 best solutions below
0
Heisenbug
On
If you don't want to use AirPlay you may try ReplayKit. It allows you to stream your screen content and you can create TV app that will display it.
Related Questions in SWIFT
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Swift code with multiple NSDateFormatter - optimization
- How do I add multiple in app purchases in Swift Spritekit?
- cellForRowAtIndexPath and prepareForSegue return different label colors
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Change background of an Accessory View in a UITableViewCell
- fade in an bounce animation subview
- Create a PFObject and PFRelation after PFUser Sign Up
- Swift 2 - Pattern matching in "if"
- How do I give inputs through NSURL
- How do I add custom cells to TableView in Swift?
- UIWebView not loading URL in simulator
- Compiler complains that 'Expression resolved to unused function' when removing index in array of functions
- Cast from 'Int?' to unrelated type 'NSNumber' always fails
Related Questions in SCENEKIT
- Is there an equivalent for SCNAction, SCNTransaction or SKAction in Unity?
- How to setup camera to point at object
- How to convert from ModelIO MDLMesh to SceneKit SCNGeometry and back?
- Scene Kit: projectPoint calculated is displaced
- Adding audio player to a node in SceneKit
- How do I use multiple textures in an OpenGL SL shader in SceneKit in iOS?
- SceneKit + Collada + animation
- Is there a way to use height map with SceneKit?
- Cloning nodes and performance, geometry, and performance; IOS Scenekit
- SceneKit shader modifiers with GLSL arrays
- Cylinder Orientation between two points on a sphere, Scenekit, Quaternions IOS
- Using a Metal shader in SceneKit
- Spin box/camera around with velocity in SceneKit
- Scenekit PhysicEngine follow rolling ball
- How to follow SCNNode with SCNCamera but don't rotate?
Related Questions in IOS11
- tableViewCell not scrolling up while editing a textfield in iOS11
- iOS 11 breaks row selection
- UITextField drawTextInRect is never called
- How to find obstacles in horizontal surface using ARKIT of iOS 11(Scenekit)?
- UIKeyboardWillShowNotification issues with ios 11 beta 7
- How to hide tabs in tabBarController dynamically in swift 3
- iOS11 file provider extension not working
- iOS11 Beta 8 | MapKit cluster performance issues 900+ Annotations
- iOS 11 navigationbar scroll
- iOS 11 CoreNFC How To Check if device has NFC Capability?
- How to place a 3D object above the other one using ARKit?
- with the new iOS 11 coming out- does WebRTC support mean that Twilio will work for voice in a browser instead of an app?
- Tab bar on iOS 11 not appearing
- scrollIntoView causes WKWebView to be partially unresponsive
- dyld: Library not loaded: @rpath/libswiftMetal.dylib on iOS 11(15A5304j) with Xcode 9 beta 6
Related Questions in SWIFT4
- Converting from Swift string to const char*
- Easiest way to set custom inputview to all textFields globally
- Swift mac app, run terminal command without knowing the path (so it looks in every path in $PATH)?
- Smart KeyPaths in Swift 4 not working properly
- Horizontal collection view not working
- Swift 4 Codable Array's
- Get the value of a Swift variable from a constructed name
- Swift 4 json decoder error flickr
- Using external libraries in Swift 4 playground
- Swift 4 Objective-C Runtime and casting to NSObjectProtocol
- Swift 4.0 Decoder error with closure property
- When activating a constraint, is the constraint relative to the view's parent view or the super view?
- In-app "Quick Actions" for 3D Touch
- How to set JSON output into UILabel in Swift 4.0?
- Integrating Unity 5.6.2 with ARKit to Swift project
Related Questions in SCNSCENE
- How can I create a 3D Grid in scenekit
- SceneKit: How to place a 3D object in order to fit the SCNView bounds?
- How to clone scnnode with different instance?
- Node's geometry (from DAE file) is nil only on production builds
- Remove complete .scn instead of individual nodes Swift ARKit
- CATextLayer not rendering properly on SCNNode
- How to clear the background of a SceneView 3D Object in SwiftUI
- How to share .scn file as .usdz file?
- Get Swift4 SCNScene 30 snapshots per second and draw them smoothly on external screen in UIImageView
- ARKit : Make virtual 3D objects to point towards camera
- Get an URL from SCNScene
- Swift-SceneKit-Can not load '.scn' file from 'art.scnassets'
- Placing SCNScene on the other SCNScene
- Interoperate MTKView (MetalKit) and SceneKit
- scnscene is nil every time
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I may don't have the solution but I think is very possible to setup Airplay just for stream what you want, hidding UI elements.
Duplication or buffering frames to video seems such expensive approach but not that crazy... just check how ARKit does it.