Examples of AnimData


Examples of com.jme3.scene.plugins.ogre.AnimData

{
    public static void main(String[] args)
    {
        // create the geometry and attach it
      AssetManager assetMan = new DesktopAssetManager(true);
      AnimData aData = (AnimData) assetMan.loadAsset("ready_idle.anim.xml");
      if(aData.anims.size() == 1)
        aData.anims.get(0).getName();

    }
View Full Code Here

Examples of com.jme3.scene.plugins.ogre.AnimData

    for (File name : file.listFiles(skeletonFilter)) {
      //new loader each time, yes
//      SkeletonLoader loader;
      try {
        SkeletonLoader loader = new SkeletonLoader();
        AnimData ad = (AnimData)loader.load(name.toURI().toURL().openStream());
        if(ad != null && ad.skeleton != null){
          String fName = name.getName().substring(0,name.getName().length()-".xml".length());
         
          BinaryExporter.getInstance().save(ad.skeleton,
              new File(path + File.separatorChar + fName+ ".j3o"));
View Full Code Here

Examples of com.jme3.scene.plugins.ogre.AnimData

    for (File name : file.listFiles(animFilter)) {
      //new loader each time, yes
      com.jme3.scene.plugins.ogre.SkeletonLoader loader;
      try {
        loader = new com.jme3.scene.plugins.ogre.SkeletonLoader();
        AnimData ad = (AnimData) loader.load(name.toURI().toURL().openStream());
        //special case we just have only singled out anims
        if(ad.anims.size() == 1 ){
          Animation anim = ad.anims.get(0);
          BinaryExporter.getInstance().save(anim,
              new File(path + File.separatorChar + file.getName() + File.separatorChar + anim.getName().toLowerCase() + ".j3o"));
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.