Giter Club home page Giter Club logo

unity_vr_ik_mecanim's Introduction

This project implements a SteamVR demo scene with a mirror and a single Adobe Fuse character named, Jesse (that's me).

It assumes you have an HTC Vive with a Vive Tracker mounted on your hip on the left side of your body.

It uses Unity's Mecanim IK to animate the arms of the fuse character as you wave your Vive controllers around. Unity's Mecanim IK isn't very good, so the elbows will be in weird places. This is just a demo project so you can get an idea what Mecanim is capable of. Unity's Mecanim lacks a head IK handle, so this demo uses VR headset rotation only, not position. Fuse character position is taken from the hip tracker.

Here's what it looks like:

character waving image

or watch the video:

Mecanim VR IK Youtube Video Demo

I highly recommend you buy and use the excellent Final IK asset from the Unity Asset Store instead. It works much better for this purpose. I have a video showing off the Final IK version of this scene here:

Final IK Youtube Video Demo

Assets/Scripts/IKControl.cs is the heart of this demo. You'll find it on the jesse object in the scene. It was created by following the (rather sparse) Unity IK manual page. I borrowed a t-pose from Unity's UMA asset and created a mecanim animator controller that uses the t-pose and enables IK pass through. That should be all you need to know to get started hacking.

unity_vr_ik_mecanim's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unity_vr_ik_mecanim's Issues

Unity 2018 Bug - Also some helpful fixes

Hello @createthis,

Thanks for posting this repo! This is in regards to Unity 2018.3.02f

I had quite a few Script errors, that were alleviated by performing the following:

  1. Installing Steam VR Unity Plugin via the Unity Asset Store
  2. Installing OpenVR via the Package Manager Window in Unity. (Window -> Package Manager)

The only script issue I am getting now is this script error:
Assets\Scripts\TranslucentController.cs(12,42): error CS0246: The type or namespace name 'SteamVR_RenderModel' could not be found (are you missing a using directive or an assembly reference?)

Let me know if you have any suggestions or work around if you have time. Thanks in advance!

License?

Is this free for commercial use?

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.