Jump to content
  • Advertisement
Sign in to follow this  
BasicMind

Blood Spatter Programming

This topic is 3069 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 mucking about with a top down shooter, I'd like to put some blood spatter, even better I'd like to make it persistent though out the game. I'm trying to figure out how best to approach this in the program. would creating an object for each splat be a wise thing? I was thinking that if I went down this line I could have 100 or so splats and when the pool was used up I could start reusing the oldest splats, however this would remove some persistence I guess. I guess this question would go for anything along these lines.

Share this post


Link to post
Share on other sites
Advertisement
You'll be either persistence-limited (object count) or possible level size-limited (size of render target surface). So you must choose which kind of limit you like more.

Share this post


Link to post
Share on other sites
If your map is small enough you could render to a texture probably. Creating a few 2048x2048 textures to cover the level then render the blood splats and other things to that would work. That would give you the ability to have unlimited blood splats. I'm sure there's even a way you could optimize it if your map was massive so that where blood splats are a texture is placed for a region to encompass multiple blood splats if most of the scene is without blood splats.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!