Discussions
Sign In
Forum rules
- please read before posting.
Animating textures on a 3D model for lip-syncing (Grimm Fandango style)
xXTheZoneWalkerXx
February 2015
in
Technical Q&A
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.
here is an example of what I would like to acheive
Comments
xXTheZoneWalkerXx
February 2015
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;
}
}
}
xXTheZoneWalkerXx
February 2015
line 18: if (character.lipSyncShapes[0].frame == 0)
ChrisIceBox
February 2015
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!
Sign In
Register
Quick Links
Categories
Recent Discussions
Categories
12.7K
All Categories
66
Official news
1.5K
Engine development
10.7K
Technical Q&A
338
Games showcase
152
Extending the editor
230
Adventure talk
Welcome to the official forum for Adventure Creator.
Forum rules
Main website
Store page
Community wiki
Community Discord
Powered by Vanilla
Comments