{"id":448,"date":"2012-01-14T18:53:59","date_gmt":"2012-01-14T15:53:59","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=448"},"modified":"2013-08-15T21:58:46","modified_gmt":"2013-08-15T18:58:46","slug":"2d-fluids-cellular-automata-unity","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2012\/01\/14\/2d-fluids-cellular-automata-unity\/","title":{"rendered":"2D Fluids with Cellular Automata"},"content":{"rendered":"<p><a href=\"http:\/\/unitycoder.com\/upload\/demos\/mFluids2DCellularAutomata1\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"454\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2012\/01\/14\/2d-fluids-cellular-automata-unity\/mfluid2d1b\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mFluid2D1b.jpg?fit=680%2C536&amp;ssl=1\" data-orig-size=\"680,536\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"mFluid2D1b\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mFluid2D1b.jpg?fit=680%2C536&amp;ssl=1\" class=\"alignnone size-full wp-image-454\" title=\"mFluid2D1b\" alt=\"\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mFluid2D1b.jpg?resize=680%2C536\" width=\"680\" height=\"536\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mFluid2D1b.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mFluid2D1b.jpg?resize=300%2C236&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>2D Fluids test.. Trying to make water like this (see <a title=\"http:\/\/forum.unity3d.com\/threads\/63149-After-playing-minecraft...?p=794852&amp;viewfull=1#post794852\" href=\"http:\/\/forum.unity3d.com\/threads\/63149-After-playing-minecraft...?p=794852&amp;viewfull=1#post794852\" target=\"_blank\">forum link<\/a>), but in 2D (like the original java link there)<\/p>\n<p>First version works.. but using SetPixel, which is slow.. *Updated screenshot, added webplayer<br \/>\nCurrently its drawing those boxes with setpixel..<\/p>\n<p>*Check also the newer version: <a title=\"http:\/\/unitycoder.com\/blog\/2013\/04\/08\/eulerian-water-simulation-2d-unity\/\" href=\"http:\/\/unitycoder.com\/blog\/2013\/04\/08\/eulerian-water-simulation-2d-unity\/\" target=\"_blank\">Eulerian Water Sim<\/a><\/p>\n<p><strong>Webplayer:<\/strong><br \/>\n<a href=\"http:\/\/unitycoder.com\/upload\/demos\/mFluids2DCellularAutomata1\/\" target=\"_blank\">http:\/\/unitycoder.com\/upload\/demos\/mFluids2DCellularAutomata1\/<\/a><\/p>\n<p><strong>Download source:<\/strong> (C#)<br \/>\n<a title=\"Download Source\" href=\"http:\/\/unitycoder.com\/download\/index2.php?link=88&amp;uid=un1t3c0d5r\" target=\"_blank\">mWaterSim2D.unitypackage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":454,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4,3],"tags":[65,120,119,60],"class_list":["post-448","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-2d","tag-cellular-automata","tag-fluid","tag-water"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2012\/01\/mFluid2D1b.jpg?fit=680%2C536&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-7e","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=448"}],"version-history":[{"count":12,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/448\/revisions"}],"predecessor-version":[{"id":2286,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/448\/revisions\/2286"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/454"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}