Post

Replies

Boosts

Views

Activity

Reply to MDLVoxelArray performance
I’m hacking away at this. I know this is months old and you’ve probably already solved it. The fastest I’ve found is mesh to voxel. I can’t top that algorithmically yet even with multithreading. But now you need meshes and the problems that can go with that. And is there an opposite to “setvoxelatindex”? I can set them but I can’t make them go away in similar fashion. I use Boolean between two voxel arrays instead. Getting them to relate to each other properly doesn't seem very intuitive for me. The things are all “get” and no “set”. But it’s a real speed advantage versus iterating over each element.
Sep ’20
Reply to Bug in ARKit or incorrectly used?
I can’t tell from this. For me, random crashes in ARKit seem to always trace back to improper access to the main thread. A variable getting accessed on the main that is also being changed on another thread. 99% of the time it’s fine. But occasionally it collides with itself.
May ’22
Reply to UserDefaults and link to Apple ID
You could just use GameCenter to manage this. User defaults is a convenient way of saving app settings in the app's sandbox. They don't remain if the user deletes the app. But if you save scores, progress, and achievements to their GameCenter account, those things stay with the account. I think there is no reason to roll your own system for this.
Jan ’23
Reply to Programmatically created SCNMaterial vs SceneKit Viewer
Thank you for the reply. I'm not too familiar with how this forum works despite how long I've been a member. I had tried to add a comment yesterday to explain what I found but I don't see it anywhere. So that doesn't work how I thought it did. But my problem was due to a simple misspelling when setting the metallic contents. I just had it in my brain as being similar to another issue related to trying to match colors and so I didn't see the simple answer first. The viewer was using the file being dropped directly into the spot. So no spelling issues there. And yet the programmatic equivalent was effectively being set to nil. It is all working now. Thanks.
Jan ’23
Reply to Game Center Achievements with 1,000 Units
I would just save the value and update the achievement. When the new value is added update with Int(savedUnits/total * 100.0). savedUnit += 1 let valtest = ( saveUnit / 1000 * 100.0) GKAchievement(identifier: achievementID).percentComplete = Int(valtest) Given that 'Int' truncates the remainder, it won't prematurely award it.
Feb ’24
Reply to Why reject my submit?
There is an option to submit a video for the review. I got rejected once because they thought my app was only running an animation and also because it didn’t use ARKit enough. So I made a video showing how the user is creating the animation and that ARKit is an option to help the user visualize solutions. I think they were more accustomed to AR apps being all AR environment. Regardless, the video seemed to clear up any confusion. They deal with a flood of apps and can’t spend all day figuring out one and it may be a topic outside their interest, so its good to make things fast and simple to understand.
Feb ’24