Lip Tutorial
By Rob
Lip files are simple txt files which contain information that allow you to create mouth movements on units. These are incredibly useful to getting the right effects for missions and are a future help to you editors out there. You can download the lip file here
BUT you can only create these if you have made a voice to go with it.... The only way that the wav2lip.exe runs and creates a lip file is if you use the sound format (*.wav). and the other important task is making sure that the *.wav file is in 16 bit mono. You can make these changes in the file if you read the sounds tutorial. In there it shall give you all the information about the right programs to use in changing the bitrate etc.
Once you have your sound converted to the right frequency then all you have to do is simply drag the wav file over the top of the exe.
Let go of the file once over the *.exe and it shall go back to its default folder.. In that same folder you shall get al file call "nameofwav.lip"
Where nameofwav is the name of the wav file. if you open this up in txt pad then you shall see a lot of jumbled numbers
all you have to do now is change the wav files to ogg and make sure that the lip file is the same as the sound file otherwise it won't work...
Lip File Format
So, what does a lip file look like? Below is an example lip file. The first
line "frame=0.040" indicates the frame rate for the mouth animation.
In the demo mission this seems to always be set to 0.040. The remaining lines
consist of pairs of [time],[mouth position]. Each line basically says at time
[time] of the sound file change the characters mouth position to [mouth
position]. The [time] value is in seconds and the [mouth position] can be an
integer value from 0 to 7. See below for what the mouth positions mean.
You should provide enough time values in your lip file to coincide with the
length of the associated sound file. For example, the lip file below is
associated with a sound file that is ~ 1.5 seconds in length. If you cut short
the time in your lip file than part way through his speech the characters
mouth will stop moving.
Notice the last line has a [mouth position] value of -1? This indicates that
the mouth animation should stop. If you omit the -1 value in the last line
then the characters mouth will jitter at the end. Looks like he is mumbling :)
frame = 0.040
0.000, 1
0.040, 3
0.080, 2
0.120, 0
0.160, 1
0.240, 2
0.280, 1
0.360, 0
0.400, 1
0.440, 2
0.480, 3
0.640, 2
0.680, 1
0.760, 2
0.800, 1
0.920, 2
1.000, 5
1.040, 2
1.120, 0
1.320, 3
1.360, 2
1.480, 1
1.560, 0
1.600, -1
Mouth Positions
The OFP engine has multiple animations for each position which it
automatically uses. For each position the engine may use a happy animation
(mouth curled upwards), sad animation (mouth curled downwards), left frown
animation (left side of mouth is curved downwards) or the right frown
animation (right side of mouth is curved downwards). As far as I can tell you
can not control these facial animations.
If you have any probs e-m me.