Giter Site home page Giter Site logo

Comments (22)

zachkinstner avatar zachkinstner commented on May 24, 2024

Hi @autuus!

In issue #57, my second comment says that the GetRotation() extension method is not actually needed by Hover UI Kit, so it can be removed. Please replace the UpdateDataWithLocalOffsets() method (code provided in my comment) to fix the issue.

If you do need to use the GetRotation() extension method for some reason (the code extracts the rotation component from a 4x4 matrix), you could either import the SteamVR package, or use the code provided in my first comment in #57.

from hover-ui-kit.

zachkinstner avatar zachkinstner commented on May 24, 2024

Here is the diff for that replacement code: c282ca3

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

okay, got it,
when i enter playmode leap is not tracking, I can see the menus though. I enabled leap from the example though, but nada

when i exit play mode ArgumentException: Scene to unload is invalid
UnityEngine.SceneManagement.SceneManager.UnloadSceneInternal (Scene scene) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/SceneManagerBindings.gen.cs:170)
UnityEngine.SceneManagement.SceneManager.UnloadScene (Scene scene) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/SceneManagerBindings.gen.cs:165)
Hover.Core.Utils.HoverSceneLoader.OnDestroy () (at Assets/Hover/Core/Scripts/Utils/HoverSceneLoader.cs:45)

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

Enabling oculus touch Scene 'Hover/InputModules/OculusTouch/Scenes/HoverInputModule-OculusTouch' couldn't be loaded because it has not been added to the build settings or the AssetBundle has not been loaded.
To add a scene to the build settings use the menu File->Build Settings...
UnityEngine.SceneManagement.SceneManager:LoadScene(String, LoadSceneMode)
Hover.Core.Utils.HoverSceneLoader:LoadSceneForRuntime() (at Assets/Hover/Core/Scripts/Utils/HoverSceneLoader.cs:108)
Hover.Core.Utils.HoverSceneLoader:LoadScene() (at Assets/Hover/Core/Scripts/Utils/HoverSceneLoader.cs:78)
Hover.Core.Utils.HoverSceneLoader:Awake() (at Assets/Hover/Core/Scripts/Utils/HoverSceneLoader.cs:34)

from hover-ui-kit.

zachkinstner avatar zachkinstner commented on May 24, 2024

Hmm, I'm not sure what might be happening regarding Leap Motion. If the Leap Motion controller is not tracking properly, you'll want to make sure the device is turned on, connected, and that your Leap Motion SDK is imported correctly, etc.

On the Hover UI Kit side, please be sure to review the various Getting Started pages, and also the Input Modules and Leap Motion pages. Following the steps and instructions on these pages will avoid many issues while getting Hover UI Kit setup for your app.

Enabling oculus touch Scene...

This error message is telling you what Unity requires -- the scene must be added to the "Scenes In Build" list in the "Build Settings" menu.

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

Im making an augmented/virtual reality OS https://autuus.itch.io/avros With leap motion + zed stereocamera and oculus, no sensors needed, its completely mobile ^^

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

Okay then, leap works in my other project though.. Lets see if I can crack this code.

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

Okay, adding the scene to build didnt work
Its a bit unintuitive anyways, since i'm trying to debug it, not really compile or build

screenshot https://imgur.com/a/WjPgrOA

from hover-ui-kit.

zachkinstner avatar zachkinstner commented on May 24, 2024

The error message tells you which scene must be added. In the case of the error message you provided above, the additional scene is "Hover/InputModules/OculusTouch/Scenes/HoverInputModule-OculusTouch". In your screenshot, there is only one scene present in the list (the "KeyboardPixels" example scene).

from hover-ui-kit.

zachkinstner avatar zachkinstner commented on May 24, 2024

Also, please note that Hover UI Kit only supports one input module at a time. In you screenshot, it appears you're trying to use both the Oculus and Leap Motion input modules together.

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

Also, please note that Hover UI Kit only supports one input module at a time. In you screenshot, it appears you're trying to use both the Oculus and Leap Motion input modules together.

Good to know, but only none has a camera, so I just make new camera, or is it none + 1 more?

from hover-ui-kit.

