Tabnine Logo
ParticleEmitter.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
com.jme3.effect.ParticleEmitter

Best Java code snippets using com.jme3.effect.ParticleEmitter.getName (Showing top 8 results out of 315)

origin: jMonkeyEngine/jmonkeyengine

char nameSuffix = emitter.getName().charAt(emitter.getName().length() - 1);
if (nameSuffix == 'B' || nameSuffix == 'N') {
  alphaFunction = MaterialHelper.ALPHA_MASK_NONE;
emitter.setName(emitter.getName().substring(0, emitter.getName().length() - 1));
origin: jMonkeyEngine/jmonkeyengine

/**
 * This method clone the Track and search for the cloned counterpart of the
 * original emitter in the given cloned spatial. The spatial is assumed to
 * be the Spatial holding the AnimControl controlling the animation using
 * this Track.
 *
 * @param spatial the Spatial holding the AnimControl
 * @return the cloned Track with proper reference
 */
@Override
public Track cloneForSpatial(Spatial spatial) {
  EffectTrack effectTrack = new EffectTrack();
  effectTrack.particlesPerSeconds = this.particlesPerSeconds;
  effectTrack.length = this.length;
  effectTrack.startOffset = this.startOffset;
  //searching for the newly cloned ParticleEmitter
  effectTrack.emitter = findEmitter(spatial);
  if (effectTrack.emitter == null) {
    logger.log(Level.WARNING, "{0} was not found in {1} or is not bound to this track", new Object[]{emitter.getName(), spatial.getName()});
    effectTrack.emitter = emitter;
  }
  removeUserData(this);
  //setting user data on the new emmitter and marking it with a reference to the cloned Track.
  setUserData(effectTrack);
  effectTrack.emitter.setParticlesPerSec(0);
  return effectTrack;
}
origin: jMonkeyEngine/jmonkeyengine

  private void makeSoftParticleEmitter(Spatial scene, boolean enabled) {
    if (scene instanceof Node) {
      Node n = (Node) scene;
      for (Spatial child : n.getChildren()) {
        makeSoftParticleEmitter(child, enabled);
      }
    }
    if (scene instanceof ParticleEmitter) {
      ParticleEmitter emitter = (ParticleEmitter) scene;
      if (enabled) {
        enabledSoftParticles = enabled;

        emitter.getMaterial().selectTechnique("SoftParticles", renderManager);
        if( processor.getNumSamples()>1){
          emitter.getMaterial().setInt("NumSamplesDepth", processor.getNumSamples());
        }
        emitter.getMaterial().setTexture("DepthTexture", processor.getDepthTexture());               
        emitter.setQueueBucket(RenderQueue.Bucket.Translucent);

        logger.log(Level.FINE, "Made particle Emitter {0} soft.", emitter.getName());
      } else {
        emitter.getMaterial().clearParam("DepthTexture");
        emitter.getMaterial().selectTechnique("Default", renderManager);
        // emitter.setQueueBucket(RenderQueue.Bucket.Transparent);
        logger.log(Level.FINE, "Particle Emitter {0} is not soft anymore.", emitter.getName());
      }
    }
  }
}
origin: org.jmonkeyengine/jme3-core

/**
 * This method clone the Track and search for the cloned counterpart of the
 * original emitter in the given cloned spatial. The spatial is assumed to
 * be the Spatial holding the AnimControl controlling the animation using
 * this Track.
 *
 * @param spatial the Spatial holding the AnimControl
 * @return the cloned Track with proper reference
 */
@Override
public Track cloneForSpatial(Spatial spatial) {
  EffectTrack effectTrack = new EffectTrack();
  effectTrack.particlesPerSeconds = this.particlesPerSeconds;
  effectTrack.length = this.length;
  effectTrack.startOffset = this.startOffset;
  //searching for the newly cloned ParticleEmitter
  effectTrack.emitter = findEmitter(spatial);
  if (effectTrack.emitter == null) {
    logger.log(Level.WARNING, "{0} was not found in {1} or is not bound to this track", new Object[]{emitter.getName(), spatial.getName()});
    effectTrack.emitter = emitter;
  }
  removeUserData(this);
  //setting user data on the new emmitter and marking it with a reference to the cloned Track.
  setUserData(effectTrack);
  effectTrack.emitter.setParticlesPerSec(0);
  return effectTrack;
}
origin: info.projectkyoto/mms-engine

