x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Cutting Skeletal Meshes at runtime

My problem:

I have an animated character (SkeletalMeshComponent). I want to be able to slice it in half and have both parts fall as separate ragdolls. I don't want the slicing to be pre-made in the mesh. It has to be procedural (yes, like Metal Gear Rising)


My vague solution:

I want to more or less follow this plan:

  1. Prior to cutting, save all bones, vertex, skinning, material, ragdoll colliders info

  2. Procedurally generate two new meshes that represent the two halves of the original mesh (based on the saved vertex positions and material)

  3. Generate two new separate rigs that represent the bones that were originally assigned to the two new mesh parts before they were cut

  4. Re-apply skinning information

  5. Regenerate ragdoll colliders

  6. Apply ragdoll


My Questions:

  • Can procedural meshes be skinned and animated?

  • How are bones represented in UE4? I've seen methods for retrieving bone names and indexes in SkeletalMeshComponent, but how do I access a bone's information, like the associated vertex skinning data?

  • How can I manually create a new bone at runtime and set its skinning info? Or is skinning info assigned to vertices?

Product Version: UE 4.11
Tags:
more ▼

asked Apr 04 '16 at 06:05 PM in C++ Programming

avatar image

Philippe St-Amand
161 9 14 20

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question