Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Blend Shapes Features

Discussion in 'Documentation' started by SmileTR, Feb 17, 2016.

  1. SmileTR

    SmileTR

    Joined:
    Jan 3, 2014
    Posts:
    20
    Hello guys,

    Blend Shape, How do we get the features? Sample ;

    Code (CSharp):
    1. SkinnedMeshRenderer SourceRenderer = new SkinnedMeshRenderer(); // Blend Shape (Muscle)
    2. SkinnedMeshRenderer TargetRenderer = new SkinnedMeshRenderer(); // We want a new one. (Blend Shape)
    3. TargetRenderer.sharedMesh.AddBlendShapeFrame(shapeName, frameWeight, deltaVertices, deltaNormals, deltaTangents);
    "deltaVertices, deltaNormals, deltaTangents" Where values?

    Code (CSharp):
    1. SourceRenderer.sharedMesh.vertices
    True? Or another way?

    What we want ;
    The one source file and one target file exists. Want to transfer.
    Source Character Blend Shape (Muscle) > Copy/Transfer > Target Clothing New Blend Shape (New Muscle)
     
  2. SmileTR

    SmileTR

    Joined:
    Jan 3, 2014
    Posts:
    20
    *bump*
     
  3. duck

    duck

    Unity Technologies

    Joined:
    Oct 21, 2008
    Posts:
    358
    Hi SmileTR, I've brought your question to the attention of the animation team at Unity, hopefully we will end up with an example you can use, and that I can put into the docs! I will post again when I know more.
     
  4. pierrepaul

    pierrepaul

    Unity Technologies

    Joined:
    Jun 19, 2012
    Posts:
    162