Code Monkey home page Code Monkey logo

tango-examples-unity's Introduction

Project Tango UnitySDK Examples

Copyright (C) 2015 Google Inc.

Project Status

The Tango service is deprecated. Google continues AR development with ARCore, a platform designed for building augmented reality apps for a broad range of devices.

Useful Websites

SDK Download - https://developers.google.com/project-tango/downloads

Developer Website - https://developers.google.com/project-tango/apis/unity

Contents

This contains the Project Tango UnitySDK examples and tutorial projects for Unity 5 and above.

UnityExamples

This project contains examples for Unity 5 and above. Each example is in its own scene:

  • DetectTangoCore - This example shows how to show UIs only if the Project Tango APIs are available.
  • MotionTracking - How to use the motion tracking APIs.
  • PointCloud - How to use the depth APIs and use the pose data to transform the point cloud into world coordinates.
  • AreaLearning - How to use the Area Description motion APIs and place objects at specific spots in the area description.
  • AreaDescriptionManagement - How to use the Area Description management APIs and create a new area description.
  • AugmentedReality - How to create an augmented reality experience using the video camera overlay APIs and motion tracking APIs.
  • MarkerDetection(Experimental) - How to use marker detection library combined with Tango motion tracking.
  • MeshBuilder(Experimental) - How to build a mesh using the motion tracking APIs and depth APIs.

MotionTrackingTutorialStart

This project contains a starting point for the motion tracking tutorial on the Project Tango developer website.

TangoWithCardboardExperiments

This experimental project shows an example of how to integrate Cardboard UnitySDK and Tango UnitySDK together to create a 6DOF VR experience.

TangoWithMultiplayer

This project is an example of a networked multi-user Tango experience in a shared world using the Photon Unity Networking SDK.

Project Layout

Projects commonly have the following folders:

  • Google-Unity/ - General Android lifecycle management
  • Plugins/Android/ - General Android and Tango-specific libraries
  • Standard Assets/ - Unity packages we are using
  • TangoPrefabs/ - Common Tango prefabs, like a simple camera
  • TangoSDK/ - Unity3D interface to the Tango libraries
  • TangoSDK/Examples - One subfolder here per example
  • TangoSDK/Examples/Scenes/ - All the Tango example scenes

Support

First please take a look at our FAQ page. Most of the issues can be solved by the FAQ section.

If you have general API questions related to Tango, we encourage you to post your question to our stack overflow page.

You are also welcome to visit Project Tango Developer website to learn more about general concepts and other information about the project.

Contribution

Want to contribute? Great! First, read this page (including the small print at the end).

Before you contribute

Before we can use your code, you must sign the Google Individual Contributor License Agreement (CLA), which you can do online. The CLA is necessary mainly because you own the copyright to your changes, even after your contribution becomes part of our codebase, so we need your permission to use and distribute your code. We also need to be sure of various other things—for instance that you'll tell us if you know that your code infringes on other people's patents. You don't have to sign the CLA until after you've submitted your code for review and a member has approved it, but you must do it before we can put your code into our codebase. Before you start working on a larger contribution, you should get in touch with us first through the issue tracker with your idea so that we can help out and possibly guide you. Coordinating up front makes it much easier to avoid frustration later on.

Code reviews

All submissions, including submissions by project members, require review. We use Github pull requests for this purpose.

The small print

Contributions made by corporations are covered by a different agreement than the one above, the Software Grant and Corporate Contributor License Agreement.

tango-examples-unity's People

Contributors

chaosemer avatar fredsa avatar jguomoto avatar r4ravi2008 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tango-examples-unity's Issues

TangoDeltacam has offset of about -13°X-Axis

I was browsing through several forums.
but to get the deltaCam matchin with the Camera image is really tricky. Tried to do some Matrix transformations. But i am not entirely there:

` // line 341 in: private void _UpdateTransformationFromPose(TangoPoseData pose) :

  m_colorCamOffs = Matrix4x4.TRS(m_camOffsetXf,m_camOffsetRot, Vector3.one);

		Matrix4x4 cTuc = new Matrix4x4();
		cTuc.SetColumn(0, new Vector4(1.0f, 0.0f, 0.0f, 0.0f));
		cTuc.SetColumn(1, new Vector4(0.0f, -1.0f, 0.0f, 0.0f));
		cTuc.SetColumn(2, new Vector4(0.0f, 0.0f, 1.0f, 0.0f));
		cTuc.SetColumn(3, new Vector4(0.0f, 0.0f, 0.0f, 1.0f));

        m_uwTuc = Matrix4x4.TRS(position, rotation, Vector3.one);
		Matrix4x4 uwOffsetTuc =  m_uwOffsetTuw * m_uwTuc * m_colorCamOffs * m_colorCamOffs * cTuc;	`

