• entries
    205
  • comments
    228
  • views
    112681

A can see particles!

Sign in to follow this  
Mike Bossy

81 views

Well my theory about having more time to code isn't coming true very fast. My mother in law is visiting right now which means more entertaining time and less coding. I am slowly getting into my new sleep routine thanks to the help of some robitussin to help my lingering cold. :)

I finally got particles up and running in my engine. I derived them from my textured quad class so you can apply any texture you want, tint, size, scale, rotate, etc. Each particle also has a custom aging function that allows you to change it's colour, alpha fade, etc.

Since particles are just regular game objects they are allowed to have children. This opens up possibilities where particles can spawn other particles fairly easily. This makes effects like shrapnel, sparks, etc easy to implement. You still need to do things fairly smartly so you're not actually creating new particles on the fly causing a bunch of memory allocs but that shouldn't be too tough to deal with.

The next step I want to do is to allow you to optionally hook particles into the physics system. This would allow smoke to float away, etc. Performance will be the big issue around how many particles I can have in the physics system at the same time. Rendering perf shouldn't be that big of a deal since I'm just dealing with quads and I already do intelligent batching in my engine.

I'll try to throw together a demo in the next couple of days. Maybe an ugly fireworks display?
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now