Package graphics.emitter

Examples of graphics.emitter.Emitter


    train[1].setPosition(0,0,-1.5f);
    train[2] = new Model();
    train[2].setMesh(MeshHandler.get("res/mesh/coach1.obj"));
    train[2].setPosition(0,0,-2.5f);
   
    smokeEmitter = new Emitter(3, 4000);
    smokeEmitter.setVelocity(new Vector3f(0, 1.6f, 0));
    smokeEmitter.setSizes(5, 500);
    smokeEmitter.setSizesRandomness(1, 100);
    smokeEmitter.setAcceleration(new Vector3f(3f, -0.05f, -0.3f));
    smokeEmitter.setTranslation(new Vector3f(0, 0.08f, 0.30f));
View Full Code Here


  public Train(Map map) {
    /* Wind effect on steam/smoke */
    Vector3f windSpeed = new Vector3f(-0.2f,0,-0.3f);
   
    // model specific initialization
    smokeEmitter = new Emitter(30, 4000);
    smokeEmitter.setVelocity(new Vector3f(0, 1.6f, 0));
    smokeEmitter.setSizes(5, 200);
    smokeEmitter.setSizesRandomness(1, 100);
    smokeEmitter.setAcceleration(new Vector3f(windSpeed.x, -0.29f, windSpeed.z));
    smokeEmitter.setTranslation(new Vector3f(0, 0.08f, 0.30f));
   
    smokeEmitter2 = new Emitter(30, 3000);
    smokeEmitter2.setVelocity(new Vector3f(0, 1.4f, 0));
    smokeEmitter2.setSizes(5, 75);
    smokeEmitter2.setSizesRandomness(1, 75);
    smokeEmitter2.setAcceleration(new Vector3f(windSpeed.x, -0.19f, windSpeed.z));
    smokeEmitter2.setTranslation(new Vector3f(0, 0.06f, 0.35f));
View Full Code Here

    public OverheatSteamEmitters(Vector3f windSpeed) {
      Material smokeMat = new Material();
      smokeMat.setTexture(0, "res/texture/smoke_dark.png");
      overheatEmitter = new Emitter[6];
      for(int i=0;i<6;i++){
        overheatEmitter[i] = new Emitter(40, 1000);
        overheatEmitter[i].setMaterial(smokeMat);
        overheatEmitter[i].setVelocity(new Vector3f(0, 0.5f, -0.5f));
        overheatEmitter[i].setSizes(5, 10);
        overheatEmitter[i].setSizesRandomness(1, 40);
        overheatEmitter[i].setAcceleration(new Vector3f(windSpeed.x, -0.05f, windSpeed.z));
View Full Code Here

    super(map);
    Material smileyMat = new Material();
    smileyMat.setTexture(0, "res/texture/smiley.png");
    smileyMat.setTexture(1, "res/texture/frown.png");
   
    passengerEmitter = new Emitter(10, 4000);
    passengerEmitter.setMaterial(smileyMat);
    passengerEmitter.setVelocity(new Vector3f(0,0.5f,0));
    passengerEmitter.setSizes(15, 40);
    passengerEmitter.setSizesRandomness(5, 10);
    passengerEmitter.setTranslation(new Vector3f(0,0.6f,0));
View Full Code Here

TOP

Related Classes of graphics.emitter.Emitter

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.