Package org.osm2world.core.target.common

Examples of org.osm2world.core.target.common.TextureData


 
  private void writeMaterial(Material material, String name) {

    for (int i = 0; i < max(1, material.getNumTextureLayers()); i++) {
     
      TextureData textureData = null;
      if (material.getNumTextureLayers() > 0) {
        textureData = material.getTextureDataList().get(i);
      }
   
      mtlStream.println("newmtl " + name + "_" + i);
View Full Code Here


      appendMaterial(material);
      append("#end\n\n");
     
      if (material.getNumTextureLayers() == 1) {
       
        TextureData td = material.getTextureDataList().get(0);
       
        if (!td.colorable) {
          textureNames.put(td, uniqueName);
        }
       
View Full Code Here

        } else {
          gl.glDisable(GL.GL_BLEND);
          gl.glDisable(GL_ALPHA_TEST);
        }
       
        TextureData textureData = material.getTextureDataList().get(i);
       
        Texture texture = textureManager.getTextureForFile(textureData.file);
            texture.enable(gl); //TODO: should this be called every time?
            texture.bind(gl);
           
View Full Code Here

     
      return emptyList();
     
    } else if (textureDataList.size() == 1) {
     
      TextureData textureData = textureDataList.get(0);
      TexCoordFunction coordFunction = textureData.coordFunction;
      if (coordFunction == null) { coordFunction = defaultCoordFunction; }
     
      return singletonList(coordFunction.apply(vs, textureData));
     
View Full Code Here

              if (coordFunctionString != null) {
                coordFunction = NamedTexCoordFunction.valueOf(
                    coordFunctionString.toUpperCase());
              }
             
              TextureData textureData = new TextureData(
                  file, width, height, wrap, coordFunction, colorable);
              textureDataList.add(textureData);
             
            }
           
View Full Code Here

       
        /* add texture coordinates */
       
        for (int texLayer = 0; texLayer < textureDataList.size(); texLayer ++) {
         
          TextureData textureData = textureDataList.get(texLayer);
          List<VectorXZ> texCoordList = mainWallTexCoordLists.get(texLayer);
         
          double s, lowerT, middleT;
         
          // determine s (width dimension) coordinate
View Full Code Here

TOP

Related Classes of org.osm2world.core.target.common.TextureData

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.