From e5c554e11264a4f8c483b8c0ea37c124e68ddca2 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 29 Aug 2011 19:42:40 +0000 Subject: [PATCH] TestBrickTower : changed some parameters inthe shadow renderer git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8132 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/test/jme3test/bullet/TestBrickTower.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/src/test/jme3test/bullet/TestBrickTower.java b/engine/src/test/jme3test/bullet/TestBrickTower.java index 13fe0f974..7808dca6c 100644 --- a/engine/src/test/jme3test/bullet/TestBrickTower.java +++ b/engine/src/test/jme3test/bullet/TestBrickTower.java @@ -94,6 +94,7 @@ public class TestBrickTower extends SimpleApplication { public void simpleInitApp() { bulletAppState = new BulletAppState(); bulletAppState.setThreadingType(BulletAppState.ThreadingType.PARALLEL); + // bulletAppState.setEnabled(false); stateManager.attach(bulletAppState); bullet = new Sphere(32, 32, 0.4f, true, false); bullet.setTextureMode(TextureMode.Projected); @@ -101,7 +102,7 @@ public class TestBrickTower extends SimpleApplication { brick = new Box(Vector3f.ZERO, brickWidth, brickHeight, brickDepth); brick.scaleTextureCoordinates(new Vector2f(1f, .5f)); -// bulletAppState.getPhysicsSpace().enableDebug(assetManager); + //bulletAppState.getPhysicsSpace().enableDebug(assetManager); initMaterial(); initTower(); initFloor(); @@ -112,12 +113,12 @@ public class TestBrickTower extends SimpleApplication { inputManager.addMapping("shoot", new MouseButtonTrigger(MouseInput.BUTTON_LEFT)); inputManager.addListener(actionListener, "shoot"); rootNode.setShadowMode(ShadowMode.Off); - bsr = new PssmShadowRenderer(assetManager, 2048, 3); + bsr = new PssmShadowRenderer(assetManager, 1024, 2); bsr.setDirection(new Vector3f(-1, -1, -1).normalizeLocal()); bsr.setLambda(0.55f); bsr.setShadowIntensity(0.6f); bsr.setCompareMode(CompareMode.Hardware); - bsr.setFilterMode(FilterMode.Bilinear); + bsr.setFilterMode(FilterMode.PCF4); viewPort.addProcessor(bsr); }