rotation works somehow but translation parameters from this discussion
get somehow squared: http://stackoverflow.com/questions/36476910/camera-offset-project-tango

ExperimentalMeshOcclusion is not working

Because #87 is closed, I am opening a new ticket here because the example built on Unity 5.2 is crashing on my Tango.

The error I got is "Channel is unrecoverably broken and will be disposed!" and I did not see any code exception.

My Tango's model is NX-74751 Development kit.

Android Version is 4.4.2

Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

I try to run the sample project via Android then I got this error message

05-29 06:09:58.637: E/AndroidRuntime(2116): FATAL EXCEPTION: main
05-29 06:09:58.637: E/AndroidRuntime(2116): Process: com.projecttango.experiments.unitymotiontracking, PID: 2116
05-29 06:09:58.637: E/AndroidRuntime(2116): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.projecttango.experiments.unitymotiontracking/com.google.unity.GoogleUnityActivity}: java.lang.ClassNotFoundException: Didn't find class "com.google.unity.GoogleUnityActivity" on path: DexPathList[[zip file "/data/app/com.projecttango.experiments.unitymotiontracking-1/base.apk"],nativeLibraryDirectories=[/data/app/com.projecttango.experiments.unitymotiontracking-1/lib/x86, /vendor/lib, /system/lib]]
05-29 06:09:58.637: E/AndroidRuntime(2116):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2236)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at android.app.ActivityThread.access$800(ActivityThread.java:151)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at android.os.Handler.dispatchMessage(Handler.java:102)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at android.os.Looper.loop(Looper.java:135)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at android.app.ActivityThread.main(ActivityThread.java:5254)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at java.lang.reflect.Method.invoke(Native Method)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at java.lang.reflect.Method.invoke(Method.java:372)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
05-29 06:09:58.637: E/AndroidRuntime(2116): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.unity.GoogleUnityActivity" on path: DexPathList[[zip file "/data/app/com.projecttango.experiments.unitymotiontracking-1/base.apk"],nativeLibraryDirectories=[/data/app/com.projecttango.experiments.unitymotiontracking-1/lib/x86, /vendor/lib, /system/lib]]
05-29 06:09:58.637: E/AndroidRuntime(2116):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at android.app.Instrumentation.newActivity(Instrumentation.java:1066)
05-29 06:09:58.637: E/AndroidRuntime(2116):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2226)
05-29 06:09:58.637: E/AndroidRuntime(2116):     ... 10 more
05-29 06:09:58.637: E/AndroidRuntime(2116):     Suppressed: java.lang.ClassNotFoundException: com.google.unity.GoogleUnityActivity
05-29 06:09:58.637: E/AndroidRuntime(2116):         at java.lang.Class.classForName(Native Method)
05-29 06:09:58.637: E/AndroidRuntime(2116):         at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
05-29 06:09:58.637: E/AndroidRuntime(2116):         at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
05-29 06:09:58.637: E/AndroidRuntime(2116):         at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
05-29 06:09:58.637: E/AndroidRuntime(2116):         ... 13 more
05-29 06:09:58.637: E/AndroidRuntime(2116):     Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

What I'm missing here? I didn't touch any codes inside it.

Video Overlay is Black

i Don't know when it happened exactly but either after:

  • I upgraded Tango Developer Kit to current Updates via System Settings or...
  • I Upgraded from Unity 5.3.5p7 to Unity 5.5.0p4
    Deploying with Debug Symbols the tablet prompts the following message on the Android Monitor's logcat in Android Studio:

01-25 21:31:13.001 537-558/com.xxxxxxxxx.unityexamples I/TangoEGL: checkAndUpdateEglState: invalid current EGLDisplay

or

01-25 21:32:09.688 537-558/com.xxxxxxxx.unityexamples I/TangoEGL: checkAndUpdateEglState: invalid current EGLDisplay 01-25 21:32:09.695 537-571/com.xxxxxxxx.unityexamples E/Unity: OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_ENUM: enum argument out of range (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 299)

