- Home /
Elementes like in "from dust"
I just played "From Dust" where they have really good water particle system. I wonder how to do this in unity, since the particle system in unity is a very simple & basic one.
I would want a particle system like in 3ds max or maya, but of course fitted to work in games.
Is there any approach in doing such things in Unity?
It would be cool is there is a container with water like a barrel, you shoot on it and water comes out of the holes. You run against it and it falls and all the water is flowing out.
So how to do this in unity? :)
unity particle system is not basic xD it's actually pretty good u could achieve somethin like FromDust if u script some stuff. u just need to upgrade the particle system, with lots of math and logic.
and about the barrel u can achieve that with what unity already offers.
for the barrel you could just instantiate a prefab on hit position of water co$$anonymous$$g out, and scale the water in the barrel from its origin point at the bottom of the barrel.
then i suppose you could also say if hit is above water amount then don't do anything just play a different more tinny sound but still slightly dampened by water. maybe use a trigger around water just co$$anonymous$$g outside the barrel to check hight.
Answer by Mortoc · Aug 02, 2012 at 06:18 PM
There's a couple different things going on in From Dust, but I think the basic thing you're looking for is the Marching Polyhedrons algorithm. It's used to generate a 'shell mesh' over a point cloud. You can animate the point cloud however you want. If you want flowing liquid, you'd use something like the navier-stokes equations for simulating fluids.
This stuff is all pretty math heavy theory, but it's good to know the basics. To implement it you'd want to go for one of the papers that SIGGRAPH puts out each year on realtime fluids.
Your answer
Follow this Question
Related Questions
Liquid Particle Physics Rendering 1 Answer
Water Splash Screen Effect on Camera 0 Answers
How to do particle collision 2 Answers
Can I detect collision without preventing movement? 1 Answer
How to create real water? 5 Answers