Package com.badlogic.gdx.graphics.g3d.particles

Examples of com.badlogic.gdx.graphics.g3d.particles.ParticleEffectLoader$ParticleEffectSaveParameter


    particleSystem = ParticleSystem.get();
    effect = new ParticleEffect();
    particleSystem.add(effect);
    assetManager = new AssetManager();
    assetManager.setErrorListener(this);
    assetManager.setLoader(ParticleEffect.class, new ParticleEffectLoader(new InternalFileHandleResolver()));
    controllersData = new Array<ControllerData>();
   
    lwjglCanvas = new LwjglCanvas(renderer = new AppRenderer());
    addWindowListener(new WindowAdapter() {
      public void windowClosed (WindowEvent event) {
View Full Code Here


  }

  public void saveEffect (File file) {
    Writer fileWriter = null;
    try {
      ParticleEffectLoader loader = (ParticleEffectLoader)assetManager.getLoader(ParticleEffect.class);
      loader.save(effect, new ParticleEffectSaveParameter(new FileHandle(file.getAbsolutePath()), assetManager, particleSystem.getBatches()));
    } catch (Exception ex) {
      System.out.println("Error saving effect: " + file.getAbsolutePath());
      ex.printStackTrace();
      JOptionPane.showMessageDialog(this, "Error saving effect.");
    } finally {
View Full Code Here

      assetManager.load(DEFAULT_MODEL_PARTICLE, Model.class);
      assetManager.load(DEFAULT_SKIN, Skin.class);
      assetManager.load(DEFAULT_TEMPLATE_PFX, ParticleEffect.class, params);
     
      assetManager.finishLoading();
      assetManager.setLoader(ParticleEffect.class, new ParticleEffectLoader(new AbsoluteFileHandleResolver()));
      assetManager.get(DEFAULT_MODEL_PARTICLE, Model.class).materials.get(0).set(new BlendingAttribute(GL20.GL_ONE, GL20.GL_ONE_MINUS_SRC_ALPHA, 1));
     
      //Ui
      stringBuilder = new StringBuilder();
      Skin skin = assetManager.get(DEFAULT_SKIN, Skin.class);
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.g3d.particles.ParticleEffectLoader$ParticleEffectSaveParameter

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.