it's hard to track down where the error comes from exactly because the origin to this library is hard to track: ist it coming from the TangoManager or the EnvironmentLight texture. the message is Promted in SurfaceTexture.cpp and some environmentalLight - library
maybe there is also a Camera Permission Issue. But so far older Versions built with Unity 5.3.5 work just fine under this aspect without asking for a camera permission.
GL_INVALID_ENUM might be a reason of an incompatible VideoOverlay setting in the TangoManager

GVR Spatial Audio not Functioning as Expected

Hey,

I am attempting to utilise the GVR spatialiser plugin in my tango project which is an ever so slightly adapted version of the mesh builder with occlusion example. I eventually managed to work my way through to a successful compile, through using a blank project, importing GVR SDK, then Tango SDK and a few horrible edits of the android manifests.

The audio is currently playing and appears to be spatialised, when I select a new world position for the AR marker the HRTF appears to change and does indeed sound like it is coming from the direction. However all "head" (phone) rotation and movement does not work, the HRTF filters appear unchanged.

I currently have only GVRAudio related objects within my scene, is it possible that the GVR Audio Listener needs a GVR associated object in order to determine its positon/rotation (like a GVR head?) I haven't used GVR before this project and really only want the spatialiser, I am currently having to use oculus and would really like the extra features from GVR.

And is there an accepted standard way to integrate GVR and Tango?

Thanks

Path is too long: "ExceptionStatusComponent$ExceptionStatusComponentListener.class"

I'm getting hit with an error when building these unity examples:

DirectoryNotFoundException: Could not find a part of the path "C:\Users\Christopher\Desktop\tango-examples-unity-master\ExperimentalProjects\MeshBuilder\Assets\Plugins\Android\tango-ux-support-library\bin\classes\com\google\atap\tango\ux\components\ExceptionStatusComponent$ExceptionStatusComponentListener.class" or "Temp\StagingArea\android-libraries\tango-ux-support-library\bin\classes\com\google\atap\tango\ux\components\ExceptionStatusComponent$ExceptionStatusComponentListener.class"

I followed the path and it does exist.

I've had very mixed results, ranging from being able to build the point cloud, area learning, and motion tracking examples, but not the experimental examples, to being able to build the examples but the axes are rotated improperly. It's a mess.

Error: Incorrect Configuration while using Tango Explorer or any Tango enabled app (dalvik v/s ART)

I'm suddenly getting this error while running any Tango enabled app (Google's Tango Explorer app etc..or my own build):
Error: Incorrect Configuration. Please go to Settings-->Developer options and use ART

By default the device came with dalvik & was running fine.
I've read some posts pointing the issues with using ART.

Still I switched to 'ART' and after rebooting the tablet, all the apps that were installed before changing to ART works fine(tango capabilities) but if I install a new tango-enabled app its not able to access tango core and throws an error.

What should I do?

AreaLearning saving Failed

Hi,
The tracking work very well, I try to save my area into the system , and it is always failed.

adb on terminal shows this error :
I/Unity (14202): Could not save area description.
I/Unity (14202): at System.Environment.get_StackTrace()
I/Unity (14202): at Tango.AreaDescription.SaveCurrent()
I/Unity (14202): at SaveADFController.KeyBoardBehaviour()
I/Unity (14202): at SaveADFController.OnGUI()

I use unity 5 under Mac .

is there any solution please

Thanks

AreaLearning Sample Empty Scene

The area learning sample has an empty scene. Is that intentional? The sample as-is builds but is stuck at "powered by unity" screen as there is no camera or anything else to initialize in the level.

Exception thrown in TangoSetupTeardownManager

Hi,

I have an exception being throw when using video overlay in TangoSetupTeardownManager because its member m_yuvTexture is null. This cause seems to be that the initialization order is wrong. As we can see here the texture is created after having created the TangoSetupTeardownManager. I think an easy fix is to set up the creation of the texture sooner in the code.

How to extract ADF's origin(0,0,0) ?

How can I know the ADF's origin(0,0,0). I want to allign Unity's World origin with tango ADF's origin.
The metadata doesnot contain anything.

Area Description List Incomplete

