Package graphics.material

Examples of graphics.material.Material


    for (Entry<String, Mesh> objMesh : objMeshes.entrySet()) {
      materialList.add(objMesh.getValue().getDefaultMaterial());
    }
   
    /* Build a one compact material from all the meshes */
    Material railMaterials = new Material(materialList);
    this.material = railMaterials;
    materialList = null;
 
    int rowCount = mapHeight/Map.chunkSize;
    int colCount = mapWidth/Map.chunkSize;
View Full Code Here


            norBuffer.add(rotatedNormal.x);
            norBuffer.add(rotatedNormal.y);
            norBuffer.add(rotatedNormal.z);
           
           
            Material meshMat = msh.get(i).getDefaultMaterial();

            /* texture index defaults to 0 */
            int texIndex = material.getTextureHandleIndex(meshMat.getTextureHandle((int)temp[8]));
            texIndex = (texIndex > 0)?texIndex:0;

            /* TexID */
            idBuffer.add((float)texIndex);
          }
 
View Full Code Here

    emitterMesh.create(maxParticles);

    this.setMesh(emitterMesh);
   
    shader = ShaderHandler.get("./res/shaders/billboard.vert|./res/shaders/billboard.frag");
    material = new Material();
    material.setTexture(0, "res/texture/smoke.png");
  }
View Full Code Here

 
  class OverheatSteamEmitters{
    private Emitter overheatEmitter[];

    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));
View Full Code Here

    indiceCount = 0;
    keyframeCount = 0;
    maxFloatCount = 0;
    stride = 0;
    usage = 0;
    defaultMaterial = new Material();
    primitiveType = GL_TRIANGLES;
  }
View Full Code Here

    }
   
    this.VBOid = 0;
    this.indiceCount = 0;
    this.ready = false;
    this.defaultMaterial = new Material();
  }
View Full Code Here

  public int getKeyframeCount(){
    return this.keyframeCount;
  }
 
  public Material getDefaultMaterial(){
    return new Material(this.defaultMaterial);
  }
View Full Code Here

  private float keyframeBlend;
 
  public Model(){
    mesh = null;
    shader = ShaderHandler.get("./res/shaders/mesh.vert|./res/shaders/mesh.frag");
    material = new Material();
    position = new Vector3f();
    rotation = new Vector3f();
    scale = new Vector3f(1f,1f,1f);
   
    modelMatrix = new Matrix4f();
View Full Code Here

    this.material = this.mesh.getDefaultMaterial();
    //this.material.setTexture(0, "res/texture/steamtrain_painted.png");
  }
 
  public void setMaterial(Material mat){
    this.material = new Material(mat);
    //this.material.setTexture(0, "res/texture/steamtrain_painted.png");
  }
View Full Code Here

 
  private Emitter passengerEmitter;
 
  PassengerCoach(Map map) {
    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);
View Full Code Here

TOP

Related Classes of graphics.material.Material

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.