Package jme3utilities
Class InfluenceUtil
java.lang.Object
jme3utilities.InfluenceUtil
Utility methods to determine which bones can influence mesh vertices. All
methods should be static.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BitSetaddAllInfluencers(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 BitSetaddAllInfluencers(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 voidaddDirectInfluencers(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 voidhideNonInfluencers(SkeletonVisualizer visualizer, com.jme3.anim.SkinningControl skinningControl) De-visualize any joints that don't influence mesh vertices.static voidhideNonInfluencers(SkeletonVisualizer visualizer, com.jme3.animation.SkeletonControl skeletonControl) De-visualize any bones that don't influence mesh vertices.
-
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
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)
-