Package com.jme3.asset

Examples of com.jme3.asset.DesktopAssetManager.loadAsset()


{
    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


{
    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

    TiledNavMesh m = getNavMesh("0_0", Vector3f.ZERO);
    try {
      BinaryExporter.getInstance().save(m, new File("0_0.jnv"));
      m = (TiledNavMesh) BinaryImporter.getInstance().load(new File("0_0.jnv"));
      DesktopAssetManager assetManager = new DesktopAssetManager(true);
      Geometry g00 = (Geometry) assetManager.loadAsset("grid.0_0.j3o");
      assertNotNull("Asset for grid 0_0 is missing", g00);
      m = new TiledNavMesh();
     
      long eT = 0L;
          long sT =  System.currentTimeMillis();         
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.