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

[Merged by Bors] - Mesh vertex attributes for skinning and animation #1831

Closed
wants to merge 1 commit into from

Conversation

lassade
Copy link
Contributor

@lassade lassade commented Apr 6, 2021

Required by #1429,

  • Adds the Ushort4 vertex attribute for joint indices
  • Mesh::ATTRIBUTE_JOINT_WEIGHT and Mesh::ATTRIBUTE_JOINT_INDEX to import vertex attributes related to skinning from GLTF
  • impl Default for Mesh a empty triangle mesh is created (needed by reflect)
  • impl Reflect for Mesh all attributes are ignored (needed by the animation system)

@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible A-Rendering Drawing game state to the screen A-Animation Make things move and change over time labels Apr 6, 2021
lassade added a commit to lassade/bevy that referenced this pull request Apr 11, 2021
@@ -204,16 +208,26 @@ impl From<&Indices> for IndexFormat {
}

// TODO: allow values to be unloaded after been submitting to the GPU to conserve memory
#[derive(Debug, TypeUuid, Clone)]
#[derive(Debug, TypeUuid, Clone, Reflect)]
Copy link
Member

Choose a reason for hiding this comment

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

If Reflect is only being added for your animation system, can we just add it in the animation pr instead? Otherwise this impl seems a bit pointless / I probably wouldn't include it. I think requiring "empty reflect impls" is something thats worth discussing in the animation pr.

@cart cart force-pushed the vert-attrs-for-skinning branch from 202ed1d to ca0d0a5 Compare May 6, 2021 03:27
@cart
Copy link
Member

cart commented May 6, 2021

Just scoped this down to adding the relevant attribute names. I also removed the Ushort4 addition because we added all of the variants recently (and changed naming conventions to match the new wgpu naming conventions).

@cart
Copy link
Member

cart commented May 6, 2021

bors r+

bors bot pushed a commit that referenced this pull request May 6, 2021
Required by #1429,

- Adds the `Ushort4` vertex attribute for joint indices
- `Mesh::ATTRIBUTE_JOINT_WEIGHT` and `Mesh::ATTRIBUTE_JOINT_INDEX` to import vertex attributes related to skinning from GLTF
- impl `Default` for `Mesh` a empty triangle mesh is created (needed by reflect)
- impl `Reflect` for `Mesh` all attributes are ignored (needed by the animation system)
@bors bors bot changed the title Mesh vertex attributes for skinning and animation [Merged by Bors] - Mesh vertex attributes for skinning and animation May 6, 2021
@bors bors bot closed this May 6, 2021
ostwilkens pushed a commit to ostwilkens/bevy that referenced this pull request Jul 27, 2021
Required by bevyengine#1429,

- Adds the `Ushort4` vertex attribute for joint indices
- `Mesh::ATTRIBUTE_JOINT_WEIGHT` and `Mesh::ATTRIBUTE_JOINT_INDEX` to import vertex attributes related to skinning from GLTF
- impl `Default` for `Mesh` a empty triangle mesh is created (needed by reflect)
- impl `Reflect` for `Mesh` all attributes are ignored (needed by the animation system)
vabrador pushed a commit to vabrador/bevy that referenced this pull request Sep 15, 2021
Required by bevyengine#1429,

- Adds the `Ushort4` vertex attribute for joint indices
- `Mesh::ATTRIBUTE_JOINT_WEIGHT` and `Mesh::ATTRIBUTE_JOINT_INDEX` to import vertex attributes related to skinning from GLTF
- impl `Default` for `Mesh` a empty triangle mesh is created (needed by reflect)
- impl `Reflect` for `Mesh` all attributes are ignored (needed by the animation system)
setzer22 pushed a commit to Cakefish/bevy that referenced this pull request Nov 17, 2021
Required by bevyengine#1429,

- Adds the `Ushort4` vertex attribute for joint indices
- `Mesh::ATTRIBUTE_JOINT_WEIGHT` and `Mesh::ATTRIBUTE_JOINT_INDEX` to import vertex attributes related to skinning from GLTF
- impl `Default` for `Mesh` a empty triangle mesh is created (needed by reflect)
- impl `Reflect` for `Mesh` all attributes are ignored (needed by the animation system)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Animation Make things move and change over time A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants