Codota Logo
HillHeightMap.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.jme3.terrain.heightmap.HillHeightMap
constructor

Best Java code snippets using com.jme3.terrain.heightmap.HillHeightMap.<init> (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport-jmonkey

public void randomizeHeightMap()
{
  if(terrain != null)
  {
    try
    {
      HillHeightMap heightmap    = new HillHeightMap(513, 2000, 25, 100, (long)((byte)100 * Math.random()));
      Material mat = terrain.getMaterial();
      Vector3f scale = terrain.getLocalScale();
      Vector3f trans = terrain.getLocalTranslation();
      rootNode.detachChildNamed("Terrain");
      terrain = new TerrainQuad("Terrain", 65, 513, heightmap.getHeightMap());
      terrain.setLocalTranslation(trans);
      terrain.setLocalScale(scale);
      terrain.setMaterial(mat);
      terrain.setShadowMode(ShadowMode.Receive);
      rootNode.attachChild(terrain);
    }
    catch(Exception ex)
    {
      ex.printStackTrace();
    }
  }
}
origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport-jmonkey

heightmap = new HillHeightMap(tiles+1, iterations, minradius, maxradius, (byte) seed);
terrain = new TerrainQuad("Terrain", 65, tiles+1, heightmap.getHeightMap());
com.jme3.terrain.heightmapHillHeightMap<init>

Javadoc

Constructor sets the attributes of the hill system and generates the height map by using a random seed.

Popular methods of HillHeightMap

  • addHill
    Generates a new hill of random size and height at a random position in the heightmap. This is the ac
  • load
  • normalizeTerrain
  • randomRange
  • setHeightAtPoint
  • unloadHeightMap
  • getHeightMap

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • onRequestPermissionsResult (Fragment)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now