User avatar
Leslie
Lead Software Architect
Posts: 352
Joined: Fri Sep 14, 2012 12:20 pm
Contact: Website

Creating a 2D Avatar

Thu Oct 02, 2014 5:41 pm

Firstly you will have to keep the following Visemes ID in mind
  • 0 = silence
  • 1 = ae, ax , ah
  • 2 = aa
  • 3 = ao
  • 4 = ey, eh , uh
  • 5 = er
  • 6 = y, iy, ih, ix
  • 7 = w, uw
  • 8 = ow
  • 9 = aw
  • 10 = oy
  • 11 = ay
  • 12 = h
  • 13 = r
  • 14 = l
  • 15 = s, z
  • 16 = sh, ch, jh, zh
  • 17 = th, dh
  • 18 = f, v
  • 19 = d, t, n
  • 20 = k, g, ng
  • 21 = p, b, m
For 2D Images - its recommended that you use a JPG image or some low resolution/format Image.

a 2D avatar is quite easy - all you need is facial expressions with proper lip position.

For every Viseme - Theres an ID , go to the Avatar folder and then enter the 2D Folder. You will find the Tester Folder which has ID0 to ID21 - these are based on the viseme a word has.

All you have to do is take pictures of yourself or someone saying those words ( or words with those visemes ) and select the right ID for it and put in a separate folder in the 2D Directory and restart Syn Virtual Assistant. Then go to the Graphics and Settings Page and select the right 2D Avatar (the name of the avatar is taken from the name of the folder)

For 2D Avatars the configuration file is simpler:

XML Code

<main>

<expression id="0" image="ID0.jpg"/>
<expression id="1" image="ID1.jpg"/>
<expression id="2" image="ID2.jpg"/>
<expression id="3" image="ID3.jpg"/>
<expression id="4" image="ID4.jpg"/>
<expression id="5" image="ID5.jpg"/>
<expression id="6" image="ID6.jpg"/>
<expression id="7" image="ID7.jpg"/>
<expression id="8" image="ID8.jpg"/>
<expression id="9" image="ID9.jpg"/>

<expression id="10" image="ID10.jpg"/>
<expression id="11" image="ID11.jpg"/>
<expression id="12" image="ID12.jpg"/>
<expression id="13" image="ID13.jpg"/>
<expression id="14" image="ID14.jpg"/>
<expression id="15" image="ID15.jpg"/>
<expression id="16" image="ID16.jpg"/>
<expression id="17" image="ID17.jpg"/>
<expression id="18" image="ID18.jpg"/>
<expression id="19" image="ID19.jpg"/>
<expression id="20" image="ID20.jpg"/>
<expression id="21" image="ID21.jpg"/>

</main>

Return to “Developer Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest