Package com.jmex.terrain.util

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


        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

        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

        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

        // 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

                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

        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

        // 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

                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

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.