jamixlee
March 2nd, 2009, 02:49 AM
I have a question about a demo program in GLUT that made by K.Waters.
It is a virtual facial expression demo with GLUT and it has an algorithm for linear muscles on the face.
*The code is here
http://www.google.co.kr/codesearch/p?hl=ko#TZqvc0-ma68/glut-3.7/progs/demos/geoface/muscle.c&q=activate_muscle
act_muscles() callss activate_muscle() with some parameters like this,
activate_muscle (
face,
face->muscle[i]->head,
face->muscle[i]->tail,
face->muscle[i]->fs,
face->muscle[i]->fe,
face->muscle[i]->zone,
face->muscle[i]->mval
)
However, I think that activate_muscle() receives them not exactly.
It receives 'head' switch 'from' tail and V.V. as like following line.
activate_muscle (HEAD *face, float *vt, float *vh, float fstart, float fin, float ang, float val)
/* 'vt' means v_tail, 'vh' means v_head. */
"Isn't there a problem with that?"
It is a virtual facial expression demo with GLUT and it has an algorithm for linear muscles on the face.
*The code is here
http://www.google.co.kr/codesearch/p?hl=ko#TZqvc0-ma68/glut-3.7/progs/demos/geoface/muscle.c&q=activate_muscle
act_muscles() callss activate_muscle() with some parameters like this,
activate_muscle (
face,
face->muscle[i]->head,
face->muscle[i]->tail,
face->muscle[i]->fs,
face->muscle[i]->fe,
face->muscle[i]->zone,
face->muscle[i]->mval
)
However, I think that activate_muscle() receives them not exactly.
It receives 'head' switch 'from' tail and V.V. as like following line.
activate_muscle (HEAD *face, float *vt, float *vh, float fstart, float fin, float ang, float val)
/* 'vt' means v_tail, 'vh' means v_head. */
"Isn't there a problem with that?"