-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Implement Animation Blend Shape Tracks #53865
Implement Animation Blend Shape Tracks #53865
Conversation
a5dcc44
to
a703df2
Compare
a703df2
to
913b37f
Compare
Posting for future use.
This is an animation done entirely with blend shapes. |
5894766
to
92989ba
Compare
<method name="get_active_material" qualifiers="const"> | ||
<return type="Material" /> | ||
<argument index="0" name="surface" type="int" /> | ||
<description> | ||
Returns the [Material] that will be used by the [Mesh] when drawing. This can return the [member GeometryInstance3D.material_override], the surface override [Material] defined in this [MeshInstance3D], or the surface [Material] defined in the [Mesh]. For example, if [member GeometryInstance3D.material_override] is used, all surfaces will return the override material. | ||
</description> | ||
</method> | ||
<method name="get_blend_shape_count" qualifiers="const"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set_blend_shape_name() would match set bone name.
@fire It does not seem to work, but it seems like this is a problem of the importer, not so much a problem of the code I added. |
Other diffs. |
* New track type BLEND_SHAPE * Blend shapes are imported via this new track type * Processing is more optimized (no longer relies on variants) * Modified the Blend Shape API in MeshInstance3D to use indices rather than StringNames (more optimizes) * Promo: Fixed a small bug in gizmo updating in Node3D that affected performance Dedicated BlendShape tracks are required for both optimization and eventually implementing them in animation compression.
92989ba
to
ae1c016
Compare
@fire Pushed changes, please try the PR again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiger sample's blend shape plays. The gltf2 morph target sample plays blends too.
Thanks! |
Dedicated BlendShape tracks are required for both optimization and eventually implementing them in animation compression.