/**
 * This method clone the Track and search for the cloned counterpart of the
 * original emmitter in the given cloned spatial. The spatial is assumed to
 * be the Spatial holding the AnimControl controling the animation using
 * this Track.
 *
 * @param spatial the Spatial holding the AnimControl
 * @return the cloned Track with proper reference
 */
public Track cloneForSpatial(Spatial spatial) {
  EffectTrack effectTrack = new EffectTrack();
  effectTrack.particlesPerSeconds = this.particlesPerSeconds;
  effectTrack.length = this.length;
  effectTrack.startOffset = this.startOffset;
  //searching for the newly cloned ParticleEmitter
  effectTrack.emitter = findEmitter(spatial);
  if (effectTrack.emitter == null) {
    logger.log(Level.WARNING, "{0} was not found in {1} or is not bound to this track", new Object[]{emitter.getName(), spatial.getName()});
    effectTrack.emitter = emitter;
  }
  removeUserData(this);
  //setting user data on the new emmitter and marking it with a reference to the cloned Track.
  setUserData(effectTrack);
  effectTrack.emitter.setParticlesPerSec(0);
  return effectTrack;
}
origin: org.jmonkeyengine/jme3-effects

  private void makeSoftParticleEmitter(Spatial scene, boolean enabled) {
    if (scene instanceof Node) {
      Node n = (Node) scene;
      for (Spatial child : n.getChildren()) {
        makeSoftParticleEmitter(child, enabled);
      }
    }
    if (scene instanceof ParticleEmitter) {
      ParticleEmitter emitter = (ParticleEmitter) scene;
      if (enabled) {
        enabledSoftParticles = enabled;

        emitter.getMaterial().selectTechnique("SoftParticles", renderManager);
        if( processor.getNumSamples()>1){
          emitter.getMaterial().setInt("NumSamplesDepth", processor.getNumSamples());
        }
        emitter.getMaterial().setTexture("DepthTexture", processor.getDepthTexture());               
        emitter.setQueueBucket(RenderQueue.Bucket.Translucent);

        logger.log(Level.FINE, "Made particle Emitter {0} soft.", emitter.getName());
      } else {
        emitter.getMaterial().clearParam("DepthTexture");
        emitter.getMaterial().selectTechnique("Default", renderManager);
        // emitter.setQueueBucket(RenderQueue.Bucket.Transparent);
        logger.log(Level.FINE, "Particle Emitter {0} is not soft anymore.", emitter.getName());
      }
    }
  }
}
origin: info.projectkyoto/mms-engine

  emitter.setQueueBucket(RenderQueue.Bucket.Translucent);
  logger.log(Level.FINE, "Made particle Emitter {0} soft.", emitter.getName());
} else {
  emitter.getMaterial().clearParam("DepthTexture");
  emitter.getMaterial().selectTechnique("Default", renderManager);
  logger.log(Level.FINE, "Particle Emitter {0} is not soft anymore.", emitter.getName());
origin: us.ihmc.thirdparty.jme/jme3-effects

  emitter.setQueueBucket(RenderQueue.Bucket.Translucent);
  logger.log(Level.FINE, "Made particle Emitter {0} soft.", emitter.getName());
} else {
  emitter.getMaterial().clearParam("DepthTexture");
  emitter.getMaterial().selectTechnique("Default", renderManager);
  logger.log(Level.FINE, "Particle Emitter {0} is not soft anymore.", emitter.getName());
com.jme3.effectParticleEmittergetName

Popular methods of ParticleEmitter

  • emitAllParticles
    Instantly emits all the particles possible to be emitted. Any particles which are currently inactive
  • setQueueBucket
  • getMaterial
  • setParticlesPerSec
    Set the number of particles to spawn per second.
  • <init>
  • clone
  • getNumVisibleParticles
    Returns the number of visible particles (spawned but not dead).
  • setEndColor
    Set the end color of the particles spawned.The particle color at any time is determined by blending
  • setEndSize
    Set the end size of the particles spawned.The particle size at any time is determined by blending th
  • setGravity
    This method sets the gravity vector.
  • setHighLife
    Set the high value of life.The particle's lifetime/expiration is determined by randomly selecting a
  • setLowLife
    Set the low value of life.The particle's lifetime/expiration is determined by randomly selecting a t
  • setHighLife,
  • setLowLife,
  • setMaterial,
  • setNumParticles,
  • setShadowMode,
  • setStartColor,
  • setStartSize,
  • addControl,
  • emitParticle

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • 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
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now