Forum rules - please read before posting.

Animating textures on a 3D model for lip-syncing (Grimm Fandango style)

So I purchased AC, and I'm very much in love with the whole system.

One thing I've been trying to achieve is to get the face of my character to lip-sync with textures instead of blendshapes. 

image

here is an example of what I would like to acheive





Comments

  • edited February 2015
     I followed the tutorials online for setting up my scene/character/conversation and etc.  when I play the game I get this error:

    ArgumentOutOfRangeException: Argument is out of range.
    Parameter name: index
    System.Collections.Generic.List`1[AC.LipSyncShape].get_Item (Int32 index) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:633)
    SyncTextures.Update () (at Assets/AdventureCreator/Scripts/Speech/SyncTextures.cs:18)

    this is the script im using :

    using UnityEngine;
    using System.Collections;
    using AC;

    public class SyncTextures : MonoBehaviour
    {
    public Texture2D mouth0;
    public Texture2D mouth1;
    public Texture2D mouth2;

    public Char character;
    public SkinnedMeshRenderer skinnedMeshRenderer;
    void Update ()
    {

    if (character.lipSyncShapes[0].frame == 0)
    {
    skinnedMeshRenderer.material.mainTexture = mouth0;
    }
    else if (character.lipSyncShapes[0].frame == 1)
    {
    skinnedMeshRenderer.material.mainTexture = mouth1;
    }
    else if (character.lipSyncShapes[0].frame == 2)
    {
    skinnedMeshRenderer.material.mainTexture = mouth2;
    }
    }
    }
  • line 18: if (character.lipSyncShapes[0].frame == 0)
  • 1.42 will bring this feature without need for custom scripting.  A new Lip-Sync "output" option will be to map phonemes to a character texture.  It should be out this week.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.