mirror of
https://github.com/overte-org/overte.git
synced 2025-06-19 12:20:02 +02:00
talking/reactions while seated, work in progress check in
This commit is contained in:
parent
727c04791c
commit
a2e37b7275
2 changed files with 299 additions and 29 deletions
|
@ -586,16 +586,285 @@
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"children": [
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
],
|
||||||
|
"data": {
|
||||||
|
"endFrame": 500,
|
||||||
|
"loopFlag": true,
|
||||||
|
"startFrame": 1,
|
||||||
|
"timeScale": 1,
|
||||||
|
"url": "qrc:///avatar/animations/talk.fbx"
|
||||||
|
},
|
||||||
|
"id": "seatedTalk",
|
||||||
|
"type": "clip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
],
|
||||||
|
"data": {
|
||||||
|
"endFrame": 800,
|
||||||
|
"loopFlag": true,
|
||||||
|
"startFrame": 1,
|
||||||
|
"timeScale": 1,
|
||||||
|
"url": "qrc:///avatar/animations/sitting_idle02.fbx"
|
||||||
|
},
|
||||||
|
"id": "seatedIdle",
|
||||||
|
"type": "clip"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"data": {
|
||||||
|
"alpha": 1,
|
||||||
|
"alphaVar": "talkOverlayAlpha",
|
||||||
|
"boneSet": "upperBody"
|
||||||
|
},
|
||||||
|
"id": "seatedTalkOverlay",
|
||||||
|
"type": "overlay"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
],
|
||||||
|
"data": {
|
||||||
|
"endFrame": 0,
|
||||||
|
"loopFlag": true,
|
||||||
|
"startFrame": 0,
|
||||||
|
"timeScale": 1,
|
||||||
|
"url": "qrc:///avatar/animations/sitting_idle.fbx"
|
||||||
|
},
|
||||||
|
"id": "seatedReactionPositive",
|
||||||
|
"type": "clip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
],
|
||||||
|
"data": {
|
||||||
|
"endFrame": 0,
|
||||||
|
"loopFlag": true,
|
||||||
|
"startFrame": 0,
|
||||||
|
"timeScale": 1,
|
||||||
|
"url": "qrc:///avatar/animations/sitting_idle.fbx"
|
||||||
|
},
|
||||||
|
"id": "seatedReactionNegative",
|
||||||
|
"type": "clip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
],
|
||||||
|
"data": {
|
||||||
|
"endFrame": 0,
|
||||||
|
"loopFlag": true,
|
||||||
|
"startFrame": 0,
|
||||||
|
"timeScale": 1,
|
||||||
|
"url": "qrc:///avatar/animations/sitting_idle.fbx"
|
||||||
|
},
|
||||||
|
"id": "seatedReactionRaiseHand",
|
||||||
|
"type": "clip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
],
|
||||||
|
"data": {
|
||||||
|
"endFrame": 0,
|
||||||
|
"loopFlag": true,
|
||||||
|
"startFrame": 0,
|
||||||
|
"timeScale": 1,
|
||||||
|
"url": "qrc:///avatar/animations/sitting_idle.fbx"
|
||||||
|
},
|
||||||
|
"id": "seatedReactionApplaud",
|
||||||
|
"type": "clip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
],
|
||||||
|
"data": {
|
||||||
|
"endFrame": 0,
|
||||||
|
"loopFlag": true,
|
||||||
|
"startFrame": 0,
|
||||||
|
"timeScale": 1,
|
||||||
|
"url": "qrc:///avatar/animations/sitting_idle.fbx"
|
||||||
|
},
|
||||||
|
"id": "seatedReactionPoint",
|
||||||
|
"type": "clip"
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"data": {
|
"data": {
|
||||||
"endFrame": 350,
|
"currentState": "seatedTalkOverlay",
|
||||||
"loopFlag": true,
|
"states": [
|
||||||
"startFrame": 1,
|
{
|
||||||
"timeScale": 1,
|
"easingType": "easeInOutQuad",
|
||||||
"url": "qrc:///avatar/animations/sitting_idle.fbx"
|
"id": "seatedTalkOverlay",
|
||||||
|
"interpDuration": 18,
|
||||||
|
"interpTarget": 18,
|
||||||
|
"interpType": "snapshotPrev",
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"state": "seatedReactionPositive",
|
||||||
|
"var": "reactionPositiveTrigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionNegative",
|
||||||
|
"var": "reactionNegativeTrigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionRaiseHand",
|
||||||
|
"var": "reactionRaiseHandEnabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionApplaud",
|
||||||
|
"var": "reactionApplaudEnabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionPoint",
|
||||||
|
"var": "reactionPointEnabled"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "seatedReactionPositive",
|
||||||
|
"interpDuration": 6,
|
||||||
|
"interpTarget": 6,
|
||||||
|
"interpType": "snapshotPrev",
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"state": "seatedTalkOverlay",
|
||||||
|
"var": "seatedReactionPositiveOnDone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionNegative",
|
||||||
|
"var": "reactionNegativeTrigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionRaiseHand",
|
||||||
|
"var": "reactionRaiseHandEnabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionApplaud",
|
||||||
|
"var": "reactionApplaudEnabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionPoint",
|
||||||
|
"var": "reactionPointEnabled"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "seatedReactionNegative",
|
||||||
|
"interpDuration": 6,
|
||||||
|
"interpTarget": 6,
|
||||||
|
"interpType": "snapshotPrev",
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"state": "seatedReactionPositive",
|
||||||
|
"var": "reactionPositiveTrigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedTalkOverlay",
|
||||||
|
"var": "reactionNegativeOnDone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionRaiseHand",
|
||||||
|
"var": "reactionRaiseHandEnabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionApplaud",
|
||||||
|
"var": "reactionApplaudEnabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionPoint",
|
||||||
|
"var": "reactionPointEnabled"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "seatedReactionRaiseHand",
|
||||||
|
"interpDuration": 6,
|
||||||
|
"interpTarget": 6,
|
||||||
|
"interpType": "snapshotPrev",
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"state": "seatedReactionNegative",
|
||||||
|
"var": "reactionNegativeTrigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionPositive",
|
||||||
|
"var": "reactionPositiveTrigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedTalkOverlay",
|
||||||
|
"var": "reactionRaiseHandDisabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionApplaud",
|
||||||
|
"var": "reactionApplaudEnabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionPoint",
|
||||||
|
"var": "reactionPointEnabled"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "seatedReactionApplaud",
|
||||||
|
"interpDuration": 6,
|
||||||
|
"interpTarget": 6,
|
||||||
|
"interpType": "snapshotPrev",
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"state": "seatedReactionNegative",
|
||||||
|
"var": "reactionNegativeTrigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionPositive",
|
||||||
|
"var": "reactionPositiveTrigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionRaiseHand",
|
||||||
|
"var": "reactionRaiseHandEnabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedTalkOverlay",
|
||||||
|
"var": "reactionApplaudDisabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionPoint",
|
||||||
|
"var": "reactionPointEnabled"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "seatedReactionPoint",
|
||||||
|
"interpDuration": 6,
|
||||||
|
"interpTarget": 6,
|
||||||
|
"interpType": "snapshotPrev",
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"state": "seatedReactionNegative",
|
||||||
|
"var": "reactionNegativeTrigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionPositive",
|
||||||
|
"var": "reactionPositiveTrigger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionRaiseHand",
|
||||||
|
"var": "reactionRaiseHandEnabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedReactionApplaud",
|
||||||
|
"var": "reactionApplaudEnabled"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state": "seatedTalkOverlay",
|
||||||
|
"var": "reactionPointDisabled"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"id": "seated",
|
"id": "seated",
|
||||||
"type": "clip"
|
"type": "stateMachine"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"children": [
|
"children": [
|
||||||
|
@ -1328,10 +1597,10 @@
|
||||||
],
|
],
|
||||||
"data": {
|
"data": {
|
||||||
"alpha": 1,
|
"alpha": 1,
|
||||||
"alphaVar": "idleOverlayAlpha",
|
"alphaVar": "talkOverlayAlpha",
|
||||||
"boneSet": "upperBody"
|
"boneSet": "upperBody"
|
||||||
},
|
},
|
||||||
"id": "idleOverlay",
|
"id": "idleTalkOverlay",
|
||||||
"type": "overlay"
|
"type": "overlay"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1757,12 +2026,13 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"data": {
|
"data": {
|
||||||
"currentState": "idleOverlay",
|
"currentState": "idleTalkOverlay",
|
||||||
"states": [
|
"states": [
|
||||||
{
|
{
|
||||||
"id": "idleOverlay",
|
"easingType": "easeInOutQuad",
|
||||||
"interpDuration": 6,
|
"id": "idleTalkOverlay",
|
||||||
"interpTarget": 6,
|
"interpDuration": 18,
|
||||||
|
"interpTarget": 18,
|
||||||
"interpType": "snapshotPrev",
|
"interpType": "snapshotPrev",
|
||||||
"transitions": [
|
"transitions": [
|
||||||
{
|
{
|
||||||
|
@ -1794,27 +2064,27 @@
|
||||||
"interpType": "snapshotPrev",
|
"interpType": "snapshotPrev",
|
||||||
"transitions": [
|
"transitions": [
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "positiveAcknowledgeOnDone"
|
"var": "positiveAcknowledgeOnDone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "positiveHeadNodOnDone"
|
"var": "positiveHeadNodOnDone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "positiveHeadNodYesOnDone"
|
"var": "positiveHeadNodYesOnDone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "positiveLongHeadNodOnDone"
|
"var": "positiveLongHeadNodOnDone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "positiveThisOrThatOnDone"
|
"var": "positiveThisOrThatOnDone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "positiveThoughtfulHeadNodOnDone"
|
"var": "positiveThoughtfulHeadNodOnDone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1846,19 +2116,19 @@
|
||||||
"var": "reactionPositiveTrigger"
|
"var": "reactionPositiveTrigger"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "negativeAnnoyedHeadshakeOnDone"
|
"var": "negativeAnnoyedHeadshakeOnDone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "negativeNoOnDone"
|
"var": "negativeNoOnDone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "negativeThoughtfulHeadshakeOnDone"
|
"var": "negativeThoughtfulHeadshakeOnDone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "negativeDropHeadOnDone"
|
"var": "negativeDropHeadOnDone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1890,7 +2160,7 @@
|
||||||
"var": "reactionPositiveTrigger"
|
"var": "reactionPositiveTrigger"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "reactionRaiseHandDisabled"
|
"var": "reactionRaiseHandDisabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1922,7 +2192,7 @@
|
||||||
"var": "reactionRaiseHandEnabled"
|
"var": "reactionRaiseHandEnabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "reactionApplaudDisabled"
|
"var": "reactionApplaudDisabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1954,7 +2224,7 @@
|
||||||
"var": "reactionApplaudEnabled"
|
"var": "reactionApplaudEnabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"state": "idleOverlay",
|
"state": "idleTalkOverlay",
|
||||||
"var": "reactionPointDisabled"
|
"var": "reactionPointDisabled"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -2106,9 +2106,9 @@ void Rig::updateFromControllerParameters(const ControllerParameters& params, flo
|
||||||
_talkIdleInterpTime = 1.0f;
|
_talkIdleInterpTime = 1.0f;
|
||||||
}
|
}
|
||||||
float easeOutInValue = _talkIdleInterpTime < 0.5f ? 4.0f * powf(_talkIdleInterpTime, 3.0f) : 4.0f * powf((_talkIdleInterpTime - 1.0f), 3.0f) + 1.0f;
|
float easeOutInValue = _talkIdleInterpTime < 0.5f ? 4.0f * powf(_talkIdleInterpTime, 3.0f) : 4.0f * powf((_talkIdleInterpTime - 1.0f), 3.0f) + 1.0f;
|
||||||
_animVars.set("idleOverlayAlpha", easeOutInValue);
|
_animVars.set("talkOverlayAlpha", easeOutInValue);
|
||||||
} else {
|
} else {
|
||||||
_animVars.set("idleOverlayAlpha", 1.0f);
|
_animVars.set("talkOverlayAlpha", 1.0f);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (_talkIdleInterpTime < 1.0f) {
|
if (_talkIdleInterpTime < 1.0f) {
|
||||||
|
@ -2118,9 +2118,9 @@ void Rig::updateFromControllerParameters(const ControllerParameters& params, flo
|
||||||
}
|
}
|
||||||
float easeOutInValue = _talkIdleInterpTime < 0.5f ? 4.0f * powf(_talkIdleInterpTime, 3.0f) : 4.0f * powf((_talkIdleInterpTime - 1.0f), 3.0f) + 1.0f;
|
float easeOutInValue = _talkIdleInterpTime < 0.5f ? 4.0f * powf(_talkIdleInterpTime, 3.0f) : 4.0f * powf((_talkIdleInterpTime - 1.0f), 3.0f) + 1.0f;
|
||||||
float talkAlpha = 1.0f - easeOutInValue;
|
float talkAlpha = 1.0f - easeOutInValue;
|
||||||
_animVars.set("idleOverlayAlpha", talkAlpha);
|
_animVars.set("talkOverlayAlpha", talkAlpha);
|
||||||
} else {
|
} else {
|
||||||
_animVars.set("idleOverlayAlpha", 0.0f);
|
_animVars.set("talkOverlayAlpha", 0.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue