Examples of RegularEmitter


Examples of com.badlogic.gdx.graphics.g3d.particles.emitters.RegularEmitter

  private void initializeComponents(RegularEmitter emitter){
    continuousCheckbox = new JCheckBox("Continuous");
    continuousCheckbox.setSelected(emitter.isContinuous());
    continuousCheckbox.addActionListener(new ActionListener() {
      public void actionPerformed (ActionEvent event) {
        RegularEmitter emitter = (RegularEmitter) editor.getEmitter().emitter;
        emitter.setContinuous(continuousCheckbox.isSelected());
      }
    });
    continuousCheckbox.setHorizontalTextPosition(SwingConstants.LEFT);
   
    int i =0;
    addContent(i++, 0, continuousCheckbox, GridBagConstraints.WEST, GridBagConstraints.NONE);
    addContent(i++, 0, countPanel = new CountPanel(editor, "Count", "Min number of particles at all times, max number of particles allowed.", emitter.minParticleCount, emitter.maxParticleCount));
    addContent(i++, 0, delayPanel = new RangedNumericPanel(editor, emitter.getDelay(), "Delay", "Time from beginning of effect to emission start, in milliseconds.", false));
    addContent(i++, 0, durationPanel = new RangedNumericPanel(editor, emitter.getDuration(), "Duration", "Time particles will be emitted, in milliseconds."));
    addContent(i++, 0, emissionPanel = new ScaledNumericPanel(editor, emitter.getEmission(), "Duration", "Emission","Number of particles emitted per second."));
    addContent(i++, 0, lifePanel = new ScaledNumericPanel(editor, emitter.getLife(), "Duration", "Life", "Time particles will live, in milliseconds."));
    addContent(i++, 0, lifeOffsetPanel = new ScaledNumericPanel(editor, emitter.getLifeOffset(), "Duration", "Life Offset","Particle starting life consumed, in milliseconds.", false));
  }
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.particles.emitters.RegularEmitter

    return controller;
  }

  private ParticleController createDefaultModelInstanceController () {
    //Emission
    RegularEmitter emitter = new RegularEmitter();
    emitter.getDuration().setLow(3000);
    emitter.getEmission().setHigh(80);
    emitter.getLife().setHigh(500, 1000);
    emitter.getLife().setTimeline(new float[] {0, 0.66f, 1});
    emitter.getLife().setScaling(new float[] {1, 1, 0.3f});
    emitter.setMaxParticleCount(100);

    //Color
    ColorInfluencer.Random colorInfluencer = new ColorInfluencer.Random();

    //Spawn
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.particles.emitters.RegularEmitter

      );
  }

  private ParticleController createDefaultBillboardController () {
    //Emission
    RegularEmitter emitter = new RegularEmitter();
    emitter.getDuration().setLow(3000);
    emitter.getEmission().setHigh(250);
    emitter.getLife().setHigh(500, 1000);
    emitter.getLife().setTimeline(new float[] {0, 0.66f, 1});
    emitter.getLife().setScaling(new float[] {1, 1, 0.3f});
    emitter.setMaxParticleCount(200);

    //Spawn
    PointSpawnShapeValue pointSpawnShapeValue = new PointSpawnShapeValue();
    SpawnInfluencer spawnSource = new SpawnInfluencer(pointSpawnShapeValue);
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.particles.emitters.RegularEmitter

      );
  }
 
  private ParticleController createDefaultPointController () {
    //Emission
    RegularEmitter emitter = new RegularEmitter();
    emitter.getDuration().setLow(3000);
    emitter.getEmission().setHigh(250);
    emitter.getLife().setHigh(500, 1000);
    emitter.getLife().setTimeline(new float[] {0, 0.66f, 1});
    emitter.getLife().setScaling(new float[] {1, 1, 0.3f});
    emitter.setMaxParticleCount(200);
   
    //Scale
    ScaleInfluencer scaleInfluencer = new ScaleInfluencer();
    scaleInfluencer.value.setHigh(1);
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.particles.emitters.RegularEmitter

      );
  }
 
  private ParticleController createDefaultParticleController () {
    //Emission
    RegularEmitter emitter = new RegularEmitter();
    emitter.getDuration().setLow(3000);
    emitter.getEmission().setHigh(90);
    emitter.getLife().setHigh(3000);
    emitter.setMaxParticleCount(100);

    //Spawn
    EllipseSpawnShapeValue pointSpawnShapeValue = new EllipseSpawnShapeValue();
    pointSpawnShapeValue.setDimensions(1, 1, 1);
    pointSpawnShapeValue.setSide(SpawnSide.top);
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.particles.emitters.RegularEmitter

      );
  }
 
  public ParticleController createDefaultTemplateController(){
    //Emission
    RegularEmitter emitter = new RegularEmitter();
    emitter.getDuration().setLow(3000);
    emitter.getEmission().setHigh(90);
    emitter.getLife().setHigh(1000);
    emitter.getLife().setTimeline(new float[] {0, 0.66f, 1});
    emitter.getLife().setScaling(new float[] {1, 1, 0.3f});
    emitter.setMaxParticleCount(100);

    //Spawn
    PointSpawnShapeValue pointSpawnShapeValue = new PointSpawnShapeValue();   
    pointSpawnShapeValue.xOffsetValue.setLow(0, 1f);
    pointSpawnShapeValue.xOffsetValue.setActive(true);
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.