Merge pull request #581 from Ev1lbl0w/master
Fix some problems in issue #96 (SDK branch)
This commit is contained in:
commit
b31ccf31d7
@ -60,9 +60,9 @@ public class TestOnlineJar extends SimpleApplication {
|
||||
|
||||
Geometry quad = new Geometry("Textured Quad", quadMesh);
|
||||
|
||||
assetManager.registerLocator("http://jmonkeyengine.googlecode.com/files/town.zip",
|
||||
assetManager.registerLocator("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/town.zip",
|
||||
HttpZipLocator.class);
|
||||
assetManager.registerLocator("http://jmonkeyengine.googlecode.com/files/wildhouse.zip",
|
||||
assetManager.registerLocator("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/wildhouse.zip",
|
||||
HttpZipLocator.class);
|
||||
|
||||
Picture pic1 = new Picture("Picture1");
|
||||
|
@ -60,7 +60,7 @@ public class TestUrlLoading extends SimpleApplication {
|
||||
|
||||
Geometry quad = new Geometry("Textured Quad", quadMesh);
|
||||
|
||||
assetManager.registerLocator("https://jmonkeyengine.googlecode.com/svn/BookSamples/assets/Textures/",
|
||||
assetManager.registerLocator("https://raw.githubusercontent.com/jMonkeyEngine/BookSamples/master/assets/Textures/",
|
||||
UrlLocator.class);
|
||||
TextureKey key = new TextureKey("mucha-window.png", false);
|
||||
key.setGenerateMips(true);
|
||||
|
@ -57,7 +57,7 @@ public class TestColoredTexture extends SimpleApplication {
|
||||
Geometry quad = new Geometry("Quad", quadMesh);
|
||||
quad.setQueueBucket(Bucket.Gui);
|
||||
|
||||
mat = new Material(assetManager, "Common/MatDefs/Misc/ColoredTextured.j3md");
|
||||
mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
|
||||
mat.setTexture("ColorMap", assetManager.loadTexture("Textures/ColoredTex/Monkey.png"));
|
||||
quad.setMaterial(mat);
|
||||
guiNode.attachChildAt(quad, 0);
|
||||
|
@ -75,7 +75,7 @@ public class TestSceneLoading extends SimpleApplication {
|
||||
// create the geometry and attach it
|
||||
// load the level from zip or http zip
|
||||
if (useHttp) {
|
||||
assetManager.registerLocator("http://jmonkeyengine.googlecode.com/files/wildhouse.zip", HttpZipLocator.class);
|
||||
assetManager.registerLocator("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/wildhouse.zip", HttpZipLocator.class);
|
||||
} else {
|
||||
assetManager.registerLocator("wildhouse.zip", ZipLocator.class);
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ public class TerrainGridAlphaMapTest extends SimpleApplication {
|
||||
|
||||
File file = new File("TerrainGridTestData.zip");
|
||||
if (!file.exists()) {
|
||||
assetManager.registerLocator("http://jmonkeyengine.googlecode.com/files/TerrainGridTestData.zip", HttpZipLocator.class);
|
||||
assetManager.registerLocator("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/TerrainGridTestData.zip", HttpZipLocator.class);
|
||||
} else {
|
||||
assetManager.registerLocator("TerrainGridTestData.zip", ZipLocator.class);
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ public class TerrainGridTest extends SimpleApplication {
|
||||
public void simpleInitApp() {
|
||||
File file = new File("TerrainGridTestData.zip");
|
||||
if (!file.exists()) {
|
||||
assetManager.registerLocator("http://jmonkeyengine.googlecode.com/files/TerrainGridTestData.zip", HttpZipLocator.class);
|
||||
assetManager.registerLocator("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/TerrainGridTestData.zip", HttpZipLocator.class);
|
||||
} else {
|
||||
assetManager.registerLocator("TerrainGridTestData.zip", ZipLocator.class);
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ public class TestSceneWater extends SimpleApplication {
|
||||
// create the geometry and attach it
|
||||
// load the level from zip or http zip
|
||||
if (useHttp) {
|
||||
assetManager.registerLocator("http://jmonkeyengine.googlecode.com/files/wildhouse.zip", HttpZipLocator.class);
|
||||
assetManager.registerLocator("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/wildhouse.zip", HttpZipLocator.class);
|
||||
} else {
|
||||
assetManager.registerLocator("wildhouse.zip", ZipLocator.class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user