Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change: modify behavior of expressions, interaction between isBinary and override #1489

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

0b5vr
Copy link
Contributor

@0b5vr 0b5vr commented Sep 6, 2024

This PR updates the behavior of expressions.

  • When an expression with isBinary overrides other expressions, it uses the binary output value to affect other expressions
  • When an expression with isBinary is overridden by other expressions, the expression is completely suppressed if the effect received is greater than 0.0
  • This PR also adds VRMExpression tests to confirm the desired behavior.

Related link

It's about interaction between isBinary and override expressions
See the discussion: #1484

Also add a test of VRMExpression to confirm the desired behavior
@0b5vr 0b5vr self-assigned this Sep 6, 2024
0b5vr added a commit to 0b5vr/vrm-specification that referenced this pull request Sep 6, 2024
…e interacts each other

- The original discussion: pixiv/three-vrm#1484
- The implementation example on three-vrm: pixiv/three-vrm#1489

TODO: english translation
@0b5vr 0b5vr changed the title change: modify behavior of expressions according the recent discussion change: modify behavior of expressions, interaction between isBinary and override Oct 21, 2024
@@ -1,6 +1,7 @@
import * as THREE from 'three';
import { VRMExpressionBind } from './VRMExpressionBind';
import type { VRMExpressionOverrideType } from './VRMExpressionOverrideType';
import type { VRMExpressionManager } from './VRMExpressionManager';
Copy link
Contributor Author

@0b5vr 0b5vr Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VRMExpressionManager is only referred from a doc comment

@0b5vr 0b5vr marked this pull request as ready for review October 21, 2024 06:50
@0b5vr 0b5vr requested a review from ke456-png October 21, 2024 06:51
@0b5vr 0b5vr added this to the next milestone Oct 21, 2024
Copy link
Contributor

@ke456-png ke456-png left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICE!

@0b5vr 0b5vr merged commit 0384245 into dev Oct 22, 2024
5 checks passed
@0b5vr 0b5vr deleted the isbinary-override branch October 22, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants