The current version allows you to see the blood, muzzleflashes and all the rest of the effects in the game properly. Also we have added an HQ bloom system...
Zombie Hunter is a top-down shooter with unique mechanics. You play as a zombie hunter for hire and your main goal is to protect your client. Your boss will pay you for each walker you shoot and sell you powerful guns once you get the money. Choose you guns wisely as they, alongside your ability to use them, will play a crucial role in whether you and your client can survive.
The main strength of Zombie Hunter inc is in its unique mechanics. Take a classic space side-scroller and cross it with Left4Dead and you get the game. It is the closest you can get to FPS while staying 2d side-scroller, because in Zombie Hunter in you can aim zombies in the head.
Hi guys!I am glad to let you know that Zombie Hunter inc Alpha has now been released on Desura. Moreover, we have recently uploaded a patch that fixes the issue when blood was not rendered in game at all. Now you can finally play the game the way it meant to be. Try it out:
Our next milestone is the campaign mode, which we are now working on and our first campaign level is scheduled for this summer so you will soon be able to have a first look at it. Stay tuned!In this article I will tell you how we solved a mystery of the badass bloom from Battlefield 3 and implemented a similar system in Zombie Hunter inc.There are plenty of resources out there that tell you how to add bloom to your game, but there are almost none telling how to make it right. The standard explanation you will find on the net will be something like this:- downscale your screen to 1/4 of it’s size (width and height) and perform two separable gaussian blur passes;- upscale the result and add it to the main picture.The problem is, if you do it this way, you get a pretty crappy bloom :). It’s quite small (that is it will not reach out too far from the source), and quite often it flickers and has a squarish shape. That was the kind of bloom Zombie Hunter inc used to have. It was pretty decent and I was more or less content with it. Untill I saw this:
That is just another screenshot from Battlefield 3 showcasing one of the most awesome bloom system you will ever see in a video game. No wonders that the game with one of the best graphics in history can do it.For a very long time after seeing this picture I thought that such system can only be implemented by an AAA company. I simply could not think of a way to achieve such a smooth and round fullscreen bloom without performing very large Gaussian blur over the final image (that would make any game VERY slow). But then one day I found a way to look under the game’s hood.With modern tools like Intel GPA or NVidia NSight you can actually decompose a frame from any videogame and look how it was drawn. That is, you can see what 3d models were used there with what textures and in what order they were drawn on the screen. You cannot see the shader code though :) but… you can guess it if u’r guud :).
Armed to the teeth and ready to conquer I started digging. I quickly made a good frame where my screen was completely covered with juicy bloom as a result of firing from and RPG launcher. Here it is:
As I looked into the steps they made to achieve this bloom I was surprised: their technique was not complex at all! There were two main differences between their approach and mine. Firstly, they downscaled their scene down to a 1/64 size instead of just 1/4. That allowed them to actually make the bloom fullscreen. But, to make it smooth, they did another thing: as they upscaled their blurred texture, they were adding the intermediate downscale result into it AND performed the two blur passes after each addition. To make it clear, this is how they did it step-by-step:
1. Downscale your scene picture step-by-step to 1/2, 1/4, 1/8, 1/16, 1/32 and 1/64 of it’s original size (that is down to originalWidth/64, originaHeight/64).2. Blur the 1/64 image.3. Add the result into the 1/32 image.4. Blur the resulting 1/32 image.5. Continue the steps 3 and 4 until you reach 1/2 image, the latter should also be blurred.6. Copy the results into the final image.7. Profit :).
However, when I actually started implementing this, the first results were aweful as the bloom formed huge ugly suqares :). I quickly realized that the problem was in the type of images I used to capture bloom. You simply cannot use ordinary 8-bit per channel textures here as their precision is not enough, because of the precision loss, some colors are lost and you get squares. Even 10 bits were not enough, only switching to 16-bit precision textures allowed me to solve the problem.Then there was another issue – the flickering. The bloom flickered as the camera moved. To solve this I started filtering the data at every downscaling and upscaling step. That means I started manually reading four values from the bigger texture before averaging them and writing into the smaller one. I am coding on XNA 4.0, which does not support 64-bit texture filtering and because of that I cannot use hardware texture filtering, so I had to write the code myself and suffer a slight performance loss. But as I did that final step, I was finally able to achieve the most awesome bloom in the universe:
So right now Zombie Hunter inc enjoys superbadass bloom which our artists are happy to utilize with endless creativity!