Fancy Fluids in Flash by Sam

Every now and then I like to code something just for the fun of seeing what I can create. Recently I’ve been working on a 3D water sim in flash. Check it out below. If you’re curious as to how the water in Minecraft or Dwarf Fortress works, this is for you.

[SWF]/wp-content/uploads/2010/10/FancyFluids.swf, 600, 400[/SWF]

The tech is inspired by that of Dwarf Fortress (which you can read about here), with a couple of my own additions. It is based on two core concepts. Firstly, water always falls down; if there is an empty cell below a cell of water, move that water down. Secondly, if a cell of water is connected to an empty cell somewhere below, teleport the water there.

One of my more interesting additions is that water ‘prefers’ to move consistently in one direction, as opposed to whichever direction is easiest. This means you can get jets of water that spurt out of high pressure areas. Take a look at demo 2 to see that in action.

If you’re curious, the image used in the demo is my display picture from the TIGSource forums. Also the GUI stuff is by BIT-101.

If theres anything you would like to know in more detail, or if you have any suggestions leave a comment below!

You can download the source here, but be warned: it ain’t pretty.


Discussion

  1. Sealcoat linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  2. Timbaland Type Beat linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  3. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  4. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  5. Jay Z Type Beat linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  6. military manuals linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  7. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  8. ebooks for resale linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  9. buzzfeed sex toys linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  10. sex confession linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  11. Garden Bridges linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  12. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  13. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  14. نصب دوربین linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  15. masturbation linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  16. cock ring review linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  17. bubble packaging linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  18. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  19. stair supplies linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  20. Ban Gioc Tours linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  21. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  22. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  23. Anti Slip Water Safe linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  24. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  25. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  26. #spiritualism linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  27. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  28. dipped strawberries linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  29. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  30. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  31. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  32. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  33. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  34. app for pc linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  35. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  36. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  37. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  38. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  39. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  40. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  41. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  42. pc games download linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  43. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  44. Armani suites linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  45. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  46. non slip tape linked here

    [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  47. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  48. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  49. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

  50. [... Every now and then I like to code something just for the fun of seeing what I can create. Recently I've been working on a 3D water sim in flash. ...]

Leave a Comment