|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FaceController
The FaceController is the access point for deforming the face of an avatar, just like VJoints are the accesspoint for deforming its body. For now, the FaceController provides access to two ways of controlling a face: - set morph targets - set FAPs Either method may do nothing at all if such manipulations are not supported. Because morph targets may also be non-face-related (body morphs), we only have add and remove morphtarget. The calling application is responsible for removing morph weights that it has added. The implementaion of FaceController must maintain an administration of previously added morph targets... FAPs are always only face related. Therefore, an implementation of FaceController can suffice with implementing setMPEG4Configuration. This abstract class implements the add & remove FAPs methods. Implementations of this interface may control the face of an avatar rendered in the HMI rendering environment, or send the commands onwards to another rendering environment such as Greta or Ogre. Note: to actually display the face configuration, you need to call copy()
| Method Summary | |
|---|---|
void |
addMorphTargets(String[] targetNames,
float[] weights)
|
void |
addMPEG4Configuration(MPEG4Configuration config)
|
void |
copy()
Do actually apply the current configs and morphs to the face, including the joint rotations for eye, neck, jaw |
ArrayList<String> |
getPossibleFaceMorphTargetNames()
|
void |
removeMorphTargets(String[] targetNames,
float[] weights)
|
void |
removeMPEG4Configuration(MPEG4Configuration config)
|
void |
setMPEG4Configuration(MPEG4Configuration config)
Directly set a FAP configuration on the face. |
| Method Detail |
|---|
void setMPEG4Configuration(MPEG4Configuration config)
void addMPEG4Configuration(MPEG4Configuration config)
void removeMPEG4Configuration(MPEG4Configuration config)
void addMorphTargets(String[] targetNames,
float[] weights)
void removeMorphTargets(String[] targetNames,
float[] weights)
ArrayList<String> getPossibleFaceMorphTargetNames()
void copy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||