Aller au contenu

Photo

[SOLVED] Animations using character + placeables


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
TimelordDC

TimelordDC
  • Members
  • 923 messages
So, I have this character sitting at the bar, drinking. There is a pose called Sitting Drinking that you can set in the conversation when you have a stage selected. However, that doesn't come with a mug :)

Now, if I want to simulate the character drinking from a mug, do I have to create a separate mug placeable and animate it separately? Or is there an easier way to do it?

Modifié par TimelordDC, 16 août 2010 - 06:04 .


#2
Eshme

Eshme
  • Members
  • 756 messages
Assume you do a cutscene? You could attach a Mug item if there was one to a Creature node. Link to Actor i believe is it called.

#3
Sunjammer

Sunjammer
  • Members
  • 925 messages
You need to add the mugs, add a track, select Action > Link to actor. Then in the object inspector set the Actor property to that of the appropriate NPC and set the Node property to the appropriate node (probably (VFX) Right hand or (WPN) Right hand). The mug will now move with the NPC's hand as he raises it to drink etc.

If the mug isn't at exactly where you want it (in relation to the hand) you can set the Use Offset property to True and then manually tweak the position and orientation. For example this seems to be necessary to make a blacksmith hold a hammer (at least it was for the hammer I wanted to use).

#4
TimelordDC

TimelordDC
  • Members
  • 923 messages
Wow. I didn't even know about the Link to actor option. Thanks a bunch, Eshme and SJ!

#5
errant_knight

errant_knight
  • Members
  • 8 256 messages
Oh, wow! Am I ever glad you asked this! I was about to try and animate a mug to match the drinking motion, and that would have been HARD! ;)


#6
errant_knight

errant_knight
  • Members
  • 8 256 messages
Okay, I'm running into an issue that maybe someone can advise me on. The goblet is at the wrong angle. When I tried to fix it with offset, things went wildly awry. I found that a small rotation made everything right, but when I try to set an orientation key, it immedieately reverts when it hits the link to actor. I'm guessing that's why it has to be fixed with offset, yes? Anyway, the wiki said something about bracketing the actor before applying the offset, and I didn't know what that meant. Can anyone fill me in?

#7
tmp7704

tmp7704
  • Members
  • 11 156 messages
If i recall right, when the link command is invoked, the optional "offset" is calculated based on distance and orientation of the linked item relative to scene's origin (master object) So by bracketing they may mean something like creating key frames for the object in the frames right before the link is applied and right after it ends and then creating additional keyframe which defines proper offset in the frame where the link action starts.

This way the keyframes which "bracket" the link duration keep the object from being in unexpected position either before or after the linking.

#8
errant_knight

errant_knight
  • Members
  • 8 256 messages

tmp7704 wrote...

If i recall right, when the link command is invoked, the optional "offset" is calculated based on distance and orientation of the linked item relative to scene's origin (master object) So by bracketing they may mean something like creating key frames for the object in the frames right before the link is applied and right after it ends and then creating additional keyframe which defines proper offset in the frame where the link action starts.
This way the keyframes which "bracket" the link duration keep the object from being in unexpected position either before or after the linking.


No wonder where it went was so unpredictable! I'll try adding those keys, that should do the trick. Side note: the items to drink from are entirely ridiculous. That pewter mug is HUGE, and the goblet is entirely too fancy.... Sigh.

#9
FergusM

FergusM
  • Members
  • 460 messages
Yep. Some goblets would be a good entry for that community model contest. It's not really my field though.