I hope you can help me with the following problem:
I'm developing a 3d game (in XNA) with an ocean. I want it to look semi-realistic. So far, I'm rendering 4 things:
- The ocean floor (terrain) on the view matrix (refraction)
- The terrain above water on the mirrored view matrix (reflection)
- The terrain above water on the view matrix (actual terrain)
- The water, which is simply a plane, using the refraction and reflection rendertargets, the fresnel term, and a normal map to give the impression of small waves.
Instead of a flat plane, I want to render the water on a mesh, to get some actual waves going. This is where I've been stuck for a while now. It's quite simple to clip the terrain along that plane, but is it possible to clip a mesh along another mesh? Or am I going about this the wrong way?