-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to track eye pose? #9
Comments
not eye blink, but eye ball's movement. current doesn't support right? |
Yes, the unity-chan model does not support eye-ball movement. However, other 3D models may support that. It depends on the model itself |
@mmmmmm44 I am deploying a model to make eye balls can move |
I see. So you are deploying a custom 3D model which supports eye-ball movements right? You can check out the code in Live2D model (HiyoriController.cs the function IrisMovement), copy that to your modified UnityChanController.cs script, change / add the corresponding variables to map with your custom model. Also, if you want to play with the data loading/ saving feature, then remember to edit the UnityChanPref.cs class. Basically it's like a JSON data class. Add the corresponding variables you want to save. |
@mmmmmm44 thanks, what's the pref meaning here? |
The save load data function is based on the Unity tutorial about using JSON to save and load user preferences (i.e. the setup of the unity application, the detection parameters). The explanation of files applys to both live2D and unity-chan project. The tutorial: https://youtu.be/uD7y4T4PVk0?t=346 There are three files involved in the save load preference system
The first one contains two functions, WriteToFile(string, string) and LoadFromFile(string, string). They are for writing/ reading the json file to/ from the computer The second one contains two functions, SaveJsonData(...) and LoadJsonData(...). They are for saving/ loading the json data into the corresponding variables of the controller programs, such that the user does not have to set the parameters again when opens the application again. For saving JSON file we need a class to wrap the datas to be saved/loaded, and that is what the third files contain, a class to wrap the parameters. In both of the xxxController.cs programs, there are two functions namely PopulateSaveData(xxxPref) and LoadFromSaveData(xxxPref), which after pressing the Load/ Save button in the Setting panel, the program will load the JSON file to override the current parameters of the detection/ save the current parameters to a JSON file. In the UISystem.cs scripts, there are two functions, SaveData() and LoadData(), which is called if you press the save/load button in the UI pannel. [EDIT] I hope I answer your question. |
Hi, have you found any 3D models that support eyeball movement? |
Hi, I found the eye's pose doesn't make the model animate. Anyway to support eye pose correctly?
The text was updated successfully, but these errors were encountered: