I have a 2D matrix; each of its elements describes a homogenous coordinate in 3D wave (the values of wave coordinates are changed in time). The wave rendering is done with texture. I need to make an integration for the wave.

Does anyone have a clue? And another question; will the texture have any impact on integral calculation? p.s maybe i can do this using opengl?

  • \$\begingroup\$ Do you mean homogenous coordinates? Or do you mean something else I don't know? And textures shouldn't affect integration.. \$\endgroup\$ Jul 11 '11 at 12:52
  • \$\begingroup\$ yes homogenous coordinates \$\endgroup\$
    – rar
    Jul 11 '11 at 12:54
  • \$\begingroup\$ Can you explain this part a bit more: "I have a 2D matrix; each of its elements describes a homogenous coordinate in 3D wave" \$\endgroup\$ Jul 11 '11 at 13:22
  • \$\begingroup\$ Probably this is an u/v parametrization for a 2D surface in the 3D space. \$\endgroup\$
    – FxIII
    Jul 11 '11 at 13:31
  • 1
    \$\begingroup\$ maybe better on math.stackexchange.com ? \$\endgroup\$ Sep 19 '11 at 9:43

Correct me if this is no the answer you want, as the question is a little vague.

Since this is in gamedev SE I assume you want some kind of real time wave simulation, and this matrix is basically a 'height map'. There are several numerical methods for solving the 2d wave equation (I don't think you want the 3d) and you can find thorough descriptions of the finite difference methods easily on the net. For example. However, this is very computationally expensive. So I've made a quick search for 'real time wave simulation' and found this article, which basically show you how to make waves on the shore lines and the rest is just a noise-like texture.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.