aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphil <[email protected]>2016-12-07 18:15:05 +1300
committerphil <[email protected]>2016-12-07 18:15:05 +1300
commit108761138020854f0c06e20abb7b69437d4ad91d (patch)
tree6006c4f050c3c80afbbc124ce935727cf2f3cc75
parent67bb78ee18788f40d47e73cffc226cfcb4502a4e (diff)
Made Configured_universe example run and hard coded file loading
-rw-r--r--src/main/java/org/jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java3
-rw-r--r--src/main/java/org/jdesktop/j3d/examples/configured_universe/j3d1x1-behavior.cfg2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java b/src/main/java/org/jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java
index 30e46c2..f49c6bf 100644
--- a/src/main/java/org/jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java
+++ b/src/main/java/org/jdesktop/j3d/examples/configured_universe/ConfigObjLoad.java
@@ -321,7 +321,8 @@ public class ConfigObjLoad {
init();
}
- public static void main(String[] args) {System.setProperty("sun.awt.noerasebackground", "true");
+ public static void main(String[] args) {System.setProperty("sun.awt.noerasebackground", "true");
+ System.setProperty("j3d.configURL","file:src/main/java/org/jdesktop/j3d/examples/configured_universe/j3d1x1-behavior.cfg");
new ConfigObjLoad(args);
}
}
diff --git a/src/main/java/org/jdesktop/j3d/examples/configured_universe/j3d1x1-behavior.cfg b/src/main/java/org/jdesktop/j3d/examples/configured_universe/j3d1x1-behavior.cfg
index db56b2c..ce68fc6 100644
--- a/src/main/java/org/jdesktop/j3d/examples/configured_universe/j3d1x1-behavior.cfg
+++ b/src/main/java/org/jdesktop/j3d/examples/configured_universe/j3d1x1-behavior.cfg
@@ -119,7 +119,7 @@
// getUniverse(), checking to see if the returned SimpleUniverse is a
// ConfiguredUniverse, and then calling its getNamedSensors() method.
//
-(NewViewPlatformBehavior vpb com.sun.j3d.utils.behaviors.vp.OrbitBehavior)
+(NewViewPlatformBehavior vpb org.jogamp.java3d.utils.behaviors.vp.OrbitBehavior)
// Set the scheduling bounds to be a BoundingSphere with its center at
// (0.0 0.0 0.0) and a radius of 100 meters.