How to make an ocean wave using opengl in 3D?

How to visualize ocean waves using opengl in 3D? Any answer would be welcome.

Edit:

Is there any source code that displays ocean waves but doesn't use another sdk or api? It's hard to know how to do this by reading the OSG source code. Therefore, any tutorials about this will be in order, it is very good that he attaches the source code.

+3
source share
2 answers

Christian (above) is right. Your question is currently very broad and difficult to answer. You might want to do some research yourself, and then ask a more focused question.

Start looking for shallow water equations . (Now I am missing a complete fluid simulation) Or read the Tessendorf Ocean Wave Modeling . Or look at the particles of Cem Yuksel . Even if you do not finish the implementation of any of them, links will become a good resource for you. Another may be this set of links .

An incomprehensible answer, but give us more to continue, and we can point you in a more specific direction.

+7
source

Realizing realistic looking water is extremely complex. Fortunately, there are tools to make it easier, like OSGOcean , which can display some impressive waves.

+7
source

Source: https://habr.com/ru/post/1380109/


All Articles