Giter Site home page Giter Site logo

handvr's Introduction

※現在、更新予定はありません。HandMRもスマホVRに対応しておりますので、こちらをご利用ください。


HandVR

6DoFやハンドトラッキングに対応した、スマホVR(cardboard)用のアセットおよびサンプルです。

ARM64でARCoreに対応したAndroid上やARKitに対応したiOS上で動作します。

バージョン2019.2.17f1のUnityで動作確認しています。

unitypackageファイルはこちらからダウンロードできます。

アセットの使用方法

  1. 「Window→Package Manager」から、以下をインストール(サンプルプロジェクト上では設定済みです)

共通

  • AR Foundation(preview.3 - 3.1.0)
  • AR Subsystems(preview.2 - 3.1.0)
  • Input System(preview.3 - 1.0.0)
  • XR Management(2.0.6)

Android

  • ARCore XR Plugin(preview.2 - 3.1.0)
  • Google VR Android(1.18.4)

iOS

  • ARKit XR Plugin(preview.2 - 3.1.0)
  • Google VR iOS(1.18.5)
  1. 「File→Build Settings...→Player Settings...」から以下を設定

Android

  • Other Settings→Identification→Package Name:適当に変更
  • Other Settings→Identification→Minimum API Level:Android 7.0 'Nougat' (API Level 24)
  • Other Settings→Configuration→Scripting Backend:IL2CPP
  • Other Settings→Configuration→Target Architectures:ARM64のみ
  • Other Settings→Configuration→Scripting Define Symbols:UNITY_INPUT_SYSTEM
  • XR Settings→Virtual Reality Supported:オン
  • XR Settings→Virtual Reality SDKs:Cardboardを追加

iOS

  • Other Settings→Identification→Bundle Identifer:適当に変更
  • Other Settings→Configuration→Target minimum iOS Version:11.0
  • Other Settings→Configuration→Architecture:ARM64
  • Other Settings→Configuration→Scripting Define Symbols:UNITY_INPUT_SYSTEM
  • XR Settings→Virtual Reality Supported:オン
  • XR Settings→Virtual Reality SDKs:Cardboardを追加
  1. 配置済みのメインカメラを削除し、「ARVRCamera」プレハブと「HandVR」プレハブをシーンに配置

  2. 加えて「SphereHand」プレハブを使うことで簡単に手の表示を行うことができます

  3. (iOSのみ)プロジェクトのビルド後、「Unity-iPhone.xcworkspace」を開き、XCodeから以下を設定してアプリのビルドを実行

  • Unity-iPhoneをクリックすると出てくる設定画面のGeneral→Frameworks, Libraries, and Embedded Contentから「MultiHandAppLib-fl.a」を削除
  • 同画面のBuild Settings→Linking→Other Linker Flagsに-force_load Libraries/HandVR/HandVR/Plugins/iOS/MultiHandAppLib-fl.aの2つを追加
  • Unity-iPhoneプロジェクトのData/Rawディレクトリにあるhand_landmark.tflite multihandtrackinggpu.binarypb palm_detection_labelmap.txt palm_detection.tfliteの4つをUnity-iPhone直下にドラッグアンドドロップし、初期設定のままFinishをクリック

handvr's People

Contributors

non906 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

phantomxm2021

handvr's Issues

Cannot compile xcode build

Hi !
I'm using Unity 2020.3.22f1 and cannot compile the xcode due to 1000+ errors. I think this may be because OpenGLES is no longer supported. I've tried to include it in the build phases with no success in both Xcode 13 and 14.

Do I need to use an older version of Unity & What are your recommended versions ?

{edit] I've noticed the HandMR folder is RED in the folder structure which means it is missing ? - I did click on the HandMr dialogue pop-up to download it. Something must have gone wrong there. It won't let me re-download it in unity though.

ok many thanks,

Screenshot 2022-10-04 at 16 32 27

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.