Flickering water

Hello, I’m trying to figure out how to use water, and this is the result:

Does anyone know why the water looks like this?

Code used to create water:


SimpleWaterProcessor waterProcessor = new SimpleWaterProcessor(assetManager);


Vector3f waterLocation=new Vector3f(0,0,0);

waterProcessor.setPlane(new Plane(Vector3f.UNIT_Y, waterLocation.dot(Vector3f.UNIT_Y)));


waterProcessor.setWaterDepth(40); // transparency of water

waterProcessor.setDistortionScale(0.05f); // strength of waves

waterProcessor.setWaveSpeed(0.05f); // speed of waves

Quad quad = new Quad(400,400);

quad.scaleTextureCoordinates(new Vector2f(6f,6f));

Geometry water=new Geometry(“water”, quad);

water.setLocalRotation(new Quaternion().fromAngleAxis(-FastMath.HALF_PI, Vector3f.UNIT_X));

water.setLocalTranslation(0, 0, 0);



Your graphics card driver seems to have bugs, maybe you check if theres an update.

So, the code is correct?

Does TestWaterProcessor.java (or something like) work for you? Update your graphic driver like normen said.