Package edu.ups.gamedev.terrain.water

Source Code of edu.ups.gamedev.terrain.water.Water

package edu.ups.gamedev.terrain.water;

import com.jme.app.SimpleGame;
import com.jmex.effects.water.HeightGenerator;
import com.jmex.effects.water.ProjectedGrid;
import com.jmex.effects.water.WaterHeightGenerator;

public class Water extends SimpleGame {

  public static void main( String[] args ) {
    Water w  = new Water();
    w.setDialogBehaviour(ALWAYS_SHOW_PROPS_DIALOG);
    w.start();
  }
 
  protected void simpleInitGame() {
    WaterHeightGenerator hg = new WaterHeightGenerator();
    ProjectedGrid pg  = new ProjectedGrid( "Main Water", cam, 
        100,
                100,
                1.0f,
                hg);
    rootNode.attachChildpg );
  }

}
TOP

Related Classes of edu.ups.gamedev.terrain.water.Water

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.