Package jme3utilities

Class InfluenceUtil

java.lang.Object
jme3utilities.InfluenceUtil

public final class InfluenceUtil extends Object
Utility methods to determine which bones can influence mesh vertices. All methods should be static.
  • Method Summary

    Modifier and Type
    Method
    Description
    static BitSet
    addAllInfluencers(com.jme3.scene.Spatial subtree, com.jme3.anim.Armature armature)
    Generate a set of indices for joints that influence (directly or indirectly) vertices in the specified subtree of the scene graph.
    static BitSet
    addAllInfluencers(com.jme3.scene.Spatial subtree, com.jme3.animation.Skeleton skeleton)
    Generate a set of indices for bones that influence (directly or indirectly) vertices in the specified subtree of the scene graph.
    static void
    addDirectInfluencers(com.jme3.scene.Spatial subtree, BitSet addResult)
    Add indices to the result for bones that directly influence vertices in the specified subtree of the scene graph.
    static void
    hideNonInfluencers(SkeletonVisualizer visualizer, com.jme3.anim.SkinningControl skinningControl)
    De-visualize any joints that don't influence mesh vertices.
    static void
    hideNonInfluencers(SkeletonVisualizer visualizer, com.jme3.animation.SkeletonControl skeletonControl)
    De-visualize any bones that don't influence mesh vertices.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • hideNonInfluencers

      public static void hideNonInfluencers(SkeletonVisualizer visualizer, com.jme3.animation.SkeletonControl skeletonControl)
      De-visualize any bones that don't influence mesh vertices.
      Parameters:
      visualizer - the visualizer (not null, modified)
      skeletonControl - the Control to analyze (not null, unaffected)
    • hideNonInfluencers

      public static void hideNonInfluencers(SkeletonVisualizer visualizer, com.jme3.anim.SkinningControl skinningControl)
      De-visualize any joints that don't influence mesh vertices.
      Parameters:
      visualizer - the visualizer (not null, modified)
      skinningControl - the Control to analyze (not null, unaffected)
    • addAllInfluencers

      public static BitSet addAllInfluencers(com.jme3.scene.Spatial subtree, com.jme3.anim.Armature armature)
      Generate a set of indices for joints that influence (directly or indirectly) vertices in the specified subtree of the scene graph. Note: recursive!
      Parameters:
      subtree - the subtree to traverse (may be null, unaffected)
      armature - the Armature containing the joints (not null, unaffected)
      Returns:
      a new set of joint indices
    • addAllInfluencers

      public static BitSet addAllInfluencers(com.jme3.scene.Spatial subtree, com.jme3.animation.Skeleton skeleton)
      Generate a set of indices for bones that influence (directly or indirectly) vertices in the specified subtree of the scene graph. Note: recursive!
      Parameters:
      subtree - the subtree to traverse (may be null, unaffected)
      skeleton - the Skeleton containing the bones (not null, unaffected)
      Returns:
      a new set of bone indices
    • addDirectInfluencers

      public static void addDirectInfluencers(com.jme3.scene.Spatial subtree, BitSet addResult)
      Add indices to the result for bones that directly influence vertices in the specified subtree of the scene graph. Note: recursive!
      Parameters:
      subtree - subtree to traverse (may be null, unaffected)
      addResult - (not null, modified)