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:
@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. :)
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 6 months ago
@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_ALPHABLENDENABLE, 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 6 months ago
@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 6 months ago
@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. :)
Zeptoflop 6 months ago