Change Log

Top  Previous  Next

Version 2.5.0

- Fixed Android bug where IndexOutOfRangeException would be thrown on some Android devices, depending on their hardware capabilities.

- Added SetEnabledStateForAllParticleSystems(), SetVisibleStateForAllParticleSystems(), and SetEnabledAndVisibleStatesForAllParticleSystems() functions to the ParticleSystemManager class.

- Added 2 more helper functions for updating particle transparency, UpdateParticleTransparencyWithQuickFadeIn and UpdateParticleTransparencyWithQuickFadeOut.

- Added new DisabledWithEarlyRecycling memory management mode to allow recycling the oldest active particle when we want to add a new particle, but have no more memory available for it.

- Added new DPSFDebugWarningExceptions that are only thrown when debugging and are meant to help users catch when they do not have DPSF setup ideally.

- Changed the provided Default Particle System classes to be 'abstract', as they are meant to be inherited and not instanced directly.

- Added more functionality to the MouseManager to easily detect when a mouse button is or was just pressed/released.

- Created iOS friendly DPSF assemblies, but still not fully tested due to lack of Mac hardware required for testing.

- Fixed performance bug in ParticleEmitterCollection, as it was generating garbage for the Garbage Collector every time the Emitters and IDs properties were accessed.


Possible Breaking Changes:

- In the ParticleEmitterCollection class, changed the Emitters property to return an ICollection instead of an IList, and the IDs property to return a ReadOnlyCollection instead of an IList.


Version 2.4.1

- Fixed blocking Xbox bug introduced in v2.3.0 where a divide by zero exception was always thrown when running on the Xbox, making DPSF unusable on the Xbox.

- Now also build the DPSFWinRTAsDrawableGameComponent.dll.


Version 2.4.0

- Got DPSF working properly on Android using MonoGame and added DPSF Demo for Mono for Android project to show DPSF working on Android.

- Got DPSF working properly on WinRT using MonoGame and added DPSF Demo for WinRT project to show DPSF working on WinRT.

- Fixed the DefaultSpriteParticleSystem to use BlendState.NonPremultipled by default so that transparency is drawn.

- Added try-catch blocks to prevent DPSF from throwing exceptions when moving app window between monitors.

- Fixed bug where ParticleEmitterCollection's AllEmittersRemoved event was not firing.

- Updated the Trail particle system included in the DPSF Demo a bit.


Possible Breaking Changes (see Updating Your Existing Particle Systems To Newer Versions of DPSF - DPSF 2.3.0 to 2.4.0 section for solutions):

- Changed the ParticleEmitterCollection's Add() function to return back the new ParticleEmitter, rather than the new ParticleEmitter's ID.

- Fixed the DefaultSpriteParticleSystem to use BlendState.NonPremultipled by default so that transparency is drawn.

- Renamed IndexBufferReach to IndexBufferShort, since sometimes we need to use the short Index Buffer with the HiDef profile (e.g. with MonoGame for WinRT).

- Should now check the protected property IsUsingIntegerIndexBuffer to determine if the IndexBuffer or IndexBufferShort should be used (used to check "this.GraphicsDevice.GraphicsProfile == GraphicsProfile.HiDef").


Version 2.3.0

- Fixed bug in Sprite Particle System Templates and Sprite particle systems where they wouldn't use the SpriteBatch passed into the AutoInitialize() function.

- Added new ExplosionDebrisSpriteParticleSystem class, that shows the implementation differences between a 3D and 2D Sprite Particle System.

- Exposed the SpriteBatch object on the particle systems so that it can be retrieved.

- Added TotalNumberOfActiveParticles, TotalNumberOfParticlesAllocatedInMemory, and TotalNumberOfParticlesBeingDrawn virtual properties that can be overridden to return back more accurate numbers for particle systems that contain other particles systems.

- Refactored the DPSF Demo particle systems into wrapper classes that implement the new IWrapDPSFDemoParticleSystems interface to make it easier to add new DPSF Demo particle systems and clean up the GameMain.cs file so it is easier to understand.

- Refactored the DPSF Demo a lot, breaking the 5000+ line file into several smaller files and creating more reusable components (e.g. input managers, camera, DemoBase.cs). Created stand-alone BasicVirtualEnvironment project that houses all of these reusable components.

