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
225 views Asked by Petr Kysela At
2
There are 2 answers
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
- Navigate after logged in with webservice
- URLSession requesting JSON array from server not working
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Protect OpenAI key using Firebase function
- How to correct error: "Cannot convert value of type 'MyType.Type' to expected argument type 'Binding<MyType>'"?
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Using @Bindable with a Observable type in SwiftUI
- How to make a scroll view of 9 images in a forEach loop open on image 6 if image 6 is clicked on from a grid?
- Using MTLPixelFormat.rgba16Float results in random round-off errors
- Search and highlight text of current text in PDFKit Swift
- How is passing a function as a parameter related to escaping autoclosure?
- Actionable notification api call not working in background
- Custom layout occupies all horizontal space
- Is it possible to fix slow CKAsset loading on Cloudkit?
- Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value - MapView.isMyLocationEnabled
Related Questions in SCENEKIT
- Create and customize T-shirt using SceneKit
- Multiple SCNActions
- How to Make Xcode Recognize Morph Targets in a DAE File Imported from Blender?
- ARKit combining ARImageAnchor position with offset values
- Fetching the animations added to a SCNNode
- RealityKit: VideoMaterial causing odd outline around transparent video?
- Can't add a SCNNode to the rootNode
- How to screenshot a SCNScene or SceneView?
- Issues with Vertical Stretching and Horizontal Movement in Metal Shading Language Ray Tracing Shader
- Why does AVPlayer doesn't orient video correctly when using SceneKit?
- How to load 3D model to UIView with better quality in iOS Swift?
- Several instances of 3D model with skinner, and duplication of weights/indices information
- SceneKit physicBody angularVelocity as local "body fixed" angular rates
- How to draw 3D circles/ring in RealityKit?
- SCNSkinner.boneIndices access generates GBytes of memory allocation - why?
Related Questions in IOS11
- Transparent Black Shade over the Navigation Bar in iPhone-X Later Notch Screen Devices in iOS App
- How to use notification service extension in Cordova FCM
- Why is my responsive, hybrid email template breaking in iPhone 7 Native mail (only)?
- How to make .endswith work in OS 11 chrome and safari?
- Named Color in user defined property border color UIButton app crash
- pod install / update on iOS11 with Xcode12.2
- UISearchController searchBar background color of text field in iOS 11
- UISearchController does not show up in iOS 12
- Swift/Combine- Assign a filtered object to a property on a class
- Is it possible to use ARReferenceImage objects created programatically from the images on iOS 11.3.1
- Can iOS DeviceCheck token remains same across 2 apps if both app has different developer but has same SDK installed?
- OpenTok Session Volume Change Doesn't work with MPVolumeView
- Bottom ion-tabs overlapping on last portion of ion-content on iOS devices
- Disable drag interaction on specific section
- dyld: Library not loaded: @rpath/ ... Reason: no suitable image found. updated device to latest update 13.3.1
Related Questions in SWIFT4
- Nested Tableview inside CollectionView not loading from first index
- Face comparison of two images using Tensorflow Lite and Google ML Kit library
- Tried to implement the TLS/SSL connection from TCP connection in Swift 4 using Network library
- Is it possible to make 2 subviews with same z index?
- How to Make array of username clickable in UI Label each username should redirect to another page without using @, # , I want every username clickable
- How to check enum in same value using switch in swift
- Swift 5 very random and hardly identifiable crashes
- Crash in custom cell when leaving and re entering app
- Swift migration: 'Notification' is ambiguous for type lookup in this context' in some places
- UIApplication.keywindow ,must be used from main thread only warning
- Replace Gradient colors with ThemeSwift library (Library used for App Theme management)
- iOS 15 - UICollectionView disappear while scrolling only in iOS 15
- Create Long length Haptic in iWatch swift
- How to allow only single UIViewController to rotate upside down with Xcode?
- How can I use old binary library TinyCrayon on latest iOS project?
Related Questions in SCNSCENE
- Swift | RoomBuilder's RoomCaptureView export USDZ with blocks instead furniture
- How to screenshot a SCNScene or SceneView?
- How to move SCNNode within a SCNView using UITapGestureRecognizer?
- Swift-SceneKit-Can not load '.scn' file from 'art.scnassets'
- Placing SCNScene on the other SCNScene
- Finding a better method to identify points exist "inside" of a cube in swift
- SCNFloor goes unvisible randomly on SceneKit
- Changing scene view lighting model programmatically
- Get an URL from SCNScene
- Remove complete .scn instead of individual nodes Swift ARKit
- How to share .scn file as .usdz file?
- ARKit Project: Unexpectedly found nil while unwrapping an Optional value
- SwiftUI – Setting SceneView background to video
- arkit showPhysicsShapes larger than node
- How to scale SCNScene?
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?
Popular Tags
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)
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.