Direct3D Particle System Testing

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
371 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 6, 2011

Playing around with a particle system that I made during the fall of 2010 using C++ and DirectX 9.0c. Fraps unfortunately made the frame rate slow down and fluctuate (usually stable at 60 Hz).

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (Zeptoflop)

  • Nice! I have yet to master glowing / translucent point sprites like that with DX9c, how did you do it? I really want to make an effect as seen in the video /watch?v=Zst40bqW1P8 . Any tips?

  • @khyar Hey! For a glowing effect what you want is additive blending. In the program running here I believe I use these render states when rendering the particles:

    SetRenderState( D3DRENDERSTATE_ALPHABLENDENABL­E, TRUE );

    SetRenderState( D3DRS_FILLMODE, D3DFILL_POINT );

    SetRenderState( D3DRS_LIGHTING, FALSE );

    SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA );

    SetRenderState( D3DRS_DESTBLEND, D3DBLEND_ONE );

    SetRenderState( D3DRS_ZWRITEENABLE, FALSE );

  • @khyar Note that I disable the Z-buffer so of course things would not look very pleasing if you were to have additional geometry in your scene, and enabling Z-buffer writes and sorting the particles would be needed in such a case, but judging by your "Tree of Life" video it seems like you are well aware of this. :)

see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • @Zeptoflop Wohoo! Thanks a lot. I immersed myself in a 100x100x100 cube with 10000 randomly distributed rainbow coloured, alpha blended, point sprites and then spun it around. Very pretty and relaxing ;-))))) Maybe I will post a video....

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more