OSDN Git Service

- update TestBlenderLoader to test loading relative images
authornormen667 <normen667@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Thu, 8 Sep 2011 22:32:52 +0000 (22:32 +0000)
committernormen667 <normen667@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Thu, 8 Sep 2011 22:32:52 +0000 (22:32 +0000)
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@8224 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

engine/src/test/jme3test/blender/TestBlenderLoader.java

index e7688ad..4575aee 100644 (file)
@@ -34,7 +34,6 @@ package jme3test.blender;
 
 import com.jme3.app.SimpleApplication;
 import com.jme3.light.DirectionalLight;
-import com.jme3.light.PointLight;
 import com.jme3.math.ColorRGBA;
 import com.jme3.math.Vector3f;
 import com.jme3.scene.Spatial;
@@ -50,9 +49,14 @@ public class TestBlenderLoader extends SimpleApplication {
     public void simpleInitApp() {
         viewPort.setBackgroundColor(ColorRGBA.DarkGray);
 
-        Spatial bumpy = assetManager.loadModel("Blender/2.4x/Sinbad.blend");
-        rootNode.attachChild(bumpy);
+        //load model with packed images
+        Spatial ogre = assetManager.loadModel("Blender/2.4x/Sinbad.blend");
+        rootNode.attachChild(ogre);
 
+        //load model with referenced images
+        Spatial track = assetManager.loadModel("Blender/2.4x/MountainValley_Track.blend");
+        rootNode.attachChild(track);
+        
         // sunset light
         DirectionalLight dl = new DirectionalLight();
         dl.setDirection(new Vector3f(-0.1f,-0.7f,1).normalizeLocal());