Hello! I am trying to make a dataset generator using Digital Human from Unity. On every frame, I am changing the snappers’ controllers position to achieve different emotions. Everything is fine until here: I created a Coroutine to be able to export an image for every frame, but somehow, the images are blurred like it doesn’t have enough time to render.
public IEnumerator Start(int numberOfImages)
{
for (int i = 0; i < numberOfImages; i++)
{
this.emotionsController.Reset();
this.emotionsController.Randomize(0.8f, 0.95f);
this.snapshotCamera.SetActive(true);
yield return new WaitForSeconds(1f);
}
}
A temporary solution was to wait one second for every frame, but I would like to change the settings (I don’t know which one) to wait until everything was rendered at high quality.
I only know that the engine tries to create good real interaction and because of it, it renders in low quality when it doesn’t have enough time. I would like to make the application wait between every frame, it doesn’t matter if it takes too long.
There is how it looks when I wait 1 second between every frame:
And when I yield null: