8
2013
Eulerian Water Simulation C#
Converted one 2D water simulation to Unity, see original code & video (youtube) – source link at description (by Matthew Bettcher)
Check the old test also: 2D Fluids with Cellular Automata
TODO:
– Erosion?
– Floating objects?
– Different types of fluids?
Webplayer:
http://unitycoder.com/upload/demos/WaterSim2/ (texture size: 64×64)
Download source:
eulerianWaterSim.unityPackage
Related Posts
20 Comments + Add Comment
Leave a comment
Recent posts
- MotionVector Effect: Object “disappears” when paused
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
Recent Comments
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
My English is not good :/
Is that written in JavaScript?
Will get a download for this?
C#, yes adding these latest converted sources soon..(as in this or next week)
Source added.
Very interested in this program!
I’ll take a closer look at the source code.
I found a glitch that if you drop small amount of water for about 10 times, the water runs on the surface from left to right, and keep running on the surface until more water is added.
Hmm, yes, seems like right border is eating some of the water,
or maybe they get stacked on bottom (if fill 1 full row on bottom).
i installed unitycoder.com Toolbar and javascript enabled! but i cant download unitypackage!!why???
Are you using Chrome?
Easy “fix”: Use something else than chrome.. (many people have had problems with chrome, i’ve tested it on 2-3 different machines and it works..)
Other options: Disable adblockers on Chrome for this page (if have any enabled), then try?
i dont user chrome i’m user operaaa( i downloaded chrome but i cant add toolbar) and i tried internet explorer
hmm, strange thing.. (well, I emailed you the file let me know if it works)
thank you .it works.just i want to how to work this simulation.(can you say an another alternative for i can use toolbar because i like this site and have a good unitypackages)(sorry if you dont like my english)
Unfortunately no other free alternatives at the moment.. (if someone has suggestions, feel free to send ideas).
The source link is broken, you can put it back?
Ty.
Bump
Download should be working, did you get any error message or ..?
What about two connected containers? The water surface is not the same in both of them as it should.
I’d really love that!
Do you mean like this,
(water would flow to another side, if its less there)
Yes!
Hi Mgear. Would it be possible to upload the source again? Regards Deon
download works for me, did you get some error message or something else?
http://unitycoder.com/download/index2.php?link=630&uid=un1t3c0d5r
2D Wave Simulation sample implemented in Unity C# JobSystem
https://github.com/rngtm/Unity-JobSystem-WaveEquation