ARKit template project is not displaying SpriteKit nodes - sprite-kit

I'm trying to learn the basics of ARKit and I created a project in XCode 9 beta 4 by using the template for an AR app with SpriteKit. This project is supposed to already have the implementation of a sample app that displays an emoji in an SKLabelNode when you touch the screen.
I'm trying to run this sample in an iPad Mini 4 running iOS 11. I had to remove the arkit key from the Info.plist, and then the app runs. But the emojis are not shown. I also tried example of ARKit with SpriteKit, and the images are not displayed.
However, I could successfully run Apple's sample app which renders 3D models and I can see them. And also this other example that uses SceneKit as well.
How is it possible that I'm able to display 3D SceneKit objects but not 2D SpriteKit objects in my device? What could I be missing?

iPad mini 4 is not supported. ARKit requires an A9 or better processor
The devices that use A9 or A10 chips are:
iPhone 6s and 6s Plus
iPhone 7 and 7 Plus
iPhone SE
iPad Pro (9.7, 10.5 or 12.9)
iPad (2017)
source:http://www.redmondpie.com/ios-11-arkit-compatibility-check-if-your-device-is-compatible-with-apples-new-ar-platform/

Related

iPhone 12 Pro is not showing 3D model instantly

I have developed an AR mobile application with object detection using TensorFlow. The app is running perfectly on iPhone 12 Mini and other iPhones. But when I test it on iPhone 12 Pro and iPad 12 Pro the app is not showing 3D model when the phone camera is far from the detected object. When ever the app detects the trained object it is suppose to show the 3d model and place near to that object but in iPhone 12 pro versions it is only showing 3D object when camera is near to detected object.
I think may be LiDAR is creating problem? If yes, then how to stop the LiDAR using C# code as I have developed the project in Unity using ARFoundation and TensorFlow. I am using ARFoundation 1.0.
ARFoundation 1.0 was released in 2018, so it doesn't support Meshing (generation of triangle meshes that correspond to the physical space). So, there may be possible time-lag-problems, because device equipped with a LiDAR scanner must understand that there's no support for Scene Reconstruction in a current config, and it must toggled for a common Plane Detection approach instead.
A solution is simple – use the latest version of ARFoundation 4.1.5.

the picture is superimposed on each other in the unity game what to do?

The picture is superimposed on each other in the unity game what to do? This problem is only on my iPhone 6 and on my friend iPhone 6 plus (ios 12). Everything works well for Android and iPhone 12 (ios 14). the project has an asset with a prototype of the game, my scripts and shader forge. I am sure that someone has already encountered this problem and will be able to suggest in which direction to look for a solution, thanks in advance.
Screenshot from my iPhone 6
I had a problem with Light. just pressed the Clear Baked Data button in Generate Lighting!

IOS 13 Sprite Kit Issues

I recently made a game using sprite kit xcode 10.2 which was working fine unless ios 13 update, I tested the game in xcode 11 simulators with ios 13 the fps of the game starts to get reduce to 30-35fps. Also, sometimes physics body on sprite nodes is not working properly. sometimes collision is detected on sprite nodes and sometimes it is being detected in middle of the sprite node which was not the case in ios 12 everything was working fine until ios 13 update.

iPhone/iPad front camera FOV

There are some measured results available for certain older ios devices but I'm not able to find FOV numbers for newer models, specifically, iPhone 5s ~ 6s Plus and iPad 4 ~ iPad Pro. Also, the numbers listed on the above link don't match with some other calculated results.
I'm aware that FOV number can be read using the following API
NSLog(#"Camera's FOV is %f",myCamera.activeFormat.videoFieldOfView);
However, since I don't have all the models available at hand and the read numbers that are publicly available for some models also doesn't match measured/calculated results, I was wondering if there are reliable FOV numbers for most if not all iPhone/iPad models. Thanks.
I think you might want to take a look at
https://developer.apple.com/library/content/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/Cameras/Cameras.html
Table 4-5 iPhone 8 / iPhone 8 Plus / iPhone X Front Camera
Table 4-12 iPhone 7 / iPhone 7 Plus Front Camera
Table 4-15 iPhone 6s / iPhone 6s Plus Front Camera
Table 4-17 iPhone 6 / iPhone 6 Plus Front Camera
Table 4-19 iPhone SE Front Camera
Table 4-21 iPad Pro 12.9-inch (2nd generation) / iPad Pro 10.5-inch Front Camera
Table 4-23 iPad (5th generation) Front Camera
That's about all the calculations of FOVs out there. Also, they are from apple so I believe they are reliable.

Cocos2d and iPhone 5 Retina Support?

I would like to know how to include retina images for the iPhone 5 in cocos2d. I already have large images from the iPad version of the game. How do I do that ? Unfortunately there is not very much information on the internet, so I thought I'll ask here. I do not have a working iPhone version of the game yet.
This is built into cocos2d. Use xxx.png for standard resolution image, then provide a xxx-hd.png image and cocos2d will use that high-res version on Retina devices (including iPhone 5).
The file suffixes for iPad are -ipad and -ipadhd for Retina iPads.