Codota Logo
SceneKey
Code IndexAdd Codota to your IDE (free)

How to use
SceneKey
in
com.jme3.scene.plugins.fbx

Best Java code snippets using com.jme3.scene.plugins.fbx.SceneKey (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

  stream.close();
return assetInfo.getManager().loadAsset(new SceneKey(key.getFolder() + modelName, animList));
origin: jMonkeyEngine/jmonkeyengine

@Override
public Object load(AssetInfo assetInfo) throws IOException {
  this.currentAssetInfo = assetInfo;
  this.assetManager = assetInfo.getManager();
  AssetKey<?> assetKey = assetInfo.getKey();
  if(assetKey instanceof SceneKey)
    animList = ((SceneKey) assetKey).getAnimations();
  InputStream stream = assetInfo.openStream();
  final Node sceneNode = this.sceneNode = new Node(sceneName + "-scene");
  try {
    sceneFilename = assetKey.getName();
    sceneFolderName = assetKey.getFolder();
    String ext = assetKey.getExtension();
    sceneName = sceneFilename.substring(0, sceneFilename.length() - ext.length() - 1);
    if(sceneFolderName != null && sceneFolderName.length() > 0)
      sceneName = sceneName.substring(sceneFolderName.length());
    loadScene(stream);
    linkScene();
    if(warnings.size() > 0)
      logger.log(Level.WARNING, "Model load finished with warnings:\n" + join(warnings, "\n"));
  } finally {
    releaseObjects();
    if(stream != null)
      stream.close();
  }
  return sceneNode;
}

origin: org.jmonkeyengine/jme3-plugins

@Override
public Object load(AssetInfo assetInfo) throws IOException {
  this.currentAssetInfo = assetInfo;
  this.assetManager = assetInfo.getManager();
  AssetKey<?> assetKey = assetInfo.getKey();
  if(assetKey instanceof SceneKey)
    animList = ((SceneKey) assetKey).getAnimations();
  InputStream stream = assetInfo.openStream();
  final Node sceneNode = this.sceneNode = new Node(sceneName + "-scene");
  try {
    sceneFilename = assetKey.getName();
    sceneFolderName = assetKey.getFolder();
    String ext = assetKey.getExtension();
    sceneName = sceneFilename.substring(0, sceneFilename.length() - ext.length() - 1);
    if(sceneFolderName != null && sceneFolderName.length() > 0)
      sceneName = sceneName.substring(sceneFolderName.length());
    loadScene(stream);
    linkScene();
    if(warnings.size() > 0)
      logger.log(Level.WARNING, "Model load finished with warnings:\n" + join(warnings, "\n"));
  } finally {
    releaseObjects();
    if(stream != null)
      stream.close();
  }
  return sceneNode;
}

origin: org.jmonkeyengine/jme3-plugins

  stream.close();
return assetInfo.getManager().loadAsset(new SceneKey(key.getFolder() + modelName, animList));
origin: us.ihmc.thirdparty.jme/jme3-plugins

@Override
public Object load(AssetInfo assetInfo) throws IOException {
  this.assetManager = assetInfo.getManager();
  AssetKey<?> assetKey = assetInfo.getKey();
  if(assetKey instanceof SceneKey)
    animList = ((SceneKey) assetKey).getAnimations();
  else if(!(assetKey instanceof ModelKey))
    throw new AssetLoadException("Invalid asset key");
  InputStream stream = assetInfo.openStream();
  Node sceneNode = null;
  try {
    sceneFilename = assetKey.getName();
    sceneFolderName = assetKey.getFolder();
    String ext = assetKey.getExtension();
    sceneName = sceneFilename.substring(0, sceneFilename.length() - ext.length() - 1);
    if(sceneFolderName != null && sceneFolderName.length() > 0)
      sceneName = sceneName.substring(sceneFolderName.length());
    reset();
    loadScene(stream);
    sceneNode = linkScene();
  } finally {
    releaseObjects();
    if(stream != null) {
      stream.close();
    }
  }
  return sceneNode;
}
 
origin: us.ihmc.thirdparty.jme/jme3-plugins

  stream.close();
return assetInfo.getManager().loadAsset(new SceneKey(key.getFolder() + modelName, animList));
com.jme3.scene.plugins.fbxSceneKey

Most used methods

  • <init>
  • getAnimations

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JTextField (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now