I am havong another problem with the area descriptions. It's the same problem as postet on G+
but mentioned to be a Zenia core problem: https://plus.google.com/102908861368834422170/posts/LH6yEcVojxt

the List of the ADFs is incomplete. When debugging the app via Android Studio -> Android Monitor the app also prompts the error:
02-07 19:47:13.954 7221-7243/? I/tango: file_io.cc:848 Successfully read ADF footer message from file: /data/data/com.google.tango/files/Tango/ADFs/c43b163b-e909-4da4-a9bb-beecf16f25f7 02-07 19:47:13.954 7221-12594/? I/tango_client_api: Tango Service: loadAreaDescriptionMetadata, internal status 0 02-07 19:47:13.963 7221-7243/? I/tango: file_io.cc:848 Successfully read ADF footer message from file: /data/data/com.google.tango/files/Tango/ADFs/f614ca98-c8c2-419b-ba17-cc7226b851c9 02-07 19:47:13.963 7221-13043/? I/tango_client_api: Tango Service: loadAreaDescriptionMetadata, internal status 0 02-07 19:47:13.974 7221-7243/? I/tango: file_io.cc:848 Successfully read ADF footer message from file: /data/data/com.google.tango/files/Tango/ADFs/f54cca4a-89b7-4710-b8aa-294e2d1d37a6 02-07 19:47:13.974 7221-8413/? I/tango_client_api: Tango Service: loadAreaDescriptionMetadata, internal status 0 02-07 19:47:13.980 7221-7243/? E/tango: file_io.cc:950 Failed to open ADF file: /data/data/com.google.tango/files/Tango/ADFs/758d24ef-695a-4999-bbb2-c243475dbbe9 02-07 19:47:13.980 7221-7236/? I/tango_client_api: Tango Service: loadAreaDescriptionMetadata, internal status -2 02-07 19:47:13.980 7221-7243/? E/tango: adf_metadata_utils.cc:167 Failed to load metadata. Unable to read ADF footer from: /data/data/com.google.tango/files/Tango/ADFs/758d24ef-695a-4999-bbb2-c243475dbbe9 02-07 19:47:13.980 7221-7243/? E/tango: tango_context.cc:436 Failed to load metadata. ADF not found with UUID: 758d24ef-695a-4999-bbb2-c243475dbbe9 02-07 19:47:13.985 15509-15528/com.felixschallercom.unityexamples I/Unity: Could not get metadata pointer for uuid 758d24ef-695a-4999-bbb2-c243475dbbe9.

it's a bit odd because on some builds it works without error and in others the error appears again. The most stable Configuration with the Developer Kit is: Building with mono2x and Gradle. With the internal or IL2CPP it's so far permanent. I am building with Unity 5.5.0p4

Problem With Tango Application, Crashes On Startup

Application used to work on older software revisions, but now crashes on startup. Here is the error I am receiving:

`I/ActivityManager( 900): Start proc com.OwlArrowGames.TangoSportsVR for activity com.OwlArrowGames.TangoSportsVR/com.google.unity.GoogleUnityActivity: pid=5029 uid=10118 gids={50118, 3003, 1028, 1015}

D/AndroidRuntime( 5029): Shutting down VM

E/AndroidRuntime( 5029): FATAL EXCEPTION: main

E/AndroidRuntime( 5029): Process: com.OwlArrowGames.TangoSportsVR, PID: 5029

E/AndroidRuntime( 5029): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.OwlArrowGames.TangoSportsVR/com.google.unity.GoogleUnityActivity}: java.lang.ClassNotFoundException: Didn't find class "com.google.unity.GoogleUnityActivity" on path: DexPathList[[zip file "/data/app/com.OwlArrowGames.TangoSportsVR-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.OwlArrowGames.TangoSportsVR-2, /system/lib, /vendor/lib, /system/lib]]

E/AndroidRuntime( 5029): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2122)

E/AndroidRuntime( 5029): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2246)

E/AndroidRuntime( 5029): at android.app.ActivityThread.access$800(ActivityThread.java:136)

E/AndroidRuntime( 5029): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1197)

E/AndroidRuntime( 5029): at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 5029): at android.os.Looper.loop(Looper.java:136)

E/AndroidRuntime( 5029): at android.app.ActivityThread.main(ActivityThread.java:5030)

E/AndroidRuntime( 5029): at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 5029): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

E/AndroidRuntime( 5029): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)

E/AndroidRuntime( 5029): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.unity.GoogleUnityActivity" on path: DexPathList[[zip file "/data/app/com.OwlArrowGames.TangoSportsVR-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.OwlArrowGames.TangoSportsVR-2, /system/lib, /vendor/lib, /system/lib]]

E/AndroidRuntime( 5029): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)

E/AndroidRuntime( 5029): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

E/AndroidRuntime( 5029): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)

E/AndroidRuntime( 5029): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)

E/AndroidRuntime( 5029): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2113)

E/AndroidRuntime( 5029): ... 9 more

E/AndroidRuntime( 5029): Suppressed: java.lang.ClassNotFoundException: com.google.unity.GoogleUnityActivity

E/AndroidRuntime( 5029): at java.lang.Class.classForName(Native Method)

E/AndroidRuntime( 5029): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)

E/AndroidRuntime( 5029): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)

E/AndroidRuntime( 5029): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

E/AndroidRuntime( 5029): ... 12 more

E/AndroidRuntime( 5029): Caused by: java.lang.NoClassDefFoundError: Class "Lcom/google/unity/GoogleUnityActivity;" not found

E/AndroidRuntime( 5029): ... 16 more

W/ActivityManager( 900): Force finishing activity com.OwlArrowGames.TangoSportsVR/com.google.unity.GoogleUnityActivity`

