augmented-reality

Is there any way to load FBX file using ARKit?

孤街浪徒 提交于 2020-07-05 10:47:11
问题 In my project I am projecting 3d files using ARKit. I am able to project Dae and Obj format models. Is there anyway I could load fbx files? 回答1: ARKit itself isn't loading models in 3D scene. It's a work for a SceneKit framework. SceneKit doesn't directly support .fbx now. You could implement a reading of .fbx file format via ModelIO but it's non-trivial thing. The best way to prepare your model for working in ARKit, SceneKit and RealityKit is to convert it into usdz file format via new

Is there any way to load FBX file using ARKit?

假装没事ソ 提交于 2020-07-05 10:46:28
问题 In my project I am projecting 3d files using ARKit. I am able to project Dae and Obj format models. Is there anyway I could load fbx files? 回答1: ARKit itself isn't loading models in 3D scene. It's a work for a SceneKit framework. SceneKit doesn't directly support .fbx now. You could implement a reading of .fbx file format via ModelIO but it's non-trivial thing. The best way to prepare your model for working in ARKit, SceneKit and RealityKit is to convert it into usdz file format via new

How to detect the 2D images using ARKit and RealityKit

爷,独闯天下 提交于 2020-07-03 10:08:55
问题 I want to detect the 2D images using ARKit and RealityKit . I don't want to use SceneKit because many implementations based on RealityKit. I couldn't find any examples detecting images on RealityKit. I referred https://developer.apple.com/documentation/arkit/detecting_images_in_an_ar_experience sample code from apple. It uses Scenekit and ARSCNViewDelegate let arConfiguration = ARWorldTrackingConfiguration() arConfiguration.planeDetection = [.vertical, .horizontal] arConfiguration

SceneKit AR game fps getting low and the device getting hot with use

三世轮回 提交于 2020-06-27 16:16:42
问题 I'm developing a 3D game with ARKit and SceneKit. The game running smoothly at 60 fps but when I keep using it for a while the device get hot and the frame rate drop to 30 fps. The energy impact is very high and I noticed something in Instruments. I'll show the statistics and what I see in Instruments. This are the statistics when the game is running smoothly but I don't understand why I get 1.16K as the nodes count. I actually don't use so much nodes but it's just a simple level. This is

SceneKit AR game fps getting low and the device getting hot with use

徘徊边缘 提交于 2020-06-27 16:16:27
问题 I'm developing a 3D game with ARKit and SceneKit. The game running smoothly at 60 fps but when I keep using it for a while the device get hot and the frame rate drop to 30 fps. The energy impact is very high and I noticed something in Instruments. I'll show the statistics and what I see in Instruments. This are the statistics when the game is running smoothly but I don't understand why I get 1.16K as the nodes count. I actually don't use so much nodes but it's just a simple level. This is

How to render objects in Just A Line AR App?

吃可爱长大的小学妹 提交于 2020-06-27 01:10:05
问题 I have to render objects over lines drawn in Just a Line AR App .But when i am trying to include arfragment, " app is not able to find a place to draw line ".Also when i am trying to include view renderable class for showing 2d texts into 3d scene,i am getting this error: "No implementation found for long com.google.android.filament.Stream.CreateBuilder()". Any idea on how to resolve this issue? 来源: https://stackoverflow.com/questions/62592904/how-to-render-objects-in-just-a-line-ar-app

Dynamically change text of RealityKit entity

时间秒杀一切 提交于 2020-06-25 06:45:33
问题 I have created a very simple scene ("SpeechScene") using Reality Composer, with a single speech callout object ("Speech Bubble") anchored to a Face anchor. I have loaded this scene into code via the following: let speechAnchor = try! Experience.loadSpeechScene() arView.scene.anchors.append(speechAnchor) let bubble = (arView.scene as? Experience.SpeechScene)?.speechBubble It renders as expected. However, I would like to dynamically change the text of this existing entity. I found a similar

Multi-face detection in RealityKit

允我心安 提交于 2020-06-25 05:44:28
问题 I have added content to the face anchor in Reality Composer, later on, after loading the Experience that i created on Reality Composer, i create a face tracking session like this: guard ARFaceTrackingConfiguration.isSupported else { return } let configuration = ARFaceTrackingConfiguration() configuration.maximumNumberOfTrackedFaces = ARFaceTrackingConfiguration.supportedNumberOfTrackedFaces configuration.isLightEstimationEnabled = true arView.session.delegate = self arView.session.run

Changing Textures of Object in AR core in runtime

狂风中的少年 提交于 2020-06-25 05:37:27
问题 I am creating an app where I need to change textures(pattern) of my 3d object. I am using AR Core SDK and android. I have used the below code but it is not working. Texture.builder() .setSource(this,R.drawable.fabric3) .build() .thenAccept(t -> { BaseTransformableNode node = arFragment.getTransformationSystem().getSelectedNode(); if(node!=null){ node.getRenderable().getMaterial().setTexture("baseColorMap",t); } }); Documentation is also not helping me much. This is my SFA file { animations: [

Changing Textures of Object in AR core in runtime

南楼画角 提交于 2020-06-25 05:37:10
问题 I am creating an app where I need to change textures(pattern) of my 3d object. I am using AR Core SDK and android. I have used the below code but it is not working. Texture.builder() .setSource(this,R.drawable.fabric3) .build() .thenAccept(t -> { BaseTransformableNode node = arFragment.getTransformationSystem().getSelectedNode(); if(node!=null){ node.getRenderable().getMaterial().setTexture("baseColorMap",t); } }); Documentation is also not helping me much. This is my SFA file { animations: [