These forums are CLOSED. Please visit the new forums HERE
Sit target wierdness |
|
|
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
|
06-12-2007 07:20
I'm using Lex Neva's awesome sit target setting script (pair) to set the set the sit target on a zabuton cushion (Japanese kneeling cushion). But no matter what I do, I can't get the orientation right. What seems to be happening is that if I sit and unsit repeatedly my avatar faces a slightly different direction each time. Has anyone else seen this llSitTarget behavior?
|
|
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
|
06-12-2007 08:10
The problem comes from the condition where your sit animation is a static pose (made from two frames) and the hips do not vary between the two poses, leaving the hips channel "empty" in your pose anim. It can happen with longer anims as well, but the more frames in the anim, the more likely the hips will be moved.
The sit script you are using stops the "sit" anim before it has completed running (the "sit" animation is not just a pose) and stopping this anim while playing an anim over it with an empty hips channel leaves the hips wherever they might have been at the frame where the "sit" anim was stopped. This will happen regardless of anim priority, as empty channels override nothing. You have three remedies to choose from, in descending order of reliability: Change the pose anim: 1) Move the hips slightly in your original anim between frames one and two, creating a non-empty channel (This is not an option if you do not have a source bvh of the pose) Change the sit script: 2) Refrain from stopping the "sit" animation. (this is most reliable of (2) qnd (3) due to lag issues) 3) Delay longer before stopping the "sit" anim, to give it time to settle the avatar into a known pose. Snice you mentioned that the whole avatar is rotated, I mention that the hips are what needs fixing, but do note that this problem can also apply to other joints, I've seen cases where the upper legs had empty channels and the position was fine but the legs wound up at seemingly random angles. |