{"id":238,"date":"2011-10-21T19:49:29","date_gmt":"2011-10-21T16:49:29","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=238"},"modified":"2013-08-15T21:52:59","modified_gmt":"2013-08-15T18:52:59","slug":"smoothed-particle-hydrodynamics-unity3d-c","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2011\/10\/21\/smoothed-particle-hydrodynamics-unity3d-c\/","title":{"rendered":"Fluids &#8211; Smoothed Particle Hydrodynamics (Unity3D C# source)"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"239\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2011\/10\/21\/smoothed-particle-hydrodynamics-unity3d-c\/msph1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/10\/mSPH1.jpg?fit=680%2C427&amp;ssl=1\" data-orig-size=\"680,427\" 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=\"mSPH1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/10\/mSPH1.jpg?fit=300%2C188&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/10\/mSPH1.jpg?fit=680%2C427&amp;ssl=1\" class=\"alignnone size-full wp-image-239\" title=\"mSPH1\" alt=\"\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/10\/mSPH1.jpg?resize=680%2C427\" width=\"680\" height=\"427\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/10\/mSPH1.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/10\/mSPH1.jpg?resize=300%2C188&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p>SPH fluids test (see <a href=\"http:\/\/en.wikipedia.org\/wiki\/Smoothed-particle_hydrodynamics\" target=\"_blank\">wiki<\/a>)<br \/>\nScreenshot only..as its currently using debug.line for the drawing, would need pro for gl.lines.<\/p>\n<p>Its converted from this java to Unity C# (my first C# program, yay!)<br \/>\n<a href=\"http:\/\/www.jamesdedge.com\/SPHApplet.html\" target=\"_blank\">http:\/\/www.jamesdedge.com\/SPHApplet.html<\/a> &lt; click to view java version in action<\/p>\n<p>(google up for the source, done by: &#8220;Copyright 2011 James D. Edge, GNU General Public License&#8221;)<\/p>\n<p><strong>Download source:<\/strong><br \/>\n&#8211; Unfinished C# port of the java version (missing the mouse drawing, using debug.linedraw: enable gizmos in play view!)<br \/>\n<a title=\"http:\/\/unitycoder.com\/download\/\" href=\"http:\/\/unitycoder.com\/download\/index2.php?link=35&amp;uid=un1t3c0d5r\" target=\"_blank\">mSPH1.unitypackage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SPH fluids test (see wiki) Screenshot only..as its currently using debug.line for the drawing, would need pro for gl.lines. Its converted from this java to Unity C# (my first C# program, yay!) http:\/\/www.jamesdedge.com\/SPHApplet.html &lt; click to view java version in action (google up for the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":239,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_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}},"categories":[4,3],"tags":[59,58,57,60],"class_list":["post-238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-fluids","tag-smoothed-particle-hydrodynamics","tag-sph","tag-water"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/10\/mSPH1.jpg?fit=680%2C427&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-3Q","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/238","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=238"}],"version-history":[{"count":10,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":2263,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions\/2263"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/239"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}