0


I'm researching the following problem:

Let's say I have a glass of some fluid (water for example). The fluid is completely transparent and I don't have to render it at all.
However a ink drop is dropped in the glass and it's spreading in the water. The whole thing should be 3D and user should be able to rotate the camera and see the spreading in real time.

I have researched a couple of way to approach this problem, but it turned out that most of them are dead end. Тhe only approach that has some success was to use enormous amount of particles which form the skeleton of the "inc spread". The physics simulation of the process of spreading is far form perfect, but let's say it's not a problem. The problem is the rendering part.

As far as I know I'll not be able to speed up the z-sort process greatly by using the flash GPU acceleration, because the upload of those particles to the GPU memory every frame is quite slow? Can somebody confirm that please?

The other thing that I'm struggling with is the final render. I tried a whole bunch of filters in combination with "post process" techniques to create smooth lines and gradients between the dots, but the result it terrible. If somebody know some article that could help me with that I'll be very grateful.

Overall if there is another viable approach tho the problem please let me know.

Thanks in advance.
Cheers.

JeffryHouser
  • 39,401
  • 4
  • 38
  • 59
Chavdar Slavov
  • 865
  • 8
  • 22
  • I'm not sure if I'd call this question too localized or too broad; or perhaps a mix of the two. StackOverflow is at its best when you try to get answers to specific programming questions. This is more of a "how do I" sort of question; so I'm not sure you'll get a good answer. Posting at the Adobe Forums may be better. Also; I removed the Flex tag as this has nothing to do w/ the Flex UI framework. – JeffryHouser Mar 06 '13 at 16:43
  • Thanks, I'll take that in consideration next time. – Chavdar Slavov Mar 07 '13 at 08:15

1 Answers1

0

You should probably look at Computational Fluid Dynamics in general to get a basic understanding. This should make it easy to play with actionscript implementations like Eugene's Fluid Solver, either in 2D or 3D, tweaking fluid properties to get the look and feel you're after

inspirit.ru Fluids Solver

George Profenza
  • 50,687
  • 19
  • 144
  • 218
  • I am familiar with the "Computational Fluid Dynamics", as I mentioned the physics are not the problem. The main problem is the rendering of nice ink like patterns. Thanks for the help anyway. Is there a way to "close" this thread because as it was mentioned, the question is too broad and I doubt that anyone could help me. – Chavdar Slavov Mar 07 '13 at 08:23