Examples of addTexture()


Examples of com.jmex.terrain.util.ProceduralTextureGenerator.addTexture()

    {
        @SuppressWarnings("unused")
        float[] hm = tb.getHeightMap();
        // generate a terrain texture with 2 textures
        ProceduralTextureGenerator pt = new ProceduralTextureGenerator(heightMap);
        pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
            "data/water.jpg")), 0, 60, 100);
        pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
            "jmetest/data/texture/dirt.jpg")), 60, 100, 200);
        pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
            "jmetest/data/texture/highest.jpg")), 100, 200, 380);
View Full Code Here

Examples of com.jmex.terrain.util.ProceduralTextureGenerator.addTexture()

        float[] hm = tb.getHeightMap();
        // generate a terrain texture with 2 textures
        ProceduralTextureGenerator pt = new ProceduralTextureGenerator(heightMap);
        pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
            "data/water.jpg")), 0, 60, 100);
        pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
            "jmetest/data/texture/dirt.jpg")), 60, 100, 200);
        pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
            "jmetest/data/texture/highest.jpg")), 100, 200, 380);

        pt.createTexture(512);
View Full Code Here

Examples of com.jmex.terrain.util.ProceduralTextureGenerator.addTexture()

        ProceduralTextureGenerator pt = new ProceduralTextureGenerator(heightMap);
        pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
            "data/water.jpg")), 0, 60, 100);
        pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
            "jmetest/data/texture/dirt.jpg")), 60, 100, 200);
        pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
            "jmetest/data/texture/highest.jpg")), 100, 200, 380);

        pt.createTexture(512);

        // assign the texture to the terrain
View Full Code Here

Examples of com.jmex.terrain.util.ProceduralTextureGenerator.addTexture()

        tb.updateModelBound();

        // generate a terrain texture with 2 textures
        ProceduralTextureGenerator pt = new ProceduralTextureGenerator(
                heightMap);
        pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader()
                .getResource("jmetest/data/texture/grassb.png")), -128, 0, 128);
        pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader()
                .getResource("jmetest/data/texture/dirt.jpg")), 0, 128, 255);
        pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader()
                .getResource("jmetest/data/texture/highest.jpg")), 128, 255,
View Full Code Here

Examples of com.jmex.terrain.util.ProceduralTextureGenerator.addTexture()

        // generate a terrain texture with 2 textures
        ProceduralTextureGenerator pt = new ProceduralTextureGenerator(
                heightMap);
        pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader()
                .getResource("jmetest/data/texture/grassb.png")), -128, 0, 128);
        pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader()
                .getResource("jmetest/data/texture/dirt.jpg")), 0, 128, 255);
        pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader()
                .getResource("jmetest/data/texture/highest.jpg")), 128, 255,
                384);
        pt.createTexture(32);
View Full Code Here

Examples of com.jmex.terrain.util.ProceduralTextureGenerator.addTexture()

                heightMap);
        pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader()
                .getResource("jmetest/data/texture/grassb.png")), -128, 0, 128);
        pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader()
                .getResource("jmetest/data/texture/dirt.jpg")), 0, 128, 255);
        pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader()
                .getResource("jmetest/data/texture/highest.jpg")), 128, 255,
                384);
        pt.createTexture(32);
       
        // assign the texture to the terrain
View Full Code Here

Examples of com.jmex.terrain.util.ProceduralTextureGenerator.addTexture()

        tb.updateModelBound();

        // generate a terrain texture with 2 textures
        ProceduralTextureGenerator pt = new ProceduralTextureGenerator(
                heightMap);
        pt.addTexture(new ImageIcon(TankApplet.class.getClassLoader()
                .getResource("jmetest/data/texture/grassb.png")), -128, 0, 128);
        pt.addTexture(new ImageIcon(TankApplet.class.getClassLoader()
                .getResource("jmetest/data/texture/dirt.jpg")), 0, 128, 255);
        pt.addTexture(new ImageIcon(TankApplet.class.getClassLoader()
                .getResource("jmetest/data/texture/highest.jpg")), 128, 255,
View Full Code Here

Examples of com.jmex.terrain.util.ProceduralTextureGenerator.addTexture()

        // generate a terrain texture with 2 textures
        ProceduralTextureGenerator pt = new ProceduralTextureGenerator(
                heightMap);
        pt.addTexture(new ImageIcon(TankApplet.class.getClassLoader()
                .getResource("jmetest/data/texture/grassb.png")), -128, 0, 128);
        pt.addTexture(new ImageIcon(TankApplet.class.getClassLoader()
                .getResource("jmetest/data/texture/dirt.jpg")), 0, 128, 255);
        pt.addTexture(new ImageIcon(TankApplet.class.getClassLoader()
                .getResource("jmetest/data/texture/highest.jpg")), 128, 255,
                384);
        pt.createTexture(32);
View Full Code Here

Examples of com.jmex.terrain.util.ProceduralTextureGenerator.addTexture()

                heightMap);
        pt.addTexture(new ImageIcon(TankApplet.class.getClassLoader()
                .getResource("jmetest/data/texture/grassb.png")), -128, 0, 128);
        pt.addTexture(new ImageIcon(TankApplet.class.getClassLoader()
                .getResource("jmetest/data/texture/dirt.jpg")), 0, 128, 255);
        pt.addTexture(new ImageIcon(TankApplet.class.getClassLoader()
                .getResource("jmetest/data/texture/highest.jpg")), 128, 255,
                384);
        pt.createTexture(32);
       
        // assign the texture to the terrain
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.imaging.Baker.AddTexture()

      //TODO need to verfy why original code was sending even Zero textures for baking
      if(!texture.TextureID.equals(UUID.Zero))
      {
        JLogger.debug("Adding Texture to oven"  + texture.toString());
        texture.TextureIndex = textureIndex;
        oven.AddTexture(texture);
      }
    }

    long start = Utils.getUnixTime();
    JLogger.debug("Going to oven.Bake..");
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.