Menu

#235 Add velocity stretch to particles.

open
nobody
None
5
2014-04-10
2012-03-13
All8Up
No

In addition to the rotation ability for particles, this adds the ability to stretch particles based on their velocity in screen space and orient them along the velocity.

Discussion

  • All8Up

    All8Up - 2012-03-13

    Forgot the serialization again, fixed.

     
  • All8Up

    All8Up - 2012-03-13

    Also forgot to put in view vector alignment attenuation.

     
  • All8Up

    All8Up - 2012-03-14

    This is the full patch which includes a very large set of changes and a modified per pixel lighting example as a testbed example.

     
  • All8Up

    All8Up - 2012-03-14
     
  • Michael Zeilfelder

    Sorry, I've changed the particlescenenode implementation now somewhat without applying your patch first. That does not mean that I don't like the patch - it looks very good and useful! The reasons I didn't get to it were:
    - It needs a test first for the new vector rotation (won't need long to write, I just have not enough time for now)
    - I think we should implement stuff like point-particles first before thinking about other rotations as this things affect each other.
    - Your implementation of CParticleEmitter is really good and probably the way I would write it in a new engine. But Irrlicht-style in similar situations (videodriver, irrlicht-device) is to use multiple-inheritance. So to keep the engine-code easy readable we should continue to use the same style instead of templates in such classes.

    No need to update the patch - I think when one of use continues working on particles it's still easy to adapt your patch the way it is now.

     

Log in to post a comment.