2
2
3
3
import com .jme3 .app .SimpleApplication ;
4
4
import com .jme3 .app .state .ScreenshotAppState ;
5
- import com .jme3 .asset .plugins .HttpZipLocator ;
6
- import com .jme3 .asset .plugins .ZipLocator ;
7
5
import com .jme3 .bullet .BulletAppState ;
8
6
import com .jme3 .bullet .collision .shapes .CapsuleCollisionShape ;
9
7
import com .jme3 .bullet .collision .shapes .HeightfieldCollisionShape ;
28
26
import com .jme3 .terrain .geomipmap .lodcalc .DistanceLodCalculator ;
29
27
import com .jme3 .texture .Texture ;
30
28
import com .jme3 .texture .Texture .WrapMode ;
31
- import java .io .File ;
32
29
33
30
public class TerrainGridTileLoaderTest extends SimpleApplication {
34
31
@@ -46,15 +43,11 @@ public static void main(final String[] args) {
46
43
47
44
@ Override
48
45
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
+ */
58
51
this .flyCam .setMoveSpeed (100f );
59
52
ScreenshotAppState state = new ScreenshotAppState ();
60
53
this .stateManager .attach (state );
0 commit comments