Game Design, Programming and running a one-man games business…

Damage texture and particle video test

This doesn;’t look as good as it will, and I’m nto happy with it, but I’m working on damages to ships today, and trying to get both reasonable damage texures (fail!) and nice particle effects for both moving and stationary damaged ships.

Without ILMS budget this is hard. Also, this is primarily a test of the idea of capturing video and posting it to youtube for comment. Let me know your thoughts. I shrunk the window to 800×600 so the capture was high quality and small filesize. Lots of stuff here is placeholder.

Multi-texturing

Part of today was spent on the fleet design screen adding pilots as a requirement. This is something I’ve got from the old travller game. Basically some missions will have a limited number of trained pilots for your ships, thus limiting the number of small fighters that are viable for your fleet.

I also finalised which space backgrounds would go with each mission. Then it was on to some graphical stuff…

I’ve added a new weapon, which is an ECM blaster that knocks out the targeting systems of a ship for a few seconds. Ideally you would have a ship that acted as ECM cruiser to knock out the weapons of the enemy cruisers before you sent in your fighters and bombers to blast them to bits :D. As a result, I need a graphical effect on the target ship to show its been zapped.

The existing shield effect isn’t the same sort of thing, because it’s a seperate sprite drawn on top which surrounds the ship in a sphere. I needed something that ‘hugged’ the outline of the target ship. In a 3D game, you would maybe have an animated texture which you applied to the ships mesh, but these ships are sprites so that won’t work. The solution has been to layer two textures together and render them in one pass. Basically, I have a generic ‘lightning effect’ texture which is drawn on top of the ship, but I tell directx to use the alpha channel from the ships sprite as the alpha, and the color data from the lightning to draw the effect.

That bit was a pain to get right, but once done, I then needed to animate it. That is being done by having two lots of texture coordinates for the effect sprite. I leave the first set (for the ship, used as the alpha mask) at their defaults, and the effect color layer uses the second set. That lets me ‘ripple’, scroll or shake the effect texture, and still have it ‘wrap’ closely around the outline of the ship. It works, but I need to program a decent movement effect, and do a proper effect texture. Then I’ll post screens :D.

Gratuitous Tank Driving

I’m sure some people have seen a picture of me with a klingon knife or a jem h’adar gun or my bow and arrows and think I’m some weapon obsessed maniac. This isn’t true.  It’s just con-incidence that I spent yesterday driving Chieftain tanks, self propelled guns and APCs. It was a Christmas present…

Here’s me checking out my new vehicle. It has worse mileage than my peugeot, but I suspect parking is easier, or at least more flexible.It was the most comfortable vehicle to drive, you actually have room to move your legs. Its also the the only one where you had to do gear changes as you drove.

This is me driving an APC. It was a total bitch to drive. The tank was way easier. I almost sent the thing tipping on one side during some particularly excitable cornering.

And here was my fave drive of the day. An abbot Self-propelled gun. It was much easier than the APC, and it actually shifted pretty fast. It’s weird driving something that has a big huge fuck off gun barrel clearly in your line of vision.

So tank driving is another thing I can now cross off my mental list of silly things I need to try.