Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, SBGuy, TipmyPip, ozgur), 923 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
facial animation #161305
10/16/07 09:06
10/16/07 09:06
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
it would be nice if the animation system had some features for facial animation. i think blend shape support wouldn't be hard to add.

for example it could work like that:

blend shapes get stored like normal vertex animation frames but with a special prefix in the name like "_bs_smile", "_bs_frown", "_bs_closedeyes",...

the engine then loads them as vertex displacements relative to the neutral pose.

with a function like ent_blendshape(entity, shapename, percent) several blend shapes could get activated and mixed then. for example:

ent_blendshape(my, "_bs_closedeyes", 50);
ent_blendshape(my, "_bs_smile", 120);

would give 50% closed eyes and 120% smile (since the displacements are relative, there also can be extrapolation).

blend shapes get applied before bone animation so that bone animation can be used together with it.


...
i think such a system could get scripted with the vec_to_vertex() function but of course it would be nicer if it were integrated. probably faster too?

Re: facial animation [Re: ventilator] #161306
10/17/07 08:00
10/17/07 08:00
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Hmm, isn't it better to animate a face through bones?

Vertex facial animation the way you described could be implemented, but it's sort of a step back because the MDL format is targeted towards for bones animation, with vertex animation only for legacy reasons. It also had major disadvantages, for instance it would consume more memory and would require complicated fixes for the case when the model turns its head, bends down, etc.

Re: facial animation [Re: jcl] #161307
10/17/07 08:08
10/17/07 08:08
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
along this, using bones would require weight-maps to create smoother transitions. is that planned?

Re: facial animation [Re: jcl] #161308
10/17/07 08:11
10/17/07 08:11
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
good facial animation is very difficult to do with bones. i think most 3d artists prefer to use blend shapes. it's easier and more fun to work with.

why would it require fixes when the model turns its head? mixing blend shapes with bone animation works great in programs like blender.

i don't think it would take that much memory since it mostly would only affect the face vertices and you wouldn't have to store whole vertex animation sequences but only a set of blend shapes. animation sequences could be done per script or in the model format there could be a list of percent values for each sequence.

Re: facial animation [Re: ventilator] #161309
10/17/07 08:46
10/17/07 08:46
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ok. I'll keep that in mind for a future update.

Re: facial animation [Re: jcl] #161310
11/06/07 11:52
11/06/07 11:52
Joined: Oct 2007
Posts: 29
AUT/Burgenland
bonecracker Offline
Newbie
bonecracker  Offline
Newbie

Joined: Oct 2007
Posts: 29
AUT/Burgenland
I have a suggestion!
Actually, we only want a good animation for our modells. With the Bone animation (I have the A6-C) there can be only reached a difficult reasonably good animation. Only with a IK (inverse kinematik) tool, we would have much easier to do animations. The blend shape animation is a really great idea. The blend shape animation in the game should not "emulate", but if there is a tool in MED to create "in MED" a Shape animation (with Bones), and export it to a "pure" Bone-animation. So at least, MED would be a much better Model AND animation software!

Ohh and one more thing... there should be a weight-setup for the bones.
(MAYA have a great weight-setup-tool -> you draw the weight like a texture (black + white). You also can import and export the weight-texture. With the weight-setup you can fix the problem with the face animation. A good modeller with a good bone-setup and a good weight-setup could create fantastic modells in MED.
If you wanna create a face-animation, you can also do it with bones. To simulate folds (wrinkles) in the face of a model, so it's shurly better to make a texture-blend-animation (with normalmaps or something else...) in combination with bone-animation.

So following features MED should have:
- IK-Handle tool
- Blendshape-animtion-tool for bones (to define animations you often need)
- Blendshape-animation-tool for textures

Sorry for my poor written english! I hope you understand what i am talking about.

CU

Last edited by bonecracker; 11/06/07 15:44.

Wenn man glaubt alles zu Wissen, weiß man wenig. Denn Glauben ist nicht Wissen. Wenn man weiß dass man Wissen nur glauben kann, dann kennt man die Warheit!

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1