- Moved functionality to Linearly Interpolate (Lerp) the Emitter's position and orientation from the Update() function into new AddParticles() functions, so users can now        have their particle's Lerp'd when manually adding particles without the emitter.

- Changed DPSF to throw custom DPSF Exceptions to make them easy to distinguish from other exceptions thrown by a users application.

- Added an Emitters collection to the particle systems, and the Emitter variable now always simply points to one of the emitters in the collection. This allows for particle systems to easily use multiple emitters.

- Added new MultipleEmittersParticleSystem particle system class that shows how to use multiple emitters in a particle system class.

- Added a NumberOfParticlesEmitted property to the Emitter class that keeps track of how many particles an individual emitter has added to a particle system.

- Updated documentation on some of the old tutorials and Optimizations section a bit.

- Added initial support for "Mono for Android" with a new DLL file (still working some bugs out though).

- Fixed bugs to make particle system properly serialize and deserialize.

- Added feature to skip the splash screen (by default) when debugging so developers don't have to see it every time they run their app.


Possible Breaking Changes (see Updating Your Existing Particle Systems To Newer Versions of DPSF - DPSF 2.2.2 to 2.3.0 section for solutions):

- Removed the mcRandomNumber particle system class variable. Everything should now just use the RandomNumber public property.

- Changed namespace of particle systems in the DPSF Demo from DPSF.ParticleSystems to DPSF_Demo.ParticleSystems.

- Moved the LerpEmittersPositionAndOrientation and LerpEmittersPositionAndOrientationOnNextUpdate properties from the particle system into the ParticleEmitter class, so that this can be configured for each emitter individually.

- Changed the MagnetList property from a LinkedList<DefaultParticleSystemMagnet> to a List<DefaultParticleSystemMagnet>.

- Changed IDPSFParticleVertex to implement Microsoft.XNA.Framework.Graphics.IVertexType and removed the old IDPSFParticleVertex enforcements.

- Changed the DPSF Splash Screen particle system class to be in the DPSF.SplashScreen namespace.


Version 2.2.2

- Changed EULA to make using the DPSF Splash Screen optional.  Now as long as DPSF is mentioned somewhere in the application (not necessarily through a splash screen) that is acceptable.


Version 2.2.1

- Fixed bug with accepting input during the splash screen which resulted in a null ref exception.

- Now allow user input to skip the splash screen in the Windows Phone DPSF Demo.

- Fixed the DPSF Demo feature to not clear the screen every frame (F5).

- Fixed the DPSF Demo feature to draw static particles (F6).

- Fixed the DPSF Demo feature to create animated gifs and tilesets from particle systems (F8).


Version 2.2.0

- Changed all particle systems to use the built-in XNA 4 effects by default, rather than the DPSFDefaultEffect, so they are all now Reach compatible (i.e. Windows Phone 7 compatible).

- Substantial improvement to the performance of Quad particle systems, so it is very comparable with the Sprite3DBillboard particle systems now.

- Changed default Sampler State to LinearClamp, as PointClamp was causing aliasing problems with new effect types.

- Updated the DPSF Splash Screen to make it Reach compatible.

- Fixed bug in Particle System Manager where exception would be thrown by the manager if a particle system removed itself from the manager from within its Update() function.

- Fixed bug where Emitters would still emit particles when their Enabled property was set to false.

- Since we now use the built-in XNA 4 effects by default, added a ColorAsPremultiplied property to the particle base class, since the built-in effects expect premultiplied colors.


Version 2.1.0

- Made DPSF compatible with the Reach profile configuration.

- Added new Sprite 3D Billboard particle system type which can be up to 50% faster than using billboarded Textured Quads.

- Converted most particle systems over to use the new Sprite 3D Billboard particle systems.

- Changed particle system's IsInitialized() function into IsInitialized boolean property.

