Giter VIP home page Giter VIP logo

vilarvrc's Introduction

VilarVRC

Vilar's Shaders for VRChat

Most of the shaders here require specialized setup of some form. Below are setup instructions for each shader.

EyeTrack

Configurable Eye Tracking

UPDATE! VRChat has fixed eyetracking for full body tracking! I have added an untracked version to simplify the process. If you wish to use VRChat's built in eyetracking but want all the features of this shader, just use the EyeNoTrack variant of the shader! A demonstration prefab is included in the new release.

Eye Track Demo Image

To set up your eyes for tracking with the VilarEyeTrack shader, you will need the origin of each eye object to be it's center. This process is simple in Blender:


There are a few steps needed to get shader based eye tracking working on your Avatar. You will need to open Blender first and make each eye it's own object.


Eye Mesh Instructions Image 2

Select your mesh. Press Tab to enter Edit Mode. Select your eye vertices (You will need to do this separately for each eye).


Eye Mesh Instructions Image 3

Press Spacebar (Ctrl+Spacebar for Maya Bind Users) and type "Separate". Select "Mesh: Separate". Select "Selection".


Eye Mesh Instructions Image 6

Press Tab to exit Edit Mode. Select your Armature, and press Tab to enter Edit Mode. Select the root of your eye bone.


Eye Mesh Instructions Image 7

Press Spacebar and type "cursor". Select "View3D: Snap Cursor to Selected".


Eye Mesh Instructions Image 8

Press Tab to exit Edit Mode. Select your eye object. Press Spacebar and type "origin". Select "Object: Set Origin". Select "Origin to 3D Cursor".


Lastly, remove the Armature modifier from your eye objects.


That should do the trick! Your eyes are now their own separate objects, ready to be animated by their shader! Export your avatar and go back to Unity!


place your new eye objects under the head bone in your avatar hierarchy.


Materials Image

Create a separate material for each eye. Set their shader to Vilar/EyeTrack.


Wizard Image

Run the included setup wizard from VRChat SDK > Vilar's EyeTrack Setup. This will set the offset values for you, as well as autodetect orientation differences between Blender and Maya exports.


NOTE: If edited in Amplify Shader, the parralax feature will break. You will need to multiply normals and tangents by the look rotation matrix manually in the vert function after compiling to fix it. The multiply on the normals should be generated, just do the same to tangents.

vilarvrc's People

Contributors

naelstrof avatar vilar24 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.