• Register

Stellar Squadron is a 3d space dogfighter inspired by classics such as Star fox and Battlefront 2 (2005) it includes ship customization and procedural generation. The game is currently in development.

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Post article RSS Articles

Destroying Procedural Carriers

Feature

In our last post, we introduced procedurally generated carriers which led to the logical next step... Destroying procedurally generated carriers.

Since developing the procedural generation process it has been further extended to include customizable colours, new varieties of some parts and new turrets, see below for examples:

article 20231120 colours

As carriers are significantly larger than our starfighters an alternative approach was developed to eliminate them by first triggering a multi-stage explosion. The multi-stage explosion is a series of explosion effects instantiated at random over the surface of the carrier. They are placed by initially casting rays from the circumference of an imaginary sphere whose diameter is large enough to envelop the carrier in its entirety, where the rays encounter collisions with the surface of the carrier explosion prefabs are instantiated. There is a timed sequence ensuring that numerous explosions are placed over a period at an accelerating rate.

Raycast explosions

At the end of this sequence a dramatic final explosion, complete with super-nova occurs and ultimately the carrier itself is dissolved out of existence. The dissolving is achieved using a shader which manipulates both the material and geometry of the carrier, the material displays bright glowing cinders over the surface and the geometry is spherically inflated from the carrier's centre giving the illusion of an expanding explosion. At the latter stages of the shader's animation texels are progressively made transparent eventually leading to the disappearance of the carrier. Some fiery visual effects, lighting and a supernova provide the finishing touches for where we are today:

There may be further work to come in destroying carriers but we will be focusing on bugfixing and polishing for a time before then.

Procedural Carriers

Procedural Carriers

Feature

Introducing Stellar Squadron an indie space dogfighter and the procedural generation system used to create unique carrier star ships.

Post comment Comments
Guest
Guest - - 689,605 comments

Really impressive work you are doing, wow!

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,605 comments

It is quite cool system, this is far into the future but do you think it is a one off or do you believe it is viable beyond this game?

Reply Good karma Bad karma+1 vote
bodedoctor Creator
bodedoctor - - 1 comments

It's been wrapped up tidily for re-use, so it's certainly written for broader application, however it has its limitations. It won't detect and avoid intersections of meshes, we need to adhere to some rules to avoid such situations but seems a fair trade-off for performance.

Reply Good karma+2 votes
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

X