Several shadow problems

Hi,



I have several shadow problems as you see on the image:






  • the mouse is no more transparent
  • when the mouse is over the FengGUI Part (on the bottom), the mouse laying beneath the FengGUI stuff.
  • md5 models (folders in the cabinet) get no ambient color?
  • extrem performance loss, any possibility to increase?



    I use the following code:



    Init:


      pManager = new BasicPassManager();
      ShadowedRenderPass shadowPass = new ShadowedRenderPass();
      shadowPass.add(objectNode);
      shadowPass.setRenderShadows(true);
      shadowPass.setLightingMethod(ShadowedRenderPass.ADDITIVE);

      RenderPass renderPass = new RenderPass();
      renderPass.add(objectNode);

      pManager.add(renderPass);
      pManager.add(shadowPass);
      pManagerState = new PassManagerState();
      pManagerState.setPassManager(pManager);
      GameStateManager.getInstance().attachChild(pManagerState);
      pManagerState.setActive(true);



GameState:


public class PassManagerState extends BasicGameState {

   private BasicPassManager pManager;

   public PassManagerState() {
      super("PassManagerState");
   }

   public void setPassManager(BasicPassManager pManager) {
      this.pManager = pManager;
   }

   @Override
   public void render(float tpf) {
      Renderer renderer = DisplaySystem.getDisplaySystem().getRenderer();
      renderer.clearBuffers();
      pManager.renderPasses(renderer);
   }
}



Light:


      PointLight light = new PointLight();
      light.setDiffuse(new ColorRGBA(1f, 1f, 1f, 1f));
      light.setSpecular(new ColorRGBA(0.3f, 0.3f, 0.3f, 1.0f));
      light.setLocation(new Vector3f(0, 0, 100));

      light.setShadowCaster(true);
      light.setEnabled(true);

      /** Attach the light to a lightState and the lightState to rootNode. */
      lightState = DisplaySystem.getDisplaySystem().getRenderer().createLightState();
      lightState.setGlobalAmbient(new ColorRGBA(0.3f, 0.3f, 0.3f, 1.0f));
      lightState.setEnabled(true);
      lightState.attach(light);
      objectNode.setRenderState(lightState);

        CullState cs = DisplaySystem.getDisplaySystem().getRenderer().createCullState();
        cs.setCullMode(CullState.CS_BACK);
        cs.setEnabled(true);
        objectNode.setRenderState(cs);



Hope someone can help me :).