All Versions
3
Latest Version
Avg Release Cycle
109 days
Latest Release
3803 days ago

Changelog History

  • v1.1.0 Changes

    July 16, 2014
    Overview

    ๐Ÿš€ The 1.1.0 release of LiquidFun adds support for new platforms, speeds-up
    the simulation, and documents the particle simulation algorithm with a fun,
    visual presentation. Some highlights:

    • ๐Ÿ‘ iOS support.
    • ๐Ÿ‘ JavaScript support via Emscripten.
    • ๐Ÿ‘Œ Improved Java support via more SWIG bindings.
    • ๐Ÿ“„ An Inside LiquidFun presentation explaining the particle simulation
      algorithm.
    • ARM optimizations using NEON.
    • Stability and collision improvements to the particle simulation.
    • More ways to inspect particle contacts.
    • ๐Ÿ“š A LiquidFun logo to use in your splash screens and documentation, if you
      like.

    ๐Ÿš€ The API Modifications are minimal in this release,
    โฌ†๏ธ but please review them carefully before upgrading your project.

    ๐Ÿง LiquidFun now supports Mac, Windows, Linux, Android, iOS, and browsers. Note
    that LiquidFun code is portable C++98, so you should be able to compile it for
    other platforms too.

    Your program can use LiquidFun if it is written in C++, Java, or JavaScript.

    ๐Ÿš€ LiquidFun 1.1.0 is based on Box2D revision 280, the 2.3.0 release of
    Box2D.

    ๐Ÿ†• New Features
    • ๐Ÿ‘€ Translated LiquidFun into JavaScript using Emscripten. Please see Box2D/lfjs
      โœ… for the JavaScript bindings and a JavaScript version of the Testbed.
    • โž• Added iOS XCode projects for the Testbed application and EyeCandy demo.
    • โž• Added b2ParticleSystem::SplitParticleGroup, which finds disjoint blobs of
      particles, and puts each into its own b2ParticleGroup.
    • โž• Added several accessor functions that use only int32s, float32s, and void
      pointers. These accessors are wrapped in the
      LIQUIDFUN_EXTERNAL_LANGUAGE_API preprocessor define. They enable binding
      with other languages--for example, via SWIG.
    • Particle indices can be represented with 16-bits instead of 32-bits. This
      is a nice optimization if you know you will have less than 32k particles
      per simulation.
    • โšก๏ธ b2ParticleSimulation::UpdateContacts has been rewritten to take advantage
      of NEON SIMD. The original implementation remains, for reference, and for
      ๐Ÿ‘ platforms that do not support NEON SIMD. The NEON SIMD version requires
      16-bit particle indices.
    API Modifications
    • b2ParticleContact's members are now accessed via Get and Set functions.
    • b2ParticleSystemDef now has members for strictContactCheck, density,
      gravityScale, radius, and maxCount. You can still set these values after
      b2ParticleSystem creation, however, for example via
      b2ParticleSystem::SetDensity.
    Other Changes
    • โž• Added b2ParticleSystem::GetAllParticleFlags,
      b2ParticleSystem::GetAllGroupFlags, and
      b2ParticleGroup::GetAllParticleFlags, which OR-together all the flags in
      a particle system or group.
    • ๐Ÿ”ฆ Expose the contact weight buffer. The weight represents how closely two
      particles overlap.
    • ๐Ÿ”ฆ Expose particle pairs and triads for reading. These arrays indicate which
      particles are interacting.
    • โž• Added b2ParticleGroup::GetLinearVelocityFromWorldPoint, which returns the
      average velocity of a particle group with respect to a position. The
      position is used to calculate the angular velocity of the group.
    • โž• Added b2World::CalculateReasonableParticleIterations to give a good
      estimate of the number of particle iterations you should pass into
      b2World::Step.
  • v1.0.0 Changes

    March 18, 2014
    Overview

    ๐Ÿš€ The 1.0.0 release of LiquidFun introduces a number of new features to the
    API described below. Some of the highlights
    are:

    • Multiple particle systems.
    • ๐Ÿ†• New particle behaviors: barrier, static-pressure, and repulsive.
    • Particle lifetimes.
    • Detection of stuck particles.
    • The ability to apply forces and impulses to particles.
    • ๐Ÿ‘ Java support via SWIG.
    • โœ… A host of new demos: inside the existing Testbed application, and gorgeous
      ๐Ÿ†• new "EyeCandy" demo for Android.

    ๐Ÿš€ Users of 0.9.0 should carefully read through the
    API Modifications section to understand what they
    โœ… need to change to get their existing applications to work with the latest
    ๐Ÿš€ release of LiquidFun.

    ๐Ÿ†• New Features
    • โž• Added option to substep particle simulation independently of b2World.
    • โž• Added barrier particles which can be used to prevent particle tunneling
      due to large particle velocities or simulation steps.
    • โž• Added static pressure particles to reduce compression of fluids.
    • โž• Added repulsive particles to separate particle groups from each other.
    • โž• Added support for multiple independent particle systems.
    • โž• Added option to create particles in an existing particle group.
    • โž• Added option to detect stuck particles.
    • โž• Added option to pause particle simulations. Paused simluations don't
      consume cycles in b2World::Step.
    • โž• Added option to enable a more strict check for Particle/Body interactions
      in cases where complex world geometry may cause false positive contacts.
    • โž• Added option to call a contact listener or filter on particle / fixture
      or particle / particle interactions.
    • โž• Added the ability to apply forces and impulses to particles.
    • โž• Added "EyeCandy" sample to demonstrate different particle rendering methods
      on Android.
    • โž• Added "Sparky", "Sandbox" and "Soup Stirrer" tests to the Testbed example
      to demonstrate particle and rigid body interaction.
    • โž• Added "Ramp", "Pointy", and "AntiPointy" tests to the Testbed example to
      illustrate the difference with strict contact checking.
    • โž• Added "Maxwell" test to the Testbed to demonstrate the direct modification
      of particle velocities.
    • โž• Added "Fracker" test to demonstrate particle viscous fluids and particle
      destruction callbacks.
    • โž• Added "Multiple Systems" test to the Testbed to demonstrate multiple
      particle systems.
    • โž• Added Java Native Interface support via SWIG. It covers a subset of the
      API.
    • โž• Added the ability to pass a list of shapes to be passed in for
      particle-group creation.
    API Modifications
    • b2Draw::e_particleBit flag now enables/disables
      b2World::DrawDebugData() drawing the particle system.

    To render the particle system using b2World::DrawDebugData(), the
    b2Draw::e_particleBit flag must be set on the b2Draw object passed
    to b2World::SetDebugDraw(). It is possible to set flags on b2Draw
    objects using b2Draw::SetFlags().

    ๐Ÿš€ Release 0.9.0 unconditionally called b2Draw::DrawParticles() from
    b2World::DrawDebugData().

    • ๐Ÿง Building LiquidFun on Linux, using cmake -G"Unix Makefiles", now places
      ๐Ÿ— output files in a build type sub-directory.

    โœ… For example, the output executable of the Testbed example is now
    ๐Ÿš€ written to Box2D/Testbed/Release/Testbed when building using the Release
    ๐Ÿ”ง configuration.

    • Multiple independent particle systems can now exist, each with its own
      physical coefficients. Previously, only one particle system existed, and
      it always existed. Use b2World::CreateParticleSystem to create particle
      systems, and b2World::DestroyParticleSystem to destroy them.
    • b2DestructionListener::SayGoodbye, b2QueryCallback::ReportParticle, and
      b2RayCastCallback::ReportParticle each now takes a b2ParticleSystem pointer
      as its first parameter. This change is necessary since multiple particle
      systems can now exist.
    • ๐Ÿšš The particle system API has moved from b2World to b2ParticleSystem.
      For example, b2ParticleSystem::DestroyParticlesInShape replaces
      b2World::DestroyParticlesInShape. You can use
      b2World::CreateParticleSystem or b2World::GetParticleSystemList() to
      acquire references to b2ParticleSystem.
    • โœ‚ Removed "Particle" from many of the functions in the particle system API.
      The word is redundant now that the API is under b2ParticleSystem. The API
      now has the following naming convention:
    • Each function that takes a particle index or handle has a "Particle"
      component (e.g. "SetParticle").
    • Each function that operates on the entire system has no "Particle"
      component (e.g. "SetRadius").

      GetParticleMaxCount ==> GetMaxParticleCount
      SetParticleMaxCount ==> SetMaxParticleCount
      GetParticleDensity ==> GetDensity
      SetParticleDensity ==> SetDensity
      SetParticleGravityScale ==> SetGravityScale
      GetParticleGravityScale ==> GetGravityScale
      SetParticleDamping ==> SetDamping
      GetParticleDamping ==> GetDamping
      GetParticleStaticPressureIterations ==> GetStaticPressureIterations
      SetParticleStaticPressureIterations ==> SetStaticPressureIterations
      SetParticleRadius ==> SetRadius
      GetParticleRadius ==> GetRadius
      GetParticlePositionBuffer ==> GetPositionBuffer
      GetParticlePositionBuffer ==> GetPositionBuffer
      GetParticleVelocityBuffer ==> GetVelocityBuffer
      GetParticleVelocityBuffer ==> GetVelocityBuffer
      GetParticleColorBuffer ==> GetColorBuffer
      GetParticleColorBuffer ==> GetColorBuffer
      GetParticleGroupBuffer ==> GetGroupBuffer
      GetParticleGroupBuffer ==> GetGroupBuffer
      GetParticleUserDataBuffer ==> GetUserDataBuffer
      GetParticleUserDataBuffer ==> GetUserDataBuffer
      GetParticleFlagsBuffer ==> GetFlagsBuffer
      SetParticleFlagsBuffer ==> SetFlagsBuffer
      SetParticlePositionBuffer ==> SetPositionBuffer
      SetParticleVelocityBuffer ==> SetVelocityBuffer
      SetParticleColorBuffer ==> SetColorBuffer
      SetParticleUserDataBuffer ==> SetUserDataBuffer
      GetParticleContacts ==> GetContacts
      GetParticleContactCount ==> GetContactCount
      GetParticleBodyContacts ==> GetBodyContacts
      GetParticleBodyContactCount ==> GetBodyContactCount
      DestroyParticlesInGroup ==> DestroyParticles (moved to b2ParticleGroup)
      
    • ๐Ÿ“‡ Renamed b2ParticleFlag b2DestructionListener to
      b2DestructionListenerParticle to be consistent with other particle flag
      names.

    • ๐Ÿ‘ Better particle-behavior stability.

    Other Changes
    • โ†” Integrated Box2D 2.3.0 release from Box2D revision 280.
    • โฌ‡๏ธ Reduced the size of particles in Testbed particle tests to be consistent
      with the size of rigid bodies.
    • ๐Ÿ‘Œ Improved damping force to prevent particle explosions.
    • ๐Ÿ›  Fixed b2Timer bug that occurs when the usec component wraps.
    • โž• Added b2Stat to calculate min/max/mean of a set of samples, and
      โ†” integrated this functionality into Testbed to measure performance.
    • ๐Ÿ›  Fixed memory leaks of large blocks allocated by b2BlockAllocator.
    • ๐Ÿ›  Fixed incorrect stack-capacity calculation in b2VoronoiDiagram.
    • โž• Added operators to b2ParticleColor.
    • ๐Ÿ‘Œ Improved parameter and option selection in Testbed with the fullscreen UI.
    • โœ… Cleaned up statistics display in Testbed.
    • ๐Ÿ›  Fixed depth-buffer allocation when creating an empty particle group.
    • โž• Added build step to unit-test execution scripts.
    • โž• Added generation of code coverage report for unit-tests.
    • โž• Added a script to clean up temporary cmake files.
    • โš  Increased warning level and enabled conversion of warnings to errors.
    • โž• Added unit-test for b2IsValid().
    • โž• Added b2World::QueryShapeAABB() convenience function to query the world
      for objects in the AABB which encloses a shape.
    • Inlined some simple b2ParticleSystem and b2ParticleGroup functions.
    • ๐Ÿ‘ Allowed particle systems to be culled from b2World::QueryAABB and
      b2World::RayCast.
    • โž• Added callbacks so an application can override b2Alloc() and b2Free()
      without modifying the library.
    • โž• Added valgrind support to unit-test runner on Linux / OSX.
    • โž• Added cygwin wrapper script for build.bat and build_android.bat on Windows.
    • โž• Added option to archive build artifacts from build scripts.
    • ๐Ÿ”„ Changed Android C++ runtime library to gnustl_static.
  • v0.9.0 Changes

    December 10, 2013
    Overview

    ๐Ÿš€ The initial release of LiquidFun is available for download from the
    ๐Ÿš€ 0.9.0 release release page.

    ๐Ÿ†• New Features
    • Particle system added to Box2D.
    • Example applications ported to Android.
    API Modifications
    • ๐Ÿš€ No changes to the Box2D 2.3.0 pre-release API.
    Other Changes
    • โ†” Integrated Box2D 2.3.0 pre-release from Box2D revision 255
    • โœ… Unit tests implemented for the particle system.
    • โœ… Particle system tests added to the Testbed example application.
    • ๐Ÿ— Build-system support for Android.
    • ๐Ÿ“š Moved documentation to Markdown/HTML.