Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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?

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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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