Skip to content

A dotnet/framework library to allow avatars to interact with eye and facial tracking hardware

License

Notifications You must be signed in to change notification settings

TigersUniverse/VRCFaceTracking

 
 

Repository files navigation

👀 VRCFaceTracking

Provides real eye tracking and lip tracking to be integrated directly in Unity, skipping the need for OSC. THIS WILL NOT WORK WITH VRCHAT! This is designed to be used in any Unity projects (or possibly modded in to any other Unity game 👀).

Get started here!

Discord

🎥 Demo

😢 Setup with Unity

Download the Latest Release and import all the assemblies into Unity. Next, simply make all the needed interfaces (ILogger, IDisposable, ILoggerFactory, IDispatcherService, and ILocalSettingsService). Finally, plug this all into a MainIntegrated object and invoke the InitializeAsync() method.

// Assume settings, loggerFactory, and dispatcher (these will be implemented for your needs)
ILogger<ModuleDataService> moduleDataServiceLogger = loggerFactory.CreateLogger<ModuleDataService>();
ILogger<UnifiedTrackingMutator> mutatorLogger = loggerFactory.CreateLogger<UnifiedTrackingMutator>();
IModuleDataService moduleDataService = new ModuleDataService(moduleDataServiceLogger);
ILibManager libManager = new UnifiedLibManager(loggerFactory, dispatcher, moduleDataService);
UnifiedTrackingMutator mutator = new UnifiedTrackingMutator(mutatorLogger, dispatcher, settings);
MainIntegrated mainIntegrated = new MainIntegrated(loggerFactory, libManager, mutator);
mainIntegrated.InitializeAsync();
// When you're done,
mainIntegrated.Teardown();

For a more in-depth example, see FaceTrackingManager.cs and FaceTrackingServices.cs

🛠 Parameter Info

⛓ External Modules

Modules for Unity must be rebuilt with this assembly. Be sure to build assemblies with net7.0, netstandard2.1, and net481!

Use the following modules to add support for other hardware, when using VRCFaceTracking in Unity:

About

A dotnet/framework library to allow avatars to interact with eye and facial tracking hardware

Resources

License

Stars

Watchers

Forks

Languages

  • C# 99.9%
  • Smalltalk 0.1%