- Fixed bug where particles wouldn't linearly interpolate (Lerp) between the emitter's previous and current position and orientation when it was moved manually (i.e. not with it's own acceleration/velocity properties).

- Added particle system properties LerpEmittersPositionAndOrientation and LerpEmittersPositionAndOrientationOnNextUpdate to control emitter Lerping.

- Added static DPSFDefaultSettings class to be used to set the default values to use for all DPSF particle systems when they are initialized.

- Added CopyFrom() function and Copy constructor to Emitter and AutoMemoryManagerSettings classes.

- Fixed bug in ParticleSystemManager's CopyFrom() function.

- Added PerformanceProfiling variables to the DPSF particle system class and Particle System Manager class that allow you to see how long it takes to perform an Update() or Draw() function call.

- Added new Trail, FireSprite, and MultipleParticleImagesSprite particle systems, and added templates for the Sprite 3D Billboard particle systems as well.

- Changed default SpriteSortMode from FrontToBack to Deferred.

- Fixed bug to treat the SpriteSortMode.Immediate mode like the other modes, since XNA 4 now supports using effects with any of the Sprite Sort Modes.

- Added FPSUpdated event to the static FPS class that fires every second after the FPS has been updated.

- Added ability to view performance stats in the DPSF Demo by pressing the F10 key.


Version 2.0.1

- Fixed bug causing incompatible render settings run-time errors to be thrown.

- Added logic to more properly handle drawing too many particles on the Xbox 360, instead of throwing an exception.

- Fixed bug in DPSF Demo where it was still checking to make sure XNA 3.1 was installed and throwing an error if it wasn't.

- Gave assemblies a strong name.

- Added performance optimizations.

- Made DSPFDefaultEffect strongly typed, rather than just a generic Effect.

- Added virtual function SetCameraPosition() that may be overridden when not inheriting from the default DPSF particle system classes and will still work with the ParticleSystemManager.SetCameraPositionForAllParticleSystems() function.



- Made DPSF compatible with XNA GameStudio 4.0, including the Windows Phone 7 (using a 2D Sprite particle system only for now).

- Removed Pixel and Point Sprite particle system types, as they are no longer supported in XNA 4.0. You will need to convert any existing PointSpriteParticleSystem classes to be TexturedQuadParticleSystem classes, and add the EverytimeEvent "UpdateParticleToFaceTheCamera" to the particle system.

- Added WorldViewProjection property to return the result of multiplying the World, View, and Projection matrices.

- Sprite particle systems no longer default to using the custom DPSF effect (this allows it to run on the Windows Phone 7 without any changes). The custom DPSF effect can still be applied though by calling the function "SetEffectAndTechnique(DPSFDefaultEffect, DPSFDefaultEffectTechniques.Sprites.ToString());".

- Removed the InitializeRenderState() and ResetRenderState() virtual functions and replaced them with an InitializeRenderProperties() virtual function.

- Added DistanceFromCameraSquared property to all of the Quad particles.

- Added ParticleEvent "UpdateParticleDistanceFromCameraSquared" and ParticleSystemEvent "UpdateParticleSystemToSortParticlesByDistanceFromCamera" to sort particles based on their distance from the camera. These must be used if drawing textures with opaque and semi-transparent portions, where you don't want further away particles to be drawn overtop of closer particles.

- Wrapped all [Serializable] attributes in "if (WINDOWS)" conditional compilation statements, as binary serialization is not supported on the Xbox or Windows Phone.



- Changed install directory to be "DPSF (XNA 3.1)", rather than "DPSF" so that XNA 4 DPSF version can install to "DPSF".

- Fixed minor memory leak in the Particle System Manager when removing particle systems.

- SpriteBatchSettings now throws exception if trying to access it when not using a Sprite particle system.

- Added SpriteBatch parameter to the InitializeSpriteParticleSystem() functions to allow users to draw particle systems using their own SpriteBatches, instead of every particle system using its own. Also included a new UsingExternalSpriteBatchToDrawParticles property that tells at run-time if the particle system uses its own SpriteBatch or not.

- Added SpriteBatch parameter to the AutoInitialize() function to easily pass in an external Sprite Batch to use to draw Sprite particle systems.



- Fixed bug in Quad and Textured Quad particle systems where the texture was being drawn in reverse (upside down and mirrored).



- Fixed enormous amount of garbage being created when using a Sprite type particle system, causing the garbage collector to run very often.



- Added SourceToTargetVector() and SourceToTargetDirection() functions to DPSFHelper.

- Added SetCameraPositionForAllParticleSystems() function to the Particle System Manager class.

- Reduced memory footprint of the Draw() function.

- Fixed exceptions that would be thrown when a particle system Destroyed itself.

- Added Particle Update functions to the Quad particle systems to constrain a particle around a specific axis (i.e. X, Y, or Z).



- Added check to make sure .NET Framework 3.5 or greater and XNA 3.1 are installed on the client's machine before running the DPSF Demo, and now displays a nice warning message if they are not installed.

- Catch and throw new exception when calling SetTexture() in the case that the texture you are loading has already been Dispose()'d.

- Fixed bug in Default Quad particle systems where particles with a size less than 2 would not be displayed.

- Now throw descriptive exceptions when properties try to be used before the particle system has been initialized.

- Added Size, StartSize, and EndSize properties to the Default Sprite and Quad Particles, which simply set the Width and Height properties.

- Updated help documentation a bit.

- Plastered the [Serializable] attribute everywhere to make DPSF serializable.

- Now throw more descriptive exceptions from the Particle System Manager class.

- Added DPSFDefaultEffectTechniques enumeration which specifies all of the available Techniques for the DPSFDefaultEffect.

- Added extra functions to the default particles.

- Fixed bug in ParticleSystemManager.RemoveAllParticleSystems() function that would cause an invalid index exception to be thrown.

- Fixed bug in ParticleSystemManager.DrawAllParticleSystems() function to draw particle systems in the correct order.

- Made all Particle and ParticleSystem Update Functions protected instead of public to promote particle system encapsulation and removed extra exposed functions that should not be used from users.

- Added explosion particle systems to the DPSF Demo.

- Included the DPSFDefaults.cs file used by DPSF for others to modify if wanted and to learn from.



- Added a FPSLogger class to the FPS.cs file included in the DPSF Demo project. This allows the FPS to be logged to a file.

- Added overloaded Initialize...ParticleSystem() functions to allow a Texture2D to be specified instead of a texture asset name string.

- Changed the Magnets class, adding MagnetPoint, MagnetLine, MagnetLineSegment, and MagnetPlane classes.

- Added tutorial source code showing how to use magnets (magnet tutorial document not available yet though).

- Added DefaultSpriteTextureCoordinatesParticleSystem and DefaultTexturedQuadTextureCoordinatesParticleSystem classes for when texture coordinates are required (not for animated particles), as well as the associated Particle classes and Particle Vertex structs.

- Added DefaultPointSpriteTextureCoordinatesParticleSystem, DefaultPointSpriteTextureCoordinatesNoRotationParticleSystem, and DefaultPointSpriteTextureCoordinatesNoColorParticleSystem classes, as well as associated Particle classes, Particle Vertex structs, and Effect file techniques.  Three classes are provided because the the NoRotation and NoColor classes run considerably faster than the DefaultPointSpriteTextureCoordinatesParticleSystem, as extra operations must be performed in the shaders to support both Color and Rotation when also using Texture Coordinates for Point Sprites. So if Texture Coordinates are required, but not both Color (including transparency) and Rotation, it is better to use the corresponding NoRotation or NoColor particle system classes.

- Added DefaultAnimatedPointSpriteParticleSystem, DefaultAnimatedPointSpriteNoRotationParticleSystem, and DefaultAnimatedPointSpriteNoColorParticleSystem classes, as well as associated Particle classes and Particle Vertex structs.

- Added MultipleParticleImagePS particle system to DPSF demo to show how one particle system can be used to display many different particle images.



- Updated to be compatible with XNA Game Studio 3.1

- Added inner exception output to exceptions thrown when initializing particle systems.

- Changed the SherePS particle system to use the Particle texture.

- Fixed formula for calculating the row, column, and layer a particle is at in the Grid particle systems.

- Now throws an exception when trying to Draw on the XBox 360 with a vertex buffer that is too large.



- Fixed bug in DPSFHelper.RandomNormalizedVector() function where it only returned positive vectors.

- Renamed Emitter.EmitParticles property to Emitter.EmitParticlesAutomatically.

- Added Emitter.Enabled property.

- Added Emitter.BurstParticles and Emitter.BurstTime properties to release particles in bursts.

- Renamed UpdateParticleSystemTurnEmitterOn/Off() functions to UpdateParticleSystemEmitParticlesAutomaticallyOn/Off().

- Added UpdateParticleSystemEnableEmitter() and UpdateParticleSystemDisableEmitter() particle system update functions to the Default classes.

- Fixed bug where an "index out of range" exception would be thrown when removing Events from within an Event function.

- Renamed MultipleChangeParticleSystem.cs to SquarePatternParticleSystem.cs and changed some of its functions.

- Formatted a lot of the XML documentation better.

- Fixed bug in DPSFDefaultEffect.fx which caused Point Sprites to be displayed smaller when their rotation was zero.

- Created first 5 tutorials in the Help Documentation.



- Changed what happens a little bit when a particle is in the exact same position as a magnet affecting it, so now the particle is only pushed in a random direction if the magnet is repelling it (not attracting it).

- Renamed the DefaultParticleSystemMagnet.DistanceFunctions enumeration's value "SameForceAtAllDistances" to "Constant".

- Added Grid particle system to Demo.

- Added Sphere particle system to Demo.

- Fixed bug where exception would be thrown when reducing the NumberOfParticlesAllocatedInMemory to less than what was currently in the particle system already.

- Added global variable miPARTICLE_SYSTEM_UPDATES_PER_SECOND to GameMain.cs to control how often the particle systems are updated.

- Fixed bug in the ParticleSystemManager.AutoInitializeAllParticleSystems() function where not all Particle Systems were being initialized.

- Added DPSFHelper.RandomNumberBetween(fValue1, fValue2) function for returning random numbers in a given range.

- Fixed bug to in the Default Point Sprite and Quad Particle System classes and Templates to reset the RenderState's AlphaBlendEnable and AlphaTestEnable properties to false after Draw() is called.

- Added SimulationSpeed and UpdatesPerSecond properties to the individual particle systems, and changing the Particle System Manager's SimulationSpeed / UpdatesPerSecond now sets the individual particle systems' properties.

- Changed the SimulationSpeed and UpdatesPerSecond properties to work the same when inheriting from DrawableGameComponent or not.

- Added ParticleSystemManagerToCopyPropertiesFrom property to the particle systems (Copies SimulationSpeed and UpdatesPerSecond).

- Added a NoDisplay Particle Type that can offer better performance for particle systems that do not need to be visualized (i.e. drawn to the screen), such as for some research applications or when using a DPSF Particle System as an internal data structure.

- Added a RandomNumbers class that inherits the Random class and adds more functionality.

- Replaced the PointOnVertical/HorizontalCircle() functions in DPSFHelper with more generic PointOnSphere() functions.



- Fixed bug where a particle would be given an invalid position when it was in the exact same position as a magnet affecting it.

- Added global boolean values to GameMain.cs to turn building an Animated GIF and a Tile Set Image on/off when building images from an animation.



- Added the SpriteBatchSettings and AutoMemoryManagerSettings properties to the IDPSFParticleSystem interface so they are more accessible.

- Added the ability to set all of the Sprite particle systems' Transformation Matrix property from the Particle System Manager.

- When multiple particles are added within the same frame, their Elapsed Time's are linearly interpolated so that it appears that the particles were added smoothly between frames.

- Added Sparkler particle system.

- Changed default installation path from C:\Program Files\DPSF to C:\DPSF.



- Renamed the DPSFParticle classes function name from UpdateAutomaticVariables() to UpdateElapsedTimeVariables().

- Renamed the default vertex update function from UpdateParticleVertex() to UpdateVertexProperties().

- Renamed the DPSFParticle classes virtual function name from CopyFromParticle() to CopyFrom().

- Updated DPSF Demo to place the text in a different position so that it is visible on the Xbox 360.



- Fixed display issues with Sprites and Textured Quads on the Xbox 360 when using the DPSF Default Effect.

- Removed OldPosition and OldOrientation variables from the ParticleEmitter class, as they were unnecessary.

- Updated the DPSF Demo and installer to include a .sln file, which can be run on Windows and the Xbox 360.



- This is the first official release of DPSF.