Log in or register to post comments

Custom Object placer on ground plane

November 26, 2018 - 9:46am #1

 I am trying to build an application using Unity for Android. It uses Vuforia (set to digital eyewear mode) and ARCore for ground plane detection.

The goal is to place some object at a location on the ground plane based on some event other than touch (like voice command).

I saw that in the samples shown in website, AnchorInputListener performs the screen coord calculation and call PlaneFinderBehavior. Since I don't have a touch event, I tried manually calling the PlaneFinderBehavior.OnInteractiveHitTest with a valid screenpos. It places the model on the ground plane, but the position is not stable (the model moves when I move the camera). If I touch the screen, then the model is placed but remains fairly stationary even when I move the camera. 

Am I doing something wrong, or is there a better way to manually place some object on the ground plane? Also, can the object to be placed be instantiated at runtime based on a prefab?

Attached is my setup of PlaneFinderBehavior.

Thanks for the help!

Anantha

 

 

 

AttachmentSize
Image icon setup.PNG41.98 KB

Custom Object placer on ground plane

November 28, 2018 - 5:44am #3

Hi,

Thanks for your reply!

I am using a Samsung Galaxy S9+ running Android 8. We use Digital Eye wear mode only to render the scene. 

If were to remove that and have it as a simple android app, how would we implement instantiating and placing prefabs at an arbitrary location and based on voice commands? We have implemented voice command triggers, but don't know how to connect to AnchorInputListener. 

Thanks,

Custom Object placer on ground plane

November 27, 2018 - 12:49pm #2

Hello,

Device compatibility with Ground Plane features is limited, and at this time does not extend to see-through eyewear devices (aka Digital Eyewear).

Here are the devices supported by Vuforia Fusion:

https://library.vuforia.com/articles/Solution/vuforia-fusion-supported-devices.html

https://developers.google.com/ar/discover/supported-devices

Thanks,

Vuforia Engine Support

Log in or register to post comments