lipsinс

Sorry if this question has already been.
How do lipsinс?

Comments

  • @akiranime
    You can set the value of a parameter using 'live2DModel.setParamFloat()' passing in the ID of the parameter and the value you want to set. For lip-syncing, you'd need to set the value each frame.

    Below is how you could implement the parameter setting part:
    private float mouthOpen;	// Extracted from the volume of the voice audio, for example.
    
    private void update()
    {
    	...
    	...
    	
    	// Set the value for the parameter based on its ID.
    	live2DModel->setParamFloat("PARAM_MOUTH_OPEN_Y", mouthOpen);
    	
    	...
    	...
    	
    	live2DModel->update();
    	live2DModel->draw();
    }
Sign In or Register to comment.