how to increase projectedGrid density?


03-03-2011 19:52:51

Is it possible to increase the density of points in post perspective space? I.e. increase the density of sampling of the water.

The problem I am having is that I have very high wave oscillations, and as a result I needed to increase the size of the camera frustrum (which I did by raising the mUpperBoundPlane), now however, the water is at a very low "resolution".

This is what my water looks like now:

When I move the camera closer to it, it looks fine. I want this granularity at the previous (bigger) height

Any help/hints would be really appreciated!


07-03-2011 23:30:54

Hopefully this will help. You can set the current "camera elevation" above the water level. This fixes the problem. Just update it every frame to equal the global/world Y co-ordinate of your main player camera. You set it through the hydrax module options like so:

mHydraxModule->setOptions(Hydrax::Module::ProjectedGrid::Options(mComplexity, mStrength, mCameraElevation........ etc