Jump to content
  • Advertisement
Sign in to follow this  
Toolmaker

2D Particle Engines?

This topic is 5410 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm currently developing a simple 2D engine, and as part of it, I want to create a particle engine. However, I have no idea where to start. Does anyone have a link for me to a good tutorial that explains a simple particle engine, preferably using the ID3DXSPRITE interface in D3D9. Toolmaker

Share this post


Link to post
Share on other sites
Advertisement
Unfortunately this client can't paste well...

I have a small 2d particle engine working using DX [but not ID3DXSPRITE]. The way I have mine setup is to store with each particle a position, velocity, color... essentially any information that a particle needs to know about. The actual particle system object knows any information common to all the particles. For me, that's a common texture to apply to all of them, and a list of operations to perform on each of the particles per time [where time is whatever fixed interval your animations/physics is locked to.]

Hopefully that gives you a little bump in the right direction, and remember that there's no real 'right' way to do it. Just play around with moving the sprites around the screen and doing things with them.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!