Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#ActualNikko_Bertoa

Posted 03 June 2014 - 09:06 AM

Hi Jason

 

I am using 2 ID3D11Buffer where I store information for all the particles (positions and velocities). Particles are living forever, they are created once.

 

Those buffers are binded through an Unordered Resource View to Compute Shader and through a Shader Resource View to Vertex Shader.

 

I use a Draw call with the number of particles. SV_VertexID is used in the shader to identify what particle should I process in a Vertex Shader in particular.

 

Particles are represented as points and expanded in a quad that face the camera, inside Geometry Shader.

 

 

I plan to use Append/Consume buffer in the future to create/destroy particles dinamically

 

 

Thanks!


#1Nikko_Bertoa

Posted 03 June 2014 - 09:05 AM

Hi Jason

 

I am using 2 ID3D11Buffer where I store information for all the particles (positions and velocities). Particles are living forever, they are created once.

 

Those buffers are binded through an Unordered Resource View to Compute Shader and through a Shader Resource View to Vertex Shader.

 

I use a Draw call with the number of particles. SV_VertexID is used in the shader to identify what particle should I process in a Vertex Shader in particular.

 

Particles are represented as points and expanded in a quad that face the camera, inside Geometry Shader.

 

 

I plan to use Appned/Consume buffer in the future to create/destroy particles dinamically


PARTNERS