Examples of Skeleton


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

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

                }
            }

            // 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

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

            _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

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

            // 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

Examples of com.caucho.ejb.protocol.Skeleton

      InputStream is = req.getInputStream();

      if (_isDebug) {
      }

      Skeleton skeleton  = (Skeleton) _beanMap.get(cb);

      if (skeleton == null) {
        // If this was a load just to force the initialization, then return
        if (req.getParameter("ejb-load") != null)
          return;
     
        if (_exception != null)
          throw _exception;

        try {
          if (pathInfo == null)
            pathInfo = "";

          skeleton = _protocolContainer.getSkeleton(pathInfo, queryString);
        } catch (Exception e) {
          log.log(Level.WARNING, e.toString(), e);

          skeleton = _protocolContainer.getExceptionSkeleton();

          if (skeleton != null) {
            skeleton._service(req.getInputStream(), res.getOutputStream(), e);

            return;
          }
          else
            throw e;
        }

        if (skeleton == null)
          throw new ServletException(L.l("Can't load skeleton for '{0}?{1}'",
                                         pathInfo, queryString));

        if (skeleton != null) {
          skeleton.setDebug(_isDebug);
          _beanMap.put(cb, skeleton);
        }
      }

      skeleton._service(req.getInputStream(), res.getOutputStream());
    } catch (ServletException e) {
      e.printStackTrace();
      throw e;
    } catch (Throwable e) {
      e.printStackTrace();
View Full Code Here

Examples of com.caucho.ejb.protocol.Skeleton

    CharBuffer cb = CharBuffer.allocate();
    cb.append(pathInfo);
    cb.append('?');
    cb.append(queryString);
   
    Skeleton skeleton = (Skeleton) _beanMap.get(cb);
   
    if (skeleton != null) {
      cb.free();
      return skeleton;
    }
View Full Code Here

Examples of com.caucho.soap.skeleton.Skeleton

      if (_wsdl != null)
        wsdlLocation = _wsdl.toString();
      else
        wsdlLocation = null;

      Skeleton skeleton =
        WebServiceIntrospector.introspect(api, wsdlLocation, definitions);

      String endpointAddress = findEndpointAddress();
      String bindingId = SOAPBinding.SOAP11HTTP_BINDING;
      //definitions.getBindingId(_serviceName, portName);

      Binding binding = getBinding(bindingId);
      PortProxyHandler handler =
        new PortProxyHandler(skeleton, endpointAddress, binding);

      if (portName == null)
        portName = new QName(skeleton.getNamespace(), skeleton.getPortName());

      PortInfoImpl portInfo = new PortInfoImpl(bindingId, portName,
                                               _serviceName, endpointAddress);

      // Check for @HandlerChain on the service API
View Full Code Here

Examples of com.esotericsoftware.spine.Skeleton

    if (region == null) throw new IllegalStateException("Region has not been set: " + this);
    return region;
  }

  public void updateVertices (Slot slot) {
    Skeleton skeleton = slot.getSkeleton();
    Color skeletonColor = skeleton.getColor();
    Color slotColor = slot.getColor();
    float color = NumberUtils.intToFloatColor( //
      ((int)(255 * skeletonColor.a * slotColor.a) << 24) //
        | ((int)(255 * skeletonColor.b * slotColor.b) << 16) //
        | ((int)(255 * skeletonColor.g * slotColor.g) << 8) //
        | ((int)(255 * skeletonColor.r * slotColor.r)));
    float[] vertices = this.vertices;
    vertices[C1] = color;
    vertices[C2] = color;
    vertices[C3] = color;
    vertices[C4] = color;

    float[] offset = this.offset;
    Bone bone = slot.getBone();
    float x = bone.getWorldX() + skeleton.getX();
    float y = bone.getWorldY() + skeleton.getY();
    float m00 = bone.getM00();
    float m01 = bone.getM01();
    float m10 = bone.getM10();
    float m11 = bone.getM11();
    vertices[X1] = offset[0] * m00 + offset[1] * m01 + x;
View Full Code Here

Examples of com.jme3.animation.Skeleton

   
//    String scala = String.valueOf(scale);
    //create name (name+scale)
//    String cName = name + scala;
    //lookup in cache or load it
    Skeleton s = skeletons.get(name);
    if (s == null) {
      Asset a = new Asset(name, name);
      Singleton.get().getAssetManager().loadAsset(a, true);
      s = (Skeleton) a.getBaseAsset();
    }
    if (s != null) {
      skeletons.put(name, s);
      return new Skeleton(s);
    } else {
      return null;
    }
  }
View Full Code Here

Examples of com.jme3.animation.Skeleton

    try {
      Savable load = BinaryImporter.getInstance().load(newFile);
     
      if(load instanceof Skeleton)
      {
        Skeleton skel = (Skeleton)load;
        assembler.setSkeleton(skel);
        this.jTextField1.setText(newFile.getPath().substring(0,8)+"..."+newFile.getName());
        String[] names = new String[skel.getBoneCount()];
        for(int i=0;i<skel.getBoneCount();i++){
          names[i]= skel.getBone(i).getName();
        }
        bones.setModel(new DefaultComboBoxModel(names));
        updateJME();
      } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.