Added: 1 year ago
From: Zeptoflop
Views: 371
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (4)

Sign In or Sign Up now to post a comment!
  • 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 );

  • @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....

  • @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. :)

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