private boolean testHardwareSupported(RenderManager rm) {

        //Only 255 bones max supported with hardware skinning
        if (armature.getJointCount() > 255) {
            return false;
        }

        switchToHardware();

        try {
            rm.preloadScene(spatial);
            return true;
        } catch (RendererException e) {
            logger.log(Level.WARNING, "Could not enable HW skinning due to shader compile error:", e);
            return false;
        }
    }
Creates an armature control. The list of targets will be acquired
automatically when the control is attached to a node.

@param armature the armature
jme3-core/src/main/java/com/jme3/anim/SkinningControl.java