how to use this project

I develop tango AR app using Unity, I want to record the AR video, but I can't find a API to record video in the tango Android device, so I have to use Android API. in the Unity project, I import tango's unity SDK package, so, at Plugins/Android directory, there are a AndroidManifest.xml file and google_unity_wrapper.aar, If I want to use Android API, how to integrate my code into google_unity_wrapper.aar? or, how to use AndoridIntergration directory?

Viewport jumps in PersistentState demo

Just wondering what happened to the latest PersistentState demo: As soon as an area has been localized I frequently get false coordinates which causes my viewport to jump (sometime it's several frames in a second). Has someone come across the same behviour?

The type or namespace name `AndroidJavaProxy' could not be found. Are you missing a using directive or an assembly reference?

As per subject, i got this error when try to build and run the project. Even already import UnityEngine, the error message still occur.

http://docs.unity3d.com/ScriptReference/AndroidJavaProxy.html

Assets/TangoSDK/Core/Scripts/Common/AndroidLifecycle.cs(26,42): error CS0246: The type or namespace name `AndroidJavaProxy' could not be found. Are you missing a using directive or an assembly reference?

Code

public class AndroidLifecycleCallbacks : AndroidJavaProxy 
{

Please advice. Thank you.

AreaDescriptionManagement example fails at extending ADF

When I select an existing ADF and click extend, the produces the following error message:

Failed to connect to Tango Service.

Same issue can be reproduced when I set area description learning mode to be true, and start the tango application with an existing ADF in AreaLearning example.

Android - Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

I got this error message when trying to build and run on my android device using Unity5. Is it related to google API issue? All libraries required by this project.

    Installation failed with the following output:
        pkg: /data/local/tmp/Package.apk
    Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
    5801 KB/s (19486779 bytes in 3.280s)

    UnityEditor.HostView:OnGUI()

I don't know is it ok my AndroidManifes.xml, so far no issue at all.

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:largeHeap="true" android:theme="@android:style/Theme.NoTitleBar" android:versionCode="13" android:versionName="1.13" package="com.projecttango.experiments.augmentedreality" android:installLocation="preferExternal">
      <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="true" />
      <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
      <uses-permission android:name="android.permission.CAMERA" />
      <uses-permission android:name="android.permission.INTERNET" />
      <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
      <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
      <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false" android:isGame="true" android:banner="@drawable/app_banner">
        <activity android:name="com.projecttango.permissionrequester.RequestManagerActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar">
        </activity>
        <activity android:label="@string/app_name" android:name="com.google.unity.GoogleUnityActivity" android:screenOrientation="landscape" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale">
          <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
          <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
          <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
          </intent-filter>
        </activity>
        <uses-library android:name="com.projecttango.libtango_device" android:required="true" />
      </application>
      <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="21" />
      <uses-feature android:glEsVersion="0x00020000" />
      <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
      <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
      <uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />
    </manifest>

Please advice. Thank you.

Re-installing Tango Core deletes ADFs

Hi, I was experiencing issues running apps on my Tango so I uninstalled and re-updated Tango core, which worked, but then found that it had deleted all of my ADF files. To test , I created another ADF and re-installed core again and the same thing happened.

Tango pose status is always VALID

'TangoPoseData.pose.status_code' is VALID after localization. But when I step out of the AreaDescription the status_code doesnot change, its still VALID. Ideally it should be INVALID.
I'm using AreaDescription & StartOfService as coordinate frames.

Mesh fails to save after certain size

Hey,

This may be possibly related to issue #80 but within my application, if I scan an area and end up with too large of a mesh (can not say the size for certain) the mesh fails to save within the area description. The XML for uuid is generated but with blank vertecies/triangles fields. Is there a built in mesh size limit?

My application is an extension of the mesh occlusion example, the only tango related attributes I have changed is the 3D Reconstruction resolution to 0.05m meters

where are the scenes?

i'm trying to use this repository to look at some examples of tango uses, but i can't find the scenes associated with the scripts and prefabs.
where are the scenes for UnityExamples/Assets/TangoSDK/Examples/*?

thanks!

App crashes

I try to implement motion tracking but I have a bug.
When the tablet is too close to a wall, the app crash.

How to fix that ?

08-01 16:40:17.421 160-160/? I/DEBUG: pid: 8010, tid: 8010, name: my.app >>> my.app <<<
08-01 16:40:17.889 912-8141/? W/ActivityManager: Force finishing activity my.app/com.google.unity.GoogleUnityActivity
08-01 16:40:18.004 912-1034/? W/InputDispatcher: channel '656a8798 my.app/com.google.unity.GoogleUnityActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
08-01 16:40:18.004 912-1034/? E/InputDispatcher: channel '656a8798 my.app/com.google.unity.GoogleUnityActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
08-01 16:40:18.024 912-3584/? I/ActivityManager: Process my.app (pid 8010) has died.
08-01 16:40:18.036 912-1282/? W/InputDispatcher: Attempted to unregister already unregistered input channel '656a8798 my.app/com.google.unity.GoogleUnityActivity (server)'
08-01 16:40:18.036 912-1282/? I/WindowState: WIN DEATH: Window{656a8798 u0 my.app/com.google.unity.GoogleUnityActivity}
08-01 16:40:18.077 180-180/? D/phs:ipc-loc: Socket 11: hangup from client "my.app"

meshbuilder example doesnt work?

Hey has anyone had luck getting the mesh builder example to run or had luck integrating it with another unity project?

When I open the meshbuilder.unity scene its just a handful of scripts not connected to any game object, and when the project is compiled and launched on Tango it just crashes instantly

Voxel Tree Branch Removal

In an effort to better understand mesh generation I have been going over the meshbuilder code. I think I may have found a minor bug. I have not replicated this in unity, but, I do have a console application where I am replicating / testing the logical internals.

https://github.com/googlesamples/tango-examples-unity/blob/master/ExperimentalProjects/MeshBuilder/Assets/Scripts/Voxel.cs#L113

            } else if(parent.leftTree == this) {
                //point parent directly at child
                parent.leftTree = (leftTree != null) ? leftTree : rightTree;
            } else if(parent.rightTree == this) {
                //point parent directly at child. **Bug Here**
                parent.rightTree = (leftTree != null) ? leftTree : rightTree;
            }
            return true;
        }

If the node has a right child the child may get pruned unexpectedly. Here is a fixed version.

                else if (ReferenceEquals(parent.Left, this))
                {
                    // Delete Leaf Node
                    parent.Left = Left ?? Right;
                }
                else if (ReferenceEquals(parent.Right, this))
                {
                    // Delete Leaf Node
                    parent.Right = Right ?? Left;
                }

To demo this error take the following tree :

C10
- L5
- - L4
- - - L3
- - R8
- - - L6
- - - R9
- R15
- - L14
- - - L12
- - R21
- - - L18
- - - - L16
- - - - R20
- - - R22
- - - - R24

If we delete R21, we will loose R24

C10
- L5
- - L4
- - - L3
- - R8
- - - L6
- - - R9
- R15
- - L14
- - - L12
- - R22
- - - L18
- - - - L16
- - - - R20

With my fix you get this output. Note the position of R24

C10
- L5
- - L4
- - - L3
- - R8
- - - L6
- - - R9
- R15
- - L14
- - - L12
- - R22
- - - L18
- - - - L16
- - - - R20
- - - R24

Let me know if you need help replicating this on your end.

Persistent State Image Effect Errors

Persistent State has the following errors.

Assets/Editor/Image Effects/CameraMotionBlurEditor.js(92,36): BCE0004: Ambiguous reference 'preview': CameraMotionBlurEditor.preview, UnityEditor.Editor.preview.

Assets/Editor/Image Effects/CameraMotionBlurEditor.js(93,9): BCE0004: Ambiguous reference 'preview': CameraMotionBlurEditor.preview, UnityEditor.Editor.preview.

The project is unchanged. Downloaded 5/7/2015

App fails to startup when integrating GVR Spatial Audio

Following the GVR Tango integration guide, I am able to get Tango working with the GVR sdk. Everything works as expected until I add the GVR Spatial Audio, which causes a crash on startup. I did temporarily get Spatial audio working with the native oculus package in unity, but it's definitely not as powerful and just does not feel as immersive as it should be. Any insight?

I'm not sure if I got the event in here, but here is a link to some log cat.
https://docs.google.com/document/d/1yYsfU-nG6WlgNb-7mvCwxasDtYfUqCZ1jxMQZrJLFPo/edit?usp=sharing

Thanks! Stoked on GVR!

Non-static method "Lcom/projecttango/unityuxhelper/TangoUnityUxHelper;

Most of the time, the Unity SDK call to a native method during the connecting UX screen. The method is not found and the connecting screen hang out.

I/Unity   ( 6065): AndroidJavaException: java.lang.NoSuchMethodError: no non-static method "Lcom/projecttango/unityuxhelper/TangoUnityUxHelper;.䅣뿤(I)V"
I/Unity   ( 6065):   at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at UnityEngine.AndroidJNISafe.GetMethodID (IntPtr obj, System.String name, System.String sig) [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr javaClass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.Object[] args, Boolean isStatic) [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.Object[] args, Boolean isStatic) [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at Un

The problem is with the method:
tangoUxObject.Call("processPoseDataStatus", poseStatus);
But sometime it works.

My tango manager configuration is:
screen shot 2015-09-14 at 6 01 44 pm

I also use the Tango Point Cloud Prefab.

Unity version: 5.1.0f3 Personal
Tango Unity SDK: von Mises

URGENT: Tango Tablet issues since latest updates (none of the Tango SDK examples work properly; previous apps don't work anymore)

I experience issues with the original Project Tango Tablet; it has Android 4.4.2. and all the LATEST OS and software updates, including the Tango Core (Deprecated).

Most of the updated apps from Play Store are not working properly anymore, e.g. voxxlr and other that were working fine before the latest update I did...

For developing, I have

  • Unity 5.6.f1

  • Unity 5.3.7f1 (installed this previous one for trying out the previous Tango SDK from 2015...) - I'm using this one currently, but the 5.6.f1 built the app too in the end (after re-package issues etc.)

  • Android SDK Platforms 23 (required by both versions of Unity 3D when I build; I tried lower - e.g. 19 but it didn't work...); 16, 17, 19 in Android SDK platforms (I downgraded everything hoping it will improve the apk build)

  • Android SDK Tools 25.0.6

  • latest Tango SDK (the one available on the main Tango site)

I'm doing exactly as in the tutorials (Tango Manager conf, etc.).

I checked the app permissions on the tablet and they look fine (access to camera, etc.)

I can finally build (after downgrading the Android SDK) but none of the example apps from the Tango SDK are working (e.g. white background for both Tango cameras - new and deprecated; no motion detected, etc.) The kitten example from the tutorial is not working either...

I tried the Simple AR tutorial - I see the sphere but it's not doing anything - no movement, no real scene from the camera. I switched to VR, but still NO MOTION.

All in all:
I have NO MOTION and NO REAL VIEW no matter the example or app I build.

I don't know if it is the latest OS installed on the Tango tablet, or what...

Back in 2015 it took a couple of minutes to do basic demos. Now I'm spending hours and hours to rollback SDKs etc.

PLEASE HELP:
I need:

  • the previous configuration (Unity version, Android SDK versions, Tango SDK version) known to work fine with the Google Tango TABLET

Thanks,
Lucas

How to add Tango AR Camera in TangoWithMultiplayer?

When recognize an area description,then Open Tango AR Camera,I want do this,What should I do?

That, I add a Tango AR Camera in MultiplayerCubeStacker scene,but Tips:

"TangoApplication has area descriptions enabled ,but use area description pose option is not selected.
if left as-is ,this script will use the start of service pose even if an area description is loaded and/or area learning is enabled."

And auto-connect does not supply a chance to specify an Area Description.
Why ?

Export ADF file doesn't work - Unity-Tango SDK "AreaDescriptionManagement" example

Built application asks for exporting ADF file permissions and
areaDescription.ExportToFile(kb.text) in script ADMGUIController
returns true, but no file is written on desired location (/sdcard/file.adf or any other internal like /storage/emulated/0/somefile.adf)... Using Unity 5.6.1 and Lenovo Phab 2 Pro, clean project with most recent Tango package imported. Anybody experienced similar isue ?

Is it possible to change ADF file storage to some accessible folder ?

Thank You

VideoOverlayProvider.cs - m_emulationTexIdCaptureTextures does not exist

I get this error when I open up the UnityProject from the latest SDK .unitypackage download (Okul) or when I open the UnityExamples project from this Github.

Indeed, the property "m_emulationTexIdCaptureTextures" does not exist in VideoOverlayProvider.cs, and that class does not extend another class so it seems like it's missing altogether.

Point cloud Demo Misalignment

When viewed from the third person view, there seems to be a misalignment between the camera's view and the point cloud's position. The screenshots are taken from a clean build from the latest master version.
screenshot_2015-10-28-23-07-55
screenshot_2015-10-28-23-08-06

Cardboard exception

When trying to run the TangoCardboardWithMeshing scene on device, i get the following exceptions.

06-01 14:57:06.861 18095 18111 I Unity   : AndroidLifecycle callback set
06-01 14:57:06.861 18095 18111 I Unity   :
06-01 14:57:06.861 18095 18111 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
06-01 14:57:06.861 18095 18111 I Unity   :
06-01 14:57:06.914 18095 18111 I Unity   : AreaDescriptionEventListener.SetCallback()
06-01 14:57:06.914 18095 18111 I Unity   :
06-01 14:57:06.914 18095 18111 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
06-01 14:57:06.914 18095 18111 I Unity   :
06-01 14:57:07.262 18095 18111 I Unity   : Cardboard audio system is initialized (Quality: Medium, Sample Rate: 24000, Channels: 2, Frames Per Buffer: 512).
06-01 14:57:07.262 18095 18111 I Unity   :
06-01 14:57:07.262 18095 18111 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
06-01 14:57:07.262 18095 18111 I Unity   :
06-01 14:57:08.117 18095 18111 I Unity   : AndroidJavaException : java.lang.NoSuchMethodError: no non-static method "Lcom/google/unity/GoogleUnityActivity;.checkAndroidPermission(Ljava/lang/String;)Z"
06-01 14:57:08.117 18095 18111 I Unity   :
06-01 14:57:08.117 18095 18111 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
06-01 14:57:08.117 18095 18111 I Unity   :
06-01 14:57:08.124 18095 18111 I Unity   : AndroidJavaException : java.lang.NoSuchMethodError: no non-static method "Lcom/google/unity/GoogleUnityActivity;.requestAndroidPermissions([Ljava/lang/String;I)V"
06-01 14:57:08.124 18095 18111 I Unity   :
06-01 14:57:08.124 18095 18111 I Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

I tried using unity 5.2.1f1 and 5.6.0f3

Huge motion-to-photon latency

I noticed a significantly huge motion-to-photon latency when using the cardboard example. It's actually also noticeable with a normal Tango app. Motion-to-photon latency is quite critical for a good VR experience. Do you have data on this? Do you have plans to decrease it? Can we as developers try to decrease it?

Thank you.

Tango 3d scanner quality is poor. Could somebody help me how to improve it?

Hi,

I have tried same demo from the official repo for 3d scanning and i get really poor quality of 3d environment. i have tried change values of tango manager prefab and other settings but still its same.

I have attached screenshot of ExperimentalMeshBuilderWithColor demo. Please help me what to do ?

screenshot_20170112-011649

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.