zachkinstner avatar zachkinstner commented on May 24, 2024

The cameras are present in the Input Module scenes. For example, in the "HoverInputModule-OculusTouch" scene, you'll find both the "OVRCameraRig" prefab and the "LocalAvatar" prefab.

In the "KeyboardPixels" example, these scenes are loaded at runtime by whichever (one) child of "InputSceneLoaders" that you enable. For example, the "OculusTouch" child object has a "Hover Scene Loader" component that performs this action.

This information is described in the wiki pages I linked above. I know it can be a drag to read through the documentation, but it's going to save you from a lot of headaches while getting started with Hover UI Kit.

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

Hmm, looks like my error was that I didnt import leap motion sdk. Lets see if I'm able to import it properly..

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

Hmm, it says missing prefab on all imput module scenes https://imgur.com/a/mQBgLZf

from hover-ui-kit.

zachkinstner avatar zachkinstner commented on May 24, 2024

I can't tell from your screenshot -- do you have the Leap Motion SDK imported into your Unity project? This scene is trying to find the "LMHeadMountedRig" prefab, which is provided by the Leap Motion SDK.

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

yeah, I had to copypaste it, since its not in asset store. it works but maybe its not detected by this code
I give up.
For now, at least.

from hover-ui-kit.

zachkinstner avatar zachkinstner commented on May 24, 2024

You can download Leap Motion's Unity SDK (called "Core Assets") here:
https://developer.leapmotion.com/unity/#5436356

If you copy-pasted some SDK assets, be sure to also include the "*.meta" files. If those files are not included, Unity will re-create them, and the script/prefab references will be lost.

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

Okay, once more, I download the 2.0.0B, Import the depricated version of Image Effects, import oculus integration and leap, fix the broken function, and come to the epic conclusion, it doesn't work.

no errors, just no hand and no camera.
missing prefab in HoverInput module.

from hover-ui-kit.

zachkinstner avatar zachkinstner commented on May 24, 2024

Test

  • New project in Unity 2017.3.1f1
  • Download the two 2.0.0B ZIP files here
  • Import all the Hover UI Kit packages (core, input modules, interface modules)
  • Add the "HoverDemos" folder to the project
  • Download/import the Unity Legacy Image Effects package (only needed for "HoverDemos" content)
  • Download/import the Leap Motion Core Assets 4.4.0 package
  • Leap Motion popup appears in Unity with a "Leap Rig Updater" warning, saying that the rigging prefab has changed in version 4.4.0
  • Try running the "Leap Rig Updater" in the HoverInputModule-LeapMotion scene -- it does nothing

Conclusion

Leap Motion SDK v4.4.0 has breaking changes for Hover UI Kit's Leap Motion input module. That's frustrating. Looks like this version was released about three weeks ago.

Workaround

You can use Leap Motion Core Assets 4.3.4 (download here) for now, until I can implement a new version of the input module.

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

Okay, got it working finally. I still do get an error, ArgumentException: Scene to unload is invalid
UnityEngine.SceneManagement.SceneManager.UnloadSceneInternal (Scene scene) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/SceneManagerBindings.gen.cs:170)
UnityEngine.SceneManagement.SceneManager.UnloadScene (Scene scene) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/SceneManagerBindings.gen.cs:165)
Hover.Core.Utils.HoverSceneLoader.OnDestroy () (at Assets/Hover/Core/Scripts/Utils/HoverSceneLoader.cs:45)

When exiting debug mode. any recommendations on how to fix this?

from hover-ui-kit.

autuus avatar autuus commented on May 24, 2024

Here's a version for the ones that want it to just work, without invested effort.
Unity Hover UI test project
(estimated lifetime for link is half a year)

from hover-ui-kit.

zachkinstner avatar zachkinstner commented on May 24, 2024

Thanks for uncovering the issue caused by the new Leap Motion assets!

I have just posted the new Hover UI Kit v2.0.1B release. This release fixes the Leap Motion issue and other compatibility-related issues that have arisen over the past year or so. Please give it a try, and let me know whether it resolves the issues you were having.

I have also updated the Input Module > Leap Motion page with notes about compatibility.

from hover-ui-kit.

Related Issues (20)

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.