Package com.jmex.terrain

Examples of com.jmex.terrain.TerrainBlock


    @SuppressWarnings("unused")
    private void buildTerrain(@SuppressWarnings("hiding") String name, int size,
           Vector3f stepScale, Vector3f origin, boolean clod) {
        for(int i = 0; i < TERRAIN_PAGES; i++)
        {
            terrainPages[i] = new TerrainBlock(name + "Node" +  i, size, stepScale, heightMaps[i].getHeightMap(), origin);
           
            assignTexture(terrainPages[i],heightMaps[i]);

            float zQuarter = FastMath.TWO_PI/chunks;
            float radialQuarter = FastMath.PI/chunks;
View Full Code Here


       
        MidPointHeightMap heightMap = new MidPointHeightMap(64, 1f);
        // Scale the data
        Vector3f terrainScale = new Vector3f(4, 0.1575f, 4);
        // create a terraiwblock
         tb = new TerrainBlock("Terrain", heightMap.getSize(), terrainScale,
                heightMap.getHeightMap(), new Vector3f(0, 0, 0), false);
        //tb.setLocalTranslation(new Vector3f(-20, -60, -20));
        tb.setModelBound(new BoundingBox());
        tb.updateModelBound();
View Full Code Here

       
        MidPointHeightMap heightMap = new MidPointHeightMap(64, 1f);
        // Scale the data
        Vector3f terrainScale = new Vector3f(4, 0.1575f, 4);
        // create a terraiwblock
         tb = new TerrainBlock("Terrain", heightMap.getSize(), terrainScale,
                heightMap.getHeightMap(), new Vector3f(0, 0, 0), false);
        //tb.setLocalTranslation(new Vector3f(-20, -60, -20));
        tb.setModelBound(new BoundingBox());
        tb.updateModelBound();
View Full Code Here

TOP

Related Classes of com.jmex.terrain.TerrainBlock

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.