Fixes error of loading assets

master
Grabli66 5 years ago committed by Stephen Gold
parent efc1962092
commit fafe8a74fe
  1. 9
      jme3-examples/src/main/java/jme3test/bullet/TestQ3.java
  2. 9
      jme3-examples/src/main/java/jme3test/post/TestMultiplesFilters.java
  3. 9
      jme3-examples/src/main/java/jme3test/scene/TestSceneLoading.java
  4. 14
      jme3-examples/src/main/java/jme3test/water/TestPostWaterLake.java
  5. 11
      jme3-examples/src/main/java/jme3test/water/TestSceneWater.java

@ -62,16 +62,17 @@ public class TestQ3 extends SimpleApplication implements ActionListener {
private boolean left=false,right=false,up=false,down=false;
public static void main(String[] args) {
File file = new File("quake3level.zip");
if (!file.exists()) {
useHttp = true;
}
TestQ3 app = new TestQ3();
app.start();
}
@Override
public void simpleInitApp() {
File file = new File("quake3level.zip");
if (!file.exists()) {
useHttp = true;
}
bulletAppState = new BulletAppState();
stateManager.attach(bulletAppState);
flyCam.setMoveSpeed(100);

@ -55,10 +55,6 @@ public class TestMultiplesFilters extends SimpleApplication {
private static boolean useHttp = false;
public static void main(String[] args) {
File file = new File("wildhouse.zip");
if (!file.exists()) {
useHttp = true;
}
TestMultiplesFilters app = new TestMultiplesFilters();
app.start();
}
@ -68,6 +64,11 @@ public class TestMultiplesFilters extends SimpleApplication {
@Override
public void simpleInitApp() {
File file = new File("wildhouse.zip");
if (!file.exists()) {
useHttp = true;
}
this.flyCam.setMoveSpeed(10);
cam.setLocation(new Vector3f(6.0344796f, 1.5054002f, 55.572033f));
cam.setRotation(new Quaternion(0.0016069f, 0.9810479f, -0.008143323f, 0.19358753f));

@ -64,6 +64,11 @@ public class TestSceneLoading extends SimpleApplication {
@Override
public void simpleInitApp() {
File file = new File("wildhouse.zip");
if (!file.exists()) {
useHttp = true;
}
this.flyCam.setMoveSpeed(10);
// load sky
@ -71,10 +76,6 @@ public class TestSceneLoading extends SimpleApplication {
"Textures/Sky/Bright/BrightSky.dds",
SkyFactory.EnvMapType.CubeMap));
File file = new File("wildhouse.zip");
if (!file.exists()) {
useHttp = true;
}
// create the geometry and attach it
// load the level from zip or http zip
if (useHttp) {

@ -50,16 +50,17 @@ public class TestPostWaterLake extends SimpleApplication {
private static boolean useHttp = false;
public static void main(String[] args) {
File file = new File("wildhouse.zip");
if (!file.exists()) {
useHttp = true;
}
TestPostWaterLake app = new TestPostWaterLake();
app.start();
}
@Override
public void simpleInitApp() {
File file = new File("wildhouse.zip");
if (!file.exists()) {
useHttp = true;
}
this.flyCam.setMoveSpeed(10);
cam.setLocation(new Vector3f(-27.0f, 1.0f, 75.0f));
// cam.setRotation(new Quaternion(0.03f, 0.9f, 0f, 0.4f));
@ -69,11 +70,6 @@ public class TestPostWaterLake extends SimpleApplication {
"Textures/Sky/Bright/BrightSky.dds",
SkyFactory.EnvMapType.CubeMap));
File file = new File("wildhouse.zip");
if (file.exists()) {
useHttp = false;
}
// create the geometry and attach it
// load the level from zip or http zip
if (useHttp) {

@ -51,7 +51,7 @@ import java.io.File;
public class TestSceneWater extends SimpleApplication {
// set default for applets
private static boolean useHttp = true;
private static boolean useHttp = false;
public static void main(String[] args) {
@ -61,6 +61,11 @@ public class TestSceneWater extends SimpleApplication {
@Override
public void simpleInitApp() {
File file = new File("wildhouse.zip");
if (!file.exists()) {
useHttp = true;
}
this.flyCam.setMoveSpeed(10);
Node mainScene=new Node();
cam.setLocation(new Vector3f(-27.0f, 1.0f, 75.0f));
@ -72,10 +77,6 @@ public class TestSceneWater extends SimpleApplication {
SkyFactory.EnvMapType.CubeMap));
File file = new File("wildhouse.zip");
if (file.exists()) {
useHttp = false;
}
// create the geometry and attach it
// load the level from zip or http zip
if (useHttp) {

Loading…
Cancel
Save