- change test data

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8679 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 4105689fea
commit 916af255a0
  1. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_-1.j3o
  2. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_-2.j3o
  3. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_-3.j3o
  4. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_0.j3o
  5. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_1.j3o
  6. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_2.j3o
  7. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_3.j3o
  8. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_-1.j3o
  9. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_-2.j3o
  10. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_0.j3o
  11. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_1.j3o
  12. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_2.j3o
  13. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_3.j3o
  14. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_-1.j3o
  15. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_-2.j3o
  16. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_-3.j3o
  17. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_-4.j3o
  18. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_-5.j3o
  19. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_0.j3o
  20. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_1.j3o
  21. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_2.j3o
  22. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_3.j3o
  23. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_-1.j3o
  24. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_-2.j3o
  25. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_-3.j3o
  26. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_-4.j3o
  27. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_-5.j3o
  28. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_0.j3o
  29. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_1.j3o
  30. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_2.j3o
  31. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_3.j3o
  32. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_-1.j3o
  33. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_-2.j3o
  34. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_-3.j3o
  35. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_-4.j3o
  36. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_-5.j3o
  37. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_0.j3o
  38. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_1.j3o
  39. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_2.j3o
  40. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_3.j3o
  41. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_-1.j3o
  42. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_-2.j3o
  43. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_-3.j3o
  44. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_-4.j3o
  45. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_-5.j3o
  46. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_0.j3o
  47. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_1.j3o
  48. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_2.j3o
  49. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_3.j3o
  50. BIN
      engine/src/test-data/TerrainGrid/testgrid_4_0_-2.j3o
  51. BIN
      engine/src/test-data/TerrainGrid/testgrid_4_0_-3.j3o
  52. BIN
      engine/src/test-data/TerrainGrid/testgrid_4_0_-4.j3o
  53. 10
      engine/src/test/jme3test/terrain/TerrainGridTest.java

@ -9,6 +9,7 @@ import com.jme3.bullet.collision.shapes.CapsuleCollisionShape;
import com.jme3.bullet.collision.shapes.HeightfieldCollisionShape;
import com.jme3.bullet.control.CharacterControl;
import com.jme3.bullet.control.RigidBodyControl;
import com.jme3.export.binary.BinaryExporter;
import com.jme3.input.KeyInput;
import com.jme3.input.controls.ActionListener;
import com.jme3.input.controls.KeyTrigger;
@ -25,6 +26,9 @@ import com.jme3.terrain.heightmap.Namer;
import com.jme3.texture.Texture;
import com.jme3.texture.Texture.WrapMode;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
public class TerrainGridTest extends SimpleApplication {
@ -138,6 +142,12 @@ public class TerrainGridTest extends SimpleApplication {
}
public void tileAttached(Vector3f cell, TerrainQuad quad) {
// try {
// BinaryExporter.getInstance().save(quad, new File("/Users/normenhansen/Documents/Code/jme3/engine/src/test-data/TerrainGrid/"
// + "testgrid_" + Math.round(cell.x) + "_" + Math.round(cell.y) + "_" + Math.round(cell.z) + ".j3o"));
// } catch (IOException ex) {
// Logger.getLogger(TerrainFractalGridTest.class.getName()).log(Level.SEVERE, null, ex);
// }
quad.addControl(new RigidBodyControl(new HeightfieldCollisionShape(quad.getHeightMap(), terrain.getLocalScale()), 0));
bulletAppState.getPhysicsSpace().add(quad);
}

Loading…
Cancel
Save