I already said that? (+minor bug)

I didn’t, but Forum tells me over and over again -.-

What I actually tried to post was this:

Hi, I just noticed that one cannot change the ReflectionMapSize of a WaterFilter on Runtime.
Don’t know if it is a little bug or just a fact, that it can’t be done, it’s not a HUGE problem anyway…
Test-Case (right mouse button to decrease, left to increase ReflectionMapSize):
package mygame;
import com.jme3.app.SimpleApplication;
import com.jme3.input.;
import com.jme3.input.controls.
import com.jme3.material.Material;
import com.jme3.math.;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.jme3.post.
import com.jme3.renderer.RenderManager;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.water.*;

  • test
  • @author normenhansen
    public class Main extends SimpleApplication {
    public static void main(String[] args) {
    Main app = new Main();
    WaterFilter wf = new WaterFilter();
    Geometry geom = new Geometry(“Box”, new Box(Vector3f.ZERO, 3, 3, 3));
    public void simpleInitApp() {
    geom.setMaterial(new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”));
    FilterPostProcessor fpp = new FilterPostProcessor(assetManager);
    cam.setLocation(new Vector3f(-0.23613958f, 10.274893f, 26.616299f));
    cam.setRotation(new Quaternion(-1.4583064E-4f, 0.9543793f, -0.2985964f, -4.661618E-4f));
    inputManager.addMapping(“q+”, new MouseButtonTrigger(MouseInput.BUTTON_LEFT));
    inputManager.addMapping(“q-”, new MouseButtonTrigger(MouseInput.BUTTON_RIGHT));
    inputManager.addListener(new ActionListener() {
    public void onAction(String name, boolean isPressed, float tpf) {
    if (name.equals(“q+”) && isPressed) {
    wf.setReflectionMapSize(wf.getReflectionMapSize() + 100);
    System.out.println("ReflectionMapSize: " + wf.getReflectionMapSize());
    } else if (isPressed) {
    wf.setReflectionMapSize(wf.getReflectionMapSize() - 100);
    System.out.println("ReflectionMapSize: " + wf.getReflectionMapSize());
    }, new String[]{“q+”, "q-});
    } [/java]

It’s fixed in last svn