{"id":240,"date":"2013-12-20T23:41:44","date_gmt":"2013-12-20T23:41:44","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=240"},"modified":"2013-12-20T23:41:44","modified_gmt":"2013-12-20T23:41:44","slug":"project-130-computational-fluid-dynamics-posted-as-free-resource","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/project-130-computational-fluid-dynamics-posted-as-free-resource\/","title":{"rendered":"Project 130 Computational Fluid Dynamics posted as free Resource"},"content":{"rendered":"<p>I have decided to release my Computational Fluid Dynamics code as a free resource for users of the Torque 3D game engine.<\/p>\n<p>My resource can be found here:<\/p>\n<p><a href=\"http:\/\/www.garagegames.com\/community\/blogs\/view\/22519\">http:\/\/www.garagegames.com\/community\/blogs\/view\/22519<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>I have duplicated the text of the resource below.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2013\/12\/ScreenHunter_27-Dec.-20-21.33.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-242 aligncenter\" alt=\"ScreenHunter_27 Dec. 20 21.33\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2013\/12\/ScreenHunter_27-Dec.-20-21.33-300x232.jpg\" width=\"300\" height=\"232\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2013\/12\/ScreenHunter_27-Dec.-20-21.33-300x232.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2013\/12\/ScreenHunter_27-Dec.-20-21.33-1024x793.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2013\/12\/ScreenHunter_27-Dec.-20-21.33.jpg 1040w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This resource adds support for &#8220;metablobs&#8221; to T3D. This can allow for very realistic fluid simulations, much more so than can be achieved with particle effects.<\/p>\n<p>Included are a realistic Water material, a Lava Material, A Tar material, and a Mud material. I have also included a ported version of the renderMonkey glitter shader.<\/p>\n<p>Tutorial:<\/p>\n<p>First, download the resource from here: (4.2MB&#8217;s, .RAR archive)<br \/>\nhttp:\/\/www.phoenixgamedevelopment.com\/downloads\/FluidDynamics.rar<\/p>\n<p>Copy the &#8220;Fluid Dynamics&#8221; folder to:<br \/>\n&#8220;game\/art\/shapes\/FluidDynamics&#8221;<\/p>\n<p>Inside the archive is a folder called &#8220;SHADERS&#8221;. All files in this folder should be copied to:<br \/>\ngame\/shaders\/common\/<br \/>\nDrop the files directly in that folder, do not include the &#8220;SHADERS&#8221; directory itself.<\/p>\n<p>There should also be a folder called &#8220;CODE&#8221;. All files in this directory should be added to:<br \/>\n&#8220;engine\/source\/T3D\/examples\/metaBlobs&#8221;<br \/>\nIn your compiler, you will then need to add these files to the build.<\/p>\n<p>In order to add MetaBlob based objects to the world using the editor, add the following line to:<br \/>\n&#8220;game\/tools\/worldeditor\/scripts\/editors\/creator.ed.cs<\/p>\n<p>Around line 100, under:<br \/>\n%this.registerMissionObject( &#8220;RenderShapeExample&#8221; );<br \/>\nadd:<br \/>\n%this.registerMissionObject( &#8220;metaBlobExample&#8221; );<\/p>\n<p>The resource folder also contains a sample mission file showing how to create a metablob object from code.<\/p>\n<p>Finally, execute the file &#8220;fluiddynamics.cs&#8221; by adding the line:<br \/>\nexec(&#8220;art\/shapes\/FluidDynamics\/fluiddynamics.cs&#8221;);<br \/>\nto:<br \/>\n&#8220;game\/scripts\/server\/scriptExec.cs&#8221;<\/p>\n<p>Any questions, comments, etc, can be directed to:<br \/>\njackstone@phoenixgamedevelopment.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have decided to release my Computational Fluid Dynamics code as a free resource for users of the Torque 3D game engine. My resource can be found here: http:\/\/www.garagegames.com\/community\/blogs\/view\/22519 &nbsp; I have duplicated the text of the resource below. &nbsp; &nbsp; This resource adds support for &#8220;metablobs&#8221; to T3D. This can allow for very realistic [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,12],"tags":[],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-software-and-games","category-tutorials","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/240"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":1,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":243,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/240\/revisions\/243"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}