android-augmented-reality

Placing objects right in front of camera in ARCore Android

邮差的信 提交于 2021-02-07 08:34:36
问题 I'm trying to place a large 3D object (generated from .obj file) in front of camera and not able to do it. The model gets placed considering the hit result as the center point. Any way to get it done? 回答1: The following code will place an anchor 1M in front of the camera - you can adjust the depth to whatever you need: // Place the anchor 1m in front of the camera. Log.d(TAG,"adding Andy in fornt of camera"); Frame frame = arFragment.getArSceneView().getArFrame(); Session session = arFragment

Placing objects right in front of camera in ARCore Android

丶灬走出姿态 提交于 2021-02-07 08:33:44
问题 I'm trying to place a large 3D object (generated from .obj file) in front of camera and not able to do it. The model gets placed considering the hit result as the center point. Any way to get it done? 回答1: The following code will place an anchor 1M in front of the camera - you can adjust the depth to whatever you need: // Place the anchor 1m in front of the camera. Log.d(TAG,"adding Andy in fornt of camera"); Frame frame = arFragment.getArSceneView().getArFrame(); Session session = arFragment

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

ARCore Compatible devices

泪湿孤枕 提交于 2020-01-01 04:34:05
问题 What are the next Android smartphones to be compatible with ARCore? Is there a known list of future compatible devices yet? Maybe a general project schedule? We are about to purchase some units for AR development assessments, at first we thought about trying one of the Tango devices out there (we already had a good experience with Tango), but our current bet is that the ARCore platform will beat it in terms of market share. Currently, the compatible devices are only: Google Pixel Samsung

Augmented reality application using unity and vuforia

允我心安 提交于 2019-12-24 19:04:47
问题 Good day everyone, I am currently on the process of creating my first AR application using unity and vuforia sdk. I already know some basics of AR that you need an image target to display the 3d object or information associated with the image target. I have this AR spinning cube this sample app works when it found a valid image target and a 3d cube will display and start to spin. My question is while the phone scans for image target there should be a message saying "Scanning for image target"

Unity (Vuforia) embedded within Android App

旧巷老猫 提交于 2019-12-23 01:23:25
问题 i have the exact same problem here with the different that when i added vuforia wrapper unity application got crashed before lunching if i didn't add vuforia wrapper the unity app open and behave normally but with black screen instead of camera Unity (Vuforia) project integrated in Android project shows a black screen on startup Unity Version: 2018.3.6f1 Vuforia version: 8.1.7 Android APP Gradle apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig {

ARCore + Unity + Augmented Images - Load different prefabs for different Images

僤鯓⒐⒋嵵緔 提交于 2019-12-18 04:29:07
问题 How do I assign different prefabs to different images? right now, I have all my prefabs loading in on top of each other but how do I get it so each prefab loads in only once on top of one image so each image has a different prefab? I've modified the sample code (the frame corners) to load in my own prefab and used a dictionary to pair the prefabs with images from the database but when the program runs it instatiates all the prefabs in the same place rather than putting one prefrab on each

Replace node renderable ( same rotation, position and scale ) with another node renderable in Sceneform sdk

不打扰是莪最后的温柔 提交于 2019-12-10 23:33:47
问题 I am new to sceneform sdk for Android . I have added one Transformable Node , then i applied some rotation , scaling and changed its position also. Now on click of button i need to place second node with same rotation , scaling and position. For that what i did is: Node nodeTwo = new Node(); // second node nodeTwo.setLocalPosition(nodeOne); nodeTwo.setLocalRotation(nodeOne); nodeTwo.setLocalScale(nodeOne); nodeTwo.setRenderable(renderable); I have also tried with setWorldPosition() ,

Packaging ARCore Unity Projects for distribution

旧街凉风 提交于 2019-12-07 02:09:15
问题 I have just picked up the Unity ARCore project and have been having a bit of a play around with it. Very exciting stuff for AR on Android devices! I am interested however in how developers in Unity are meant to package the applications for distribution through the Play store if it is also necessary for users to install the arcore-preview.apk ? What is it exactly? And is there a way of bundling its contents in a Unity build? Exciting stuff! O. 回答1: Yes, the arcore-preview has to be installed

Unity (Vuforia) embedded within Android App

心不动则不痛 提交于 2019-12-07 00:19:29
i have the exact same problem here with the different that when i added vuforia wrapper unity application got crashed before lunching if i didn't add vuforia wrapper the unity app open and behave normally but with black screen instead of camera Unity (Vuforia) project integrated in Android project shows a black screen on startup Unity Version: 2018.3.6f1 Vuforia version: 8.1.7 Android APP Gradle apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.example.myfit" minSdkVersion 16 targetSdkVersion 28 versionCode 1 versionName "1.0"