Simple Water Example?

I could not find any good example, can some one show me one here?



Regards, Gustavo Borba.

did you look at jme/src/jmetest/effects/water/TestProjectedWater.java ?



I really looks cool - big waves  :slight_smile:

Okay, but I think the waves are too big. How to change the size of it?

The way you'd control this is by implementing a HeightGenerator



If you look at line 131/132 in the TestProjectedWater class:

projectedGrid = new ProjectedGrid("ProjectedGrid", cam, 100, 70, 0.01f, new WaterHeightGenerator());



As an example, you can instantiate WaterHeightGenerator before you create the ProjectedGrid and play with it's settings.  See com.jmex.effects.water.WaterHeightGenerator