Procedural Flight Battle Simulation - WIP
Hello everyone,
Today marks one week since I started working on the collaborative project proposed by @Simon Salord . I am a data scientist fan of the Start Wars franchise, so it is hard not to fall in love with a project that involves geometry nodes and space battles.
The main goal of the project is to develop an flight battle simulation using the new geometry nodes based simulation system of blender 3.6 (simulation nodes). As a starting point, a particle system of boids was simulated and baked. Then, using geometry nodes, these particles (points) are manipulated to perform the battle simulation and the ships are instantiated on the points after the simulation.
In the initial project @Simon Salord d developed the firing system for the ships. The system makes the ships search for the nearest enemy within a distance range and start firing in its direction.
The following features have been added to the simulation:
- Health System
This system adds a "health" attribute to the ships with an initial value of 1. This value is decreased as the ships are hit by the shots.
- Damage System
This system is based on the amount of life of the ships ("health" attribute). A new group of vertices has been added to the ships called "Damage". These vertices were classified with different weights, being the following values used 0.25, 0.5, 0.75 and 1. In this way, the amount of damage vertices displayed is proportional to the life of the ships. A simulation zone is used to throw points from the displayed damage vertices. These points are used to set up billboards with a procedural fire and smoke texture that is based on the "age" attribute of the dots thrown.
- Kill System
This system is responsible for removing dead ships from the simulation, as well as performing ship exploitation when life runs out. The explosion of the ships is based on two simulations. One that promotes the fire and smoke of the explosion using billboards. And the other, responsible for the fragmentation of the ship, using a trick of extrusion of the faces.
- Camera Track System
This system causes a camera to follow one of the ships (selected by the index), providing a third-person game feeling.
Now I'm thinking of adding the following features to the simulation
- Make ships that are not attacking move to the nearest enemy
- Make ships dodge other objects in the scene (asteroids?, motherships?, planets?, trees? ...)
PS: I fixed the optimization problem I was having with the simulations cache size. Now the cache is normal size (~500mb)