TigersUniverse / VRCFaceTracking

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

Home Page:https://docs.vrcft.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ‘€ 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

https://docs.vrcft.io

License:Apache License 2.0


Languages

Language:C# 99.9%Language:Smalltalk 0.1%