Weapons and Unit Damage in Homeworld 3
Author: david.hinkle,
published 1 year ago,
[img]https://clan.cloudflare.steamstatic.com/images//41623886/1d412e2f8a523a4caeba760350e95827fbdb8583.png[/img]
We've spent years developing Homeworld 3's gorgeous ships, so it's only appropriate that they explode in equally spectacular fashion. Hi, I'm Tim O'Connell, Senior FX Artist here at Blackbird Interactive. In our latest Fig Update, I'm going to go over some of the work we've been doing to make sure your battles in Homeworld 3 look and feel as climactic as possible.
From the very start of development on Homeworld 3, we knew we needed to use the latest tech, better looking FX, and dynamic damage to make the results of hostile engagements as thrilling as possible. Looking at the health bars of your ships is one thing, but we want you to see the scars of your hard-won battles. Broadly speaking, this can be broken down into three stages: weapon damage, ship damage and wreckage.
[h2]Brace for Impact[/h2]
Let's start with weapons. The Homeworld 3 Design Team needed us to produce four distinct damage types (Kinetic, High Explosive, Energy, and Ion) — each with their own visual treatment and effects on units. I'm sure you can already imagine how each damage type would affect a ship hull, but we wanted to go further and add to the realism with realistic lighting and fluid-based simulations.
[img]https://clan.cloudflare.steamstatic.com/images//41623886/a68fc599361233348fe48c2eab03a45c6b572ece.png[/img]
[i](Here we see how different weapon types can create unique impact craters on ship hulls.)[/i]
In the above example, you can see how each weapon leaves a unique impact "decal". You can think of them like a sticker you slap onto the surface of an object. It's a simple effect, but it gives you a basic idea of who shot your ship and with what type of weapon. Decals were used in the previous installments of Homeworld and always did a darn good job of showing damage. But we saw an opportunity to do so much more.
Thanks to the efforts of our Tech Artist, Francisco Múrias, and Engineer Viktor Solbay (not to mention plenty of other team members), we have developed a whole new solution for displaying damage on ships. We call it "Splat Damage". With Splat Damage, we're not slapping impact stickers on your ship but creating dynamic impact points that directly alter the surface geometry and properties of the hull in the exact area hit by a specific weapon type. A decal gives you the mere impression of damage, but with Splat Damage you seehow an incoming salvo rips through the armor of your precious Destroyer.
[img]https://fig-images.imgix.net/https%3A%2F%2Fplayfig.s3.amazonaws.com%2FCampaignMediaItem%2Fimage%2Fcampaign_media_item%2F2023%2F02%2F07%2F270e6dc1-5d26-4b26-8bd6-e95ee3c18a34?ixlib=rails-2.1.4&auto=format%2Ccompress&s=4757e0c72e3dd8c70e3aef518d916ee5[/img]
[i](This early prototype of Splat Damage warps the hull with dynamically-generated impact points.)[/i]
We did this because we wanted the wounds sustained by your fleet to persist from mission to mission, and to give you "at a glance" information if a specific ship has been through combat before. Each combat encounter will leave scars that, over time, tell the story of that particular ship.
The advantages of this Splat Damage model don't stop there. Now, each ship has its own dynamic damage texture, which will procedurally add damage to the surface of the ship. What's even cooler is that we can gradually transition damage as it increases in severity, going from surface scars to devastating hull breaches — all while showcasing secondary hot spots and burn marks. As you can imagine, this system can be resource intensive so we prioritize it on larger units and Capital ships, where the effects are most noticeable and striking.
[h2]Battle Scars[/h2]
Let's switch gears and talk about ship damage. This is a little more unit-specific, so I'll break it down into Fighters/Corvettes, Frigates and Capital Ships.
Because Fighters are so small, they don't require such nuanced damage modeling, but we wanted to make sure that a player can see what condition they are in regardless of distance. In the [url=https://steamcommunity.com/ogg/1840080/announcements/detail/3303975368036772169]Homeworld 3 Official Gameplay Trailer[/url], you can see a distinct camera-facing smoke sprite when Fighters take damage. This was a good solution, but it did have issues like resource cost and, if a unit was too fast, you would have this “popcorn” effect where the smoke from a damaged ship looked like individual puffs rather than a consistent stream. Needless to say, we felt it was a little ugly and dated.
We knew we could do better, so we moved onto using a Ribbon/Sprite system. Now, at low speeds we use sprites to simulate the smoke, but at higher speeds we swap to this inky trail that streams out of the back of a damaged Fighter. Stylistically it looks much better and, overall, the system is more adaptable to how Fighters behave in combat.
For larger ships, we use a series of “damage sockets” placed around the hull where we can spawn required FX to help simulate damage. We also have a range of damage stages we call light, heavy, critical, and "it was a pleasure serving with you, Captain".
Light damage is what you might imagine: Smoke, which consequently gets thicker and darker the more damage a unit sustains. We then add additional fire, hull breach FX and sparks to show the severity of the damage as we progress through different damage stages.
[img]https://clan.cloudflare.steamstatic.com/images//41623886/9f44b3e5c7304e27dbe4afc516d6f88c172c4e70.png[/img]
[i](Here we see all the Damage sockets we add to the Raiders Carrier.)[/i]
[img]https://clan.cloudflare.steamstatic.com/images//41623886/3b40caaeb830d841d5fc718e14e2927fef7f5cc3.png[/img]
[i](Using this system we are able to have a random damage location every time.)[/i]
[h2]Wrecking Crew[/h2]
Finally, let's blow something up!
Back in our Fig update [url=https://www.fig.co/campaigns/homeworld3/updates/1394]detailing the new Railgun Frigate[/url], we revealed an older version of our wreckage and debris system that litters the battlefield with persistent wrecks. This old system relied on artists hand modeling the debris meshes using a 3D app like Maya or Blender. For a game with many different ships of all shapes and sizes, you can imagine how time consuming that was. We needed a better system. One that allowed us to dynamically generate the debris meshes on the fly.
Thanks to the hard work of Adrian "Ed" Lee, Francisco Múrias, Liam Smyth, and many others, we developed a procedural "Ship Breaking" tool leveraging the power of a great piece of software called Houdini. This tool realistically simulates the different ways a ship hull will collapse under the immense pressure of an explosion. But that's just the beginning. This tool also models the internal rooms and mechanisms of a given ship, and then warps and crinkles them so they bulge realistically — just like what would happen if an explosion from within a ship forced all its guts out into space.
[img]https://clan.cloudflare.steamstatic.com/images//41623886/bfc1313894734b692f9479c265cca37cdac167c1.png[/img]
[img]https://clan.cloudflare.steamstatic.com/images//41623886/f14b5d63b7de4a2e7c6631f0d41d75ef5758bb3f.png[/img]
[img]https://clan.cloudflare.steamstatic.com/images//41623886/8f639da764f175055868d2220fa4e9e27884afea.png[/img]
[img]https://clan.cloudflare.steamstatic.com/images//41623886/6939c14f52b8d4e4cc05a4222d207bdba537aaaf.png[/img]
[img]https://clan.cloudflare.steamstatic.com/images//41623886/8150b5bf82710a3a836fccf2c78f01ac88d56581.png[/img]
[img]https://clan.cloudflare.steamstatic.com/images//41623886/d090b39e1b60c937ecfa138fb98a87386c3c9b79.png[/img]
[img]https://clan.cloudflare.steamstatic.com/images//41623886/13ce6fcf6c7c4608aa557c70215db1a727dff4e1.png[/img]
Thanks to these new innovations in Homeworld 3, we not only have a more realistic portrayal of ship destruction, but a much more visceral one too. It lets you witness the destructive fallout of our dynamic battles at a level of detail that wasn't possible before. And once the dust settles, the battlefield will be littered with accurately-modeled wrecks waiting to be scooped up by your Salvagers.
This huge feat took many months to develop, but I believe it is all worth it. The RTS genre is packed with legendary games, and we aspire to make Homeworld 3 one of them. Working on Homeworld 3 is something I am so proud of, and making something for the fans — both old and new — is something I will treasure for the rest of my life.
Thanks for following along as I nerd out about spaceships for a bit. I love what I do as an FX artist, and if you want to ask any questions in relation to FX in Homeworld or in general, please reach out here or [url=https://twitter.com/Sparkle_Wizard]on Twitter[/url].
Until next time.