Post

Replies

Boosts

Views

Activity

Reply to Metal not working in Swift Playgrounds (SSC Scene)
I really need to use Metal in my project because my scene is based on a simulation. I used SCNTechnique in SceneKit to create a distortion effect that enhances the immersion of the scene. I implemented it using this code: func applyMetalShadingAndTechniqueOnScene() { if let path = Bundle.main.path(forResource: "NodeTechnique", ofType: "plist"), let techniqueDict = NSDictionary(contentsOfFile: path) as? [String: AnyObject], let technique = SCNTechnique(dictionary: techniqueDict) { sceneView.technique = technique } } I even compiled a .metallib file using the following commands: xcrun -sdk iphoneos metal -o PincushionShader.ir -c PincushionShader.metal xcrun -sdk iphoneos metallib PincushionShader.ir -o PincushionShader.metallib However, when I try to use ShaderLibrary to load the .metallib file, the SceneKit view just turns black when the shader is applied. I would really appreciate any insights or solutions to this issue.
2w
Reply to How to use notification to notify shared container changes in cloudkit?
when I am sharing a link, this message appears in the console "connection invalidated" This happens after I click to generate a link in the sharing interface I click cloudkit share " You cannot get the URL of a share until it's been saved to the server Copy Link failed: Couldn't retrieve shareURL for item:<_SFCKShareCollaborationItem: 0x600003747300> identifier:946489CB-BF61-48D4-BA49-3F405B38AE0B, type:1, itemProvider:<_UISharingControllerActivityItemProvider: 0x600002926c30> {types = ( UTCollaborationOptionsType, "com.apple.cloudkit.sharingsupport.container", "com.apple.cloudkit.sharingsupport.post" )}, activityItem:<_UIActivityItemsConfigurationActivityItemProvider: 0x105124a90>, placeholderActivityItem:https://www.apple.com/icloud/, options:(null), sendCopyRepresentation:(null), canAddPeople:1 (null) connection invalidated "
Sep ’24