Comments (8)
Ensure that there is data sending from the python to the unity.
If you are using unity chan model, check the ear_min_ratio and ear_max_ratio. The values are the window of the eye blinking animation. The ear_min_ratio sets the lower-bound of the animation (i.e. the value with eyes completely closed), while the ear_max_ration sets the upper-bound of the animation (i.e. the value with eyes completely opened).
Also, for unity-chan model, you have to drag the EYE_DEF and EL_DEF from the auto-blink script.
If you are using live-2d model, the name of the variables are the same, with the same meaning.
If you plan to use your custom model, you have to edit the live-2d script or unity-chan script to suit your model.
from vtuber-python-unity.
not eye blink, but eye ball's movement. current doesn't support right?
from vtuber-python-unity.
Yes, the unity-chan model does not support eye-ball movement.
However, other 3D models may support that. It depends on the model itself
from vtuber-python-unity.
@mmmmmm44 I am deploying a model to make eye balls can move
from vtuber-python-unity.
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.
from vtuber-python-unity.
@mmmmmm44 thanks, what's the pref meaning here?
from vtuber-python-unity.
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
- SaveDataManager.cs
- FileManager.cs
- xxxPrefs.cs (xxx = UnityChan or Hiyori, depending on your project)
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]
The save/load feature works both in PlayMode and standalone application.
I hope I answer your question.
from vtuber-python-unity.
@mmmmmm44 I am deploying a model to make eye balls can move
Hi, have you found any 3D models that support eyeball movement?
from vtuber-python-unity.
Related Issues (18)
- Why the pitch always -90 HOT 3
- ConnectionRefusedError: [WinError 10061] HOT 5
- Motion of hair components HOT 2
- main.py isn't opening any window HOT 1
- The reason why somttimes iris_image_points will run out of range HOT 1
- [Tutorial] Create a 9:16 game aspect ratio in Unity to let the UI showing correctly
- 3D custom model question HOT 3
- i cant change unitychan character. HOT 1
- i can connect without error, but it so slow..
- About asking how to set the port of unity
- Error, Can you help me? HOT 9
- barracuda facemesh & other model HOT 1
- Live2D chitoge problem HOT 3
- can i run it in ubuntu 16.04 HOT 1
- import error, how to resolve? HOT 3
- TCP connnect can not connected, unity is runing HOT 9
- hwo to set these values? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vtuber-python-unity.