From BlenderWiki

Jump to: navigation, search
Note: This is an archived version of the Blender Developer Wiki. The current and active wiki is available on wiki.blender.org.

Week 4

This week I refactored obstacle velocities and took care of some bugs. The Mantaflow drop generation function is still in development.

What's been done

  • I refactored the obstacle velocity function in Mantaflow. It's now a bit simpler: Instead of having to re-set obstacle velocities after every boundary condition call, they are now set inside the actual boundary function (Mantaflow: "setWallBcs()"). (rBb203980733ee)
  • There was a bug related to particle velocities. The problem was that I was only setting the "numParticles" field in the particle system file reading routine. It's apparently safer to also set this field when reading particle velocity files. Thanks for reporting this bug! (rB9cde58c2144f)
  • Obstacle velocities for liquids are disabled for now. The velocities themselves are not the problem. There was just some strange behaviour (see [1], thanks for reporting this!) going on that was caused by disabling the "fractions support" (mode that tracks fluid/obstacle interaction more precisely). Fractions support for obstacle velocities is nearly complete though. So it's not necessary to know what exactly caused these problems. Everything works fine when fractions are enabled. (I hope this explanation is not too confusing ... otherwise read link [1])

Next up

  • I am still working on the droplet generating functions in Mantaflow. Today I got some helpful advice from Nils on when to kill particles. Next week I'll implement these tips and try out the code directly inside Blender.
  • I have some uncommitted changes for the "Fluid particle" UI tab. I'll try to hook this up to the particle generation code from Mantaflow (e.g. toggle drop generation, set velocity threshold, etc.)

Questions

  • No

References

  1. https://github.com/sebbas/BlenderMantaflow/issues/6