Dev Diary: Fog, Lights and Nights
Matching a day-night cycle to the cycle that controls when the units get replenished at your bases works so well! Especially the bases themselves can look quite beautiful at night.
But we're not only talking about visual spice that adds to the atmosphere. We've already started enabling some gameplay features built on top of this, like monsters changing between day and night.
Different days (cycles) will also often trigger different global effects. Some of these will give you a bonus, some will impede your production or limit your visibility range on the map.
In realtime graphics (unless you use the so-called deferred rendering, which is not suitable for our graphics style with a lot of transparency and hand-drawn sprites) there's usually a limit to how many dynamic lights the engine allows you to use - in Unity it's 4. We use these for the main light that casts shadows and for an ambient light, but we needed much more. The solution? A custom 2D light map.
We render sprites that represent lights of different shapes to a texture, which is then accessed by shaders that draw all the different types of objects, monsters and terrain. And what are these lights actually used for?
The Fog of War system has been one of the most complicated features to implement, as it affects almost everything else in the game. There are three levels of the starry 'fog' as you explore the map: undiscovered, 'remembered' and of course areas currently visible to your commanders and structures. As you leave an area, the game must remember the state of everything when you've seen it last and this is for example used when a path is planned for your commanders. The game will also give you a [!] notification and sometimes pause your commander's movement if you return to a discovered area and something has changed, like when the treasure you're going to pick up has been already taken or a monster already defeated.
Now, let's have a quick look at the graphical side. A starry sky with some light nebulosity works well for the sci-fi settings. To make things more complicated for ourselves, we also added a little paradox: Notice that the Fog of War texture looks like it is above the terrain (this is quite subtle, but look at some stars on the left or on the right next to the discovered area)!
One more little detail is that objects right at the edge of the undiscovered territory don't just pop up, but they get rendered as their silhouettes first, so they can nicely fade-in!
Let us know if you enjoyed this kind of a technical post! We might do one about scripting the campaign, if you're interested. The next post though should be a proper introduction of the Sovereign Fleet, the third playable faction included in the Early Access build coming in September! https://store.steampowered.com/app/2147380/Silence_of_the_Siren/
[ 2024-08-29 13:07:47 CET ] [ Original post ]
In today's post we'd like to go just a tiny bit more technical than usually. Let's peek a bit behind the scenes and let's have a look at a few features we're particularly happy with how they turned out. And we'll of course also mention why they're interesting when you actually play the game! :)
The Day-night cycle
Matching a day-night cycle to the cycle that controls when the units get replenished at your bases works so well! Especially the bases themselves can look quite beautiful at night.
But we're not only talking about visual spice that adds to the atmosphere. We've already started enabling some gameplay features built on top of this, like monsters changing between day and night.
Different days (cycles) will also often trigger different global effects. Some of these will give you a bonus, some will impede your production or limit your visibility range on the map.
Lights
In realtime graphics (unless you use the so-called deferred rendering, which is not suitable for our graphics style with a lot of transparency and hand-drawn sprites) there's usually a limit to how many dynamic lights the engine allows you to use - in Unity it's 4. We use these for the main light that casts shadows and for an ambient light, but we needed much more. The solution? A custom 2D light map.
We render sprites that represent lights of different shapes to a texture, which is then accessed by shaders that draw all the different types of objects, monsters and terrain. And what are these lights actually used for?
- There are colored lights to subtly highlight which player owns which structure.
- There are directional lights from your commander's 'torchlights'.
- And a lot of custom pointlights placed by the map designers to highlight objects or locations.
Fog of war
The Fog of War system has been one of the most complicated features to implement, as it affects almost everything else in the game. There are three levels of the starry 'fog' as you explore the map: undiscovered, 'remembered' and of course areas currently visible to your commanders and structures. As you leave an area, the game must remember the state of everything when you've seen it last and this is for example used when a path is planned for your commanders. The game will also give you a [!] notification and sometimes pause your commander's movement if you return to a discovered area and something has changed, like when the treasure you're going to pick up has been already taken or a monster already defeated.
Now, let's have a quick look at the graphical side. A starry sky with some light nebulosity works well for the sci-fi settings. To make things more complicated for ourselves, we also added a little paradox: Notice that the Fog of War texture looks like it is above the terrain (this is quite subtle, but look at some stars on the left or on the right next to the discovered area)!
One more little detail is that objects right at the edge of the undiscovered territory don't just pop up, but they get rendered as their silhouettes first, so they can nicely fade-in!
Let us know if you enjoyed this kind of a technical post! We might do one about scripting the campaign, if you're interested. The next post though should be a proper introduction of the Sovereign Fleet, the third playable faction included in the Early Access build coming in September! https://store.steampowered.com/app/2147380/Silence_of_the_Siren/
Silence of the Siren
Oxymoron Games
Oxymoron Games
Coming soon
Action Indie Strategy Casual RPG Adventure Simulation F2P Sports MMO Racing Singleplayer Multiplayer Coop EA
Game News Posts 25
🎹🖱️Keyboard + Mouse
🕹️ Partial Controller Support
🎮 Full Controller Support
Very Positive
(140 reviews)
https://silenceofthesiren.com/
https://store.steampowered.com/app/2147380 
[0 B]
Silence of the Siren is a turn-based strategy game where several different space-faring civilizations are fighting over control of a distant star system. Explore what’s left on the planets and secure resources to build mighty cities. Raise powerful armies and defeat your opponents on the battlefield!
The Siren star system, birthplace of a galactic alliance, and the homeworld of a lost Primals civilization, has been cut from the rest of the galaxy. As a result, the carefully built alliance split into bickering factions and secluded colonies. These days, hardly anyone pays attention to the ruins scattered all over the few habitable planets of a freshly isolated system. The deeper you venture into the uncharted regions, the stronger the feeling of endangerment grows. There is something else. An entity, a shade, an echo of whispers from below.
Explore what's left on the planets and secure important resources. Use them to upgrade your bases with advanced technology and to hire massive armies. Play as several different factions, recruit skilled commanders, teach them new skills and lead them into battle. Overcome obstacles on the map to gather powerful equipment and ancient artifacts.
Encounter a wide range of enemies in turn-based combat, use your tactical thinking to gain advantage on the battlefield. Learn the unique moves of your units, deploy your commander's special abilities and outsmart even much stronger opponents.
The Siren star system, birthplace of a galactic alliance, and the homeworld of a lost Primals civilization, has been cut from the rest of the galaxy. As a result, the carefully built alliance split into bickering factions and secluded colonies. These days, hardly anyone pays attention to the ruins scattered all over the few habitable planets of a freshly isolated system. The deeper you venture into the uncharted regions, the stronger the feeling of endangerment grows. There is something else. An entity, a shade, an echo of whispers from below.
Explore what's left on the planets and secure important resources. Use them to upgrade your bases with advanced technology and to hire massive armies. Play as several different factions, recruit skilled commanders, teach them new skills and lead them into battle. Overcome obstacles on the map to gather powerful equipment and ancient artifacts.
Encounter a wide range of enemies in turn-based combat, use your tactical thinking to gain advantage on the battlefield. Learn the unique moves of your units, deploy your commander's special abilities and outsmart even much stronger opponents.
- Explore a rich sci-fi world and discover secrets of a lost civilization
- Collect powerful artifacts, secure important resources, upgrade your bases and hire the strongest units
- Level-up your commanders and crush your opponents in exciting turn-based battles
- Take control over several different species and factions
- Old-school strategy game with modern controls and intuitive UI
MINIMAL SETUP
- Processor: i3. Ryzen 3Memory: 8 GB RAM
- Memory: 8 GB RAM
- Graphics: 1030Additional Notes: All TBD. minimum will be aimed at 1080p low @30 FPS
- Processor: i5. Ryzen 5Memory: 8 GB RAM
- Memory: 8 GB RAM
- Graphics: 1060Additional Notes: All TBD. recommended will be aimed at 1080p high @60 FPS
GAMEBILLET
[ 5951 ]
GAMERSGATE
[ 3198 ]
FANATICAL BUNDLES
HUMBLE BUNDLES
by buying games/dlcs from affiliate links you are supporting tuxDB