Giter VIP home page Giter VIP logo

Comments (2)

Nsomnia avatar Nsomnia commented on August 21, 2024

I'll be digging heavily into this kind've stuff for my subsim game as time goes on and my knowledge of cpp and ue4's api increases

from oceanproject.

tk-master avatar tk-master commented on August 21, 2024

The C++ part could be modified to solve as many gerstner waves as the user wants but the material side is a different story! there is no support for arrays or for-loops and so the number of waves have to be pre-defined in the shader.
We actually had 16 waves before but DotCam disabled the second cluster since it's wasn't making a huge visual difference anyway and the performance boost is probably worth it IMO.

That said, it is already possible to enable the 16 wave mode by enabling the second cluster from the material instance (but there are no configs for the second cluster in the blueprint or C++ so you will have to edit the code a bit).

And btw about whirlpools and wakes.. I really don't think you can make those with gerstner waves, those need a method of their own.

At the end of the day the gerstner wave system that we currently have is only a temporary solution so unless your project requires this soon then I would not bother too much with it, we will have an FFT system eventually which will be easily configurable via Beaufort scale (it's only a matter of time really).

from oceanproject.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.