14
2012
2D Fluids with Cellular Automata
2D Fluids test.. Trying to make water like this (see forum link), but in 2D (like the original java link there)
First version works.. but using SetPixel, which is slow.. *Updated screenshot, added webplayer
Currently its drawing those boxes with setpixel..
*Check also the newer version: Eulerian Water Sim
Webplayer:
http://unitycoder.com/upload/demos/mFluids2DCellularAutomata1/
Download source: (C#)
mWaterSim2D.unitypackage
Related Posts
4 Comments + Add Comment
Leave a comment
Recent posts
- [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
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- 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
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on
cleaning up the source a bit..uploading on sunday or monday..
What I’m going to do in the next version of the lirabry is expose a way to update the world matrix of an object in the list kept by the ShadowMapRenderer.I’m still working on the best way to do this, but if you want a quick and dirty solution, you can make the list of casters public, and remember the index of each added object.If you’re not afraid of a little garbage (until the next verison comes out), simply modify the lirabry code, clear the list of shadow casters at the end of each frame, and add the casters with their correct world matrices each frame.
some amazing stuff here!
2D fluids, 3D fluids etc:
http://scrawkblog.com/2014/01/09/gpu-gems-to-unity-3d-fluid-simulation/
Cellular Automaton 2D Liquid Simulator for Unity
https://github.com/jongallant/LiquidSimulator