Skip to content

Commit 145d043

Browse files
authored
solve issue jMonkeyEngine#2002 (TerrainGridTileLoaderTest fails to load tiles) (jMonkeyEngine#2006)
* solve issue jMonkeyEngine#2002 (TerrainGridTileLoaderTest fails to load tiles) * TerrainGridTileLoaderTest: add a clarifying comment
1 parent 921e0f4 commit 145d043

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

jme3-examples/src/main/java/jme3test/terrain/TerrainGridTileLoaderTest.java

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import com.jme3.app.SimpleApplication;
44
import com.jme3.app.state.ScreenshotAppState;
5-
import com.jme3.asset.plugins.HttpZipLocator;
6-
import com.jme3.asset.plugins.ZipLocator;
75
import com.jme3.bullet.BulletAppState;
86
import com.jme3.bullet.collision.shapes.CapsuleCollisionShape;
97
import com.jme3.bullet.collision.shapes.HeightfieldCollisionShape;
@@ -28,7 +26,6 @@
2826
import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
2927
import com.jme3.texture.Texture;
3028
import com.jme3.texture.Texture.WrapMode;
31-
import java.io.File;
3229

3330
public 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

Comments
 (0)