Print Story Modest 3D effects with SVG, version 3.0
By NoMoreNicksLeft (Sat Mar 18, 2006 at 05:06:09 PM EST) svg, javascript, FACS, facial expression, database, sql (all tags)
I've been tinkering with a new SVG applet. Pretty ugly eh?

(Instructions: scroll down to the slider widget, and use it.)

Not alot to show for the time I spent doing this. There are lots of flaws so far...
  • I've got to shrink down the face itself by at least 50%
  • I've got to make room somehow for up to 60 slider widgets, potentially double that unless I have a toggle widget to indicate which side of the face it is... tabs maybe? Expando menus? Dunno
  • It's ugly. But I've never been good at drawing faces, and just try to get something that looks decent when you are doing vector...
  • It's going to take alot to learn to use it... I may end up using this one only myself, or maybe only allowing those who've practiced to use it.
So, any opinions?

The system I'm using (FACS) is one developed by psychologists in the 1970s to describe facial expression. Any facial expression can be described as a value for one or more of about 50 action units.

It poses some problems for me. One, it costs quite a bit, and I've not been able to find any libraries that have it. It comes on CDROM as a pdf, so if anyone would know how it might accidentally fall off the back of a digital truck...

It also uses a scoring system that is a little annoying. Each action unit can be scored from A-E, or 1-5 in something a little easier for my database to digest (all unscored action units presumably being zero). My database, interactive face animation, and slider will all be much happier with 0-255 though. Should I ditch their coarsely-grained scoring system for the byte? Should I ever need to reconvert back to the traditional scoring system of A-E, that's trivial, but once my 0-255 slider values are lost, they're gone for good.

Finally, there are some action units that just don't make sense. Some, like "blink" aren't really appropriate for still images, though they still have merit for video. Others make little sense, given my posable stick figure plans... "head left, right, up and down" are much better suited for my own joint XYZ/angle scheme. Then there are the ones I want to normalize a bit, why have "eyes left" and "eyes right", when I can have "eyes horizontal" where 0 is max left and 255 is max right? And finally, some just seem to be missing. There is a single "tongue protrude" action unit, when I think I'll need to invent a few more. "Liplicking" and "tongue curled upwards" come to mind, maybe more. And I'm starting if I should throw a "pupil dilation" in there just for good measure, too...

< MFC Official Voting! | BBC White season: 'Rivers of Blood' >
Modest 3D effects with SVG, version 3.0 | 6 comments (6 topical, 0 hidden) | Trackback
WIPO: HOTTT by DesiredUsername (2.00 / 0) #1 Sat Mar 18, 2006 at 05:28:35 PM EST
Excuse me for just Web 2.0

Now accepting suggestions for a new sigline
that's pretty cool by theantix (4.00 / 3) #2 Sat Mar 18, 2006 at 06:06:37 PM EST
not joking either, it's pretty cool -- good work.

Mostly just a demo for now. by NoMoreNicksLeft (2.00 / 0) #3 Sat Mar 18, 2006 at 06:11:53 PM EST
I'm not happy with it... I'm moving a single control point of the spline linearly. In inkscape, with me manually dragging it, I get the best shape if I drag it in a shallow curve, but I'll be damned if I know how to do the math for it. And some of the other features I've tried to do ended up even worse... this was one of the few where moving a single control point suffices.

I think I have a long road ahead on this one.
Do not look directly into laser with remaining good eye.

[ Parent ]
hi by komet (2.00 / 0) #4 Sun Mar 19, 2006 at 06:01:22 AM EST
rather than having a slider outside the picture, it ought to be possible to drag the eyelid directly. This will simplify things when you get up to the 60 parameters.

<ni> komet: You are functionally illiterate as regards trashy erotica.
For that one particular action unit. by NoMoreNicksLeft (2.00 / 0) #5 Sun Mar 19, 2006 at 06:42:31 AM EST
Others talk about multiple visual signs. I mean, when I have 20 hotspots out on the cheek, on the forehead, how will you find the one you want to drag?

Besides, a good 70% of expressions seem to me to be symetric, and a direct drag implies only one side of the face, external sliders are the way to go, I'm thinking.

It's going to be a nasty-assed UI no matter what I do though. It's pushing the limits of what is manually enterable, I think.
Do not look directly into laser with remaining good eye.

[ Parent ]
mark the drag points by komet (2.00 / 0) #6 Sun Mar 19, 2006 at 07:09:52 AM EST
with little circles or something. At the very least, if you insist on sliders, make hovering over a slider highlight the corresponding area on the face and vice versa.

<ni> komet: You are functionally illiterate as regards trashy erotica.
[ Parent ]
Modest 3D effects with SVG, version 3.0 | 6 comments (6 topical, 0 hidden) | Trackback