Package com.ardor3d.extension.animation.skeletal

Examples of com.ardor3d.extension.animation.skeletal.Skeleton


        j2Transform.invert(j2Transform);
        final Joint j2 = new Joint("j2");
        j2.setInverseBindPose(j2Transform);
        j2.setParentIndex((short) 0);

        final Skeleton sk = new Skeleton("arm sk", new Joint[] { j1, j2 });

        pose1 = new SkeletonPose(sk);
        pose1.updateTransforms();
        pose2 = new SkeletonPose(sk);
        pose2.updateTransforms();
View Full Code Here


                }
            }

            // Use the skeleton information from the instance_controller to set the parent array locations on the
            // joints.
            Skeleton ourSkeleton = null; // TODO: maybe not the best way. iterate
            final int[] order = new int[jointNames.size()];
            for (int i = 0; i < jointNames.size(); i++) {
                final String name = jointNames.get(i);
                final ParamType paramType = paramTypes.get(i);
                final String searcher = paramType == ParamType.idref_param ? "id" : "sid";
View Full Code Here

            _colladaStorage.getSkins().add(skinDataStore);
        }
    }

    private void addAttachments(final SkeletonPose skPose) {
        final Skeleton skeleton = skPose.getSkeleton();
        for (final Joint joint : skeleton.getJoints()) {
            if (_dataCache.getAttachmentPoints().containsKey(joint)) {
                for (final AttachmentPoint point : _dataCache.getAttachmentPoints().get(joint)) {
                    point.setJointIndex(joint.getIndex());
                    skPose.addPoseListener(point);
                }
View Full Code Here

            // build a list of joints - one list per skeleton - and build a skeleton for each joint list.
            for (final JointNode jointChildNode : _dataCache.getRootJointNode().getChildren()) {
                final List<Joint> jointList = Lists.newArrayList();
                buildJointLists(jointChildNode, jointList);
                final Joint[] joints = jointList.toArray(new Joint[jointList.size()]);
                final Skeleton skeleton = new Skeleton(joints[0].getName() + "_skeleton", joints);
                if (logger.isLoggable(Level.FINE)) {
                    logger.fine("skeleton created: " + skeleton.getName());
                }
                for (final Joint joint : jointList) {
                    _dataCache.getJointSkeletonMapping().put(joint, skeleton);
                    if (logger.isLoggable(Level.FINE)) {
                        logger.fine("- Joint " + joint.getName() + " - index: " + joint.getIndex() + " parent index: "
View Full Code Here

TOP

Related Classes of com.ardor3d.extension.animation.skeletal.Skeleton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.