22
33import com .jme3 .app .SimpleApplication ;
44import com .jme3 .app .state .ScreenshotAppState ;
5- import com .jme3 .asset .plugins .HttpZipLocator ;
6- import com .jme3 .asset .plugins .ZipLocator ;
75import com .jme3 .bullet .BulletAppState ;
86import com .jme3 .bullet .collision .shapes .CapsuleCollisionShape ;
97import com .jme3 .bullet .collision .shapes .HeightfieldCollisionShape ;
2826import com .jme3 .terrain .geomipmap .lodcalc .DistanceLodCalculator ;
2927import com .jme3 .texture .Texture ;
3028import com .jme3 .texture .Texture .WrapMode ;
31- import java .io .File ;
3229
3330public class TerrainGridTileLoaderTest extends SimpleApplication {
3431
@@ -46,15 +43,11 @@ public static void main(final String[] args) {
4643
4744 @ Override
4845 public void simpleInitApp () {
49- File file = new File ("TerrainGridTestData.zip" );
50- if (!file .exists ()) {
51- assetManager .registerLocator (
52- "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/TerrainGridTestData.zip" ,
53- HttpZipLocator .class );
54- } else {
55- assetManager .registerLocator ("TerrainGridTestData.zip" , ZipLocator .class );
56- }
57-
46+ /*
47+ * Note: this test uses the "TerrainGrid" assets (from jme3-testdata),
48+ * _not_ the "TerrainGridTestData.zip" assets
49+ * (from jme3-examples and the Google Code archives).
50+ */
5851 this .flyCam .setMoveSpeed (100f );
5952 ScreenshotAppState state = new ScreenshotAppState ();
6053 this .stateManager .attach (state );
0 commit comments