Post

Replies

Boosts

Views

Activity

Reply to Creating SCNGeometryElement with SCNGeometryPrimitiveType.polygon always causes error
I once got this working and never touched it afterwards. I agree the documentation by Apple is really bad in this topic. I'd suggest to read about the data structures of OpenGL which are mostly the same. With .triangleStrip every new vertex at the end of the array adds another triangle and everything is connected. I think with .polygon mode you have to define the three vertices for every triangle. So the first three vertices are one triangle and then the next three vertices are another triangle, separate from the first one. Only a number of 3 is valid. So in your code you have to add two more vertices or remove one.
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’22
Reply to FPS drop when making a 3D object appear (AR app made with SceneKit)
You can preload the assets. prepareObject:shouldAbortBlock: https://developer.apple.com/documentation/scenekit/scnscenerenderer/1522798-prepareobject prepareObjects:withCompletionHandler: https://developer.apple.com/documentation/scenekit/scnscenerenderer/1523375-prepareobjects
Replies
Boosts
Views
Activity
Feb ’22
Reply to Creating SCNGeometryElement with SCNGeometryPrimitiveType.polygon always causes error
I once got this working and never touched it afterwards. I agree the documentation by Apple is really bad in this topic. I'd suggest to read about the data structures of OpenGL which are mostly the same. With .triangleStrip every new vertex at the end of the array adds another triangle and everything is connected. I think with .polygon mode you have to define the three vertices for every triangle. So the first three vertices are one triangle and then the next three vertices are another triangle, separate from the first one. Only a number of 3 is valid. So in your code you have to add two more vertices or remove one.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to [ShareSheet] Only support loading options for CKShare and SWY types.
I have the same issue and I am getting the same log. I can only share to Airdrop and apps like Mail and Message but there is no option to save the file.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23