• Register
Post news Report RSS Skydome & Day and Night transitions

Many months ago we switched the game over to having a day and night cycle but in the process we lost a lot of detail in the sky. The old skydome used a 2D cube map with planets and clouds in it but with the sky changing color dynamically this was no longer possible so everything went away except for the sun.

Posted by on

Skydome & Day and Night transitions

By Jason Howard, posted 3rd March 2016

Since getting back after Christmas, Chris (the Lead Coder) and I have been trying out some new Skydome VFX. Many months ago we switched the game over to having a day and night cycle but in the process we lost a lot of detail in the sky. The old skydome used a 2D cube map with planets and clouds in it but with the sky changing color dynamically this was no longer possible so everything went away except for the sun.

Day & Night

The new day and night cycle uses gradients to control the color of various components of the skydome.

SkydomeBlog01


These are set up for each of the Biomes so that, the Grasslands, Desert, Mountains and the Salt Flats can all have different ambient lighting and sky.

Chris has set up the colours to controlled by gradient ramps in the Biome Data so that the artist can vary the colours over the course of the day.rather than simple blending between a colour for day and a colour for night.

SkydomeBlog02


As well as having the lighting changing over the course of the TerraTech day it also means that we can create wonderful "Golden Hour" effects during dusk and dawn.

SkydomeBlog03


Sun

There is now a sun in the sky and though we had a sun before the light now uses scattering to create haze and atmospheric perspective effects.

SkydomeBlog04


This uses techniques called Rayliegh & Mei scattering but you'd have to talk to Chris about that if you wanted to know how it works, I just play with the sliders till it looks pretty ;)

Clouds

There are now clouds in the skydome. These are dynamic based on a wind speed parameter and cast shadows over the ground. In time Chris and I hope to be able to add weather which will change the density and colour of the clouds.

SkydomeBlog05


Moon

As well as a sun there is moon that rises and sets too. The moon has it’s own season so as time goes by it’s rising and setting will go out of synch with the sun.

SkydomeBlog06


Planets

Chris and I have also added some planets to the sky dome. These are not quite as functional as the moon and the sun but there are geometry that is lit by the sun and we are planning ot have a little more fun with them if we get some time.

SkydomeBlog07


Stars

There are now stars at night too.

SkydomeBlog08


Fog

Chris also found some time to look at the fog settings which has reduced the amount of geometry that can be seen drawing in as you explore the world or TerraTech.

SkydomeBlog09

...and that it for now, depending on how things go this year we hope to add randomisation to the planets adding more variety to them and also try and add weather. Still we’re happy to have the skydome back to looking a little more interesting! ;)

SkydomeBlog10

2015 12 09 15 03 05

Post comment Comments
yeticulture
yeticulture - - 22 comments

Would be awesome to see an animation of the transition from day to night. But the way the sky looks either way is impressive and very realistic.

Reply Good karma Bad karma+2 votes
PayloadStudios Author
PayloadStudios - - 64 comments

Very good point! Have added a GIF at the bottom :)

Reply Good karma+1 vote
yeticulture
yeticulture - - 22 comments

Looks amazing! Good job guys!

Reply Good karma Bad karma+1 vote
drjd24
drjd24 - - 299 comments

It looks sooooooo pretty <3

Reply Good karma Bad karma+2 votes
paulnimmo11397384722
paulnimmo11397384722 - - 28 comments

Ah yeah I have to say I like the actual effects that put into place to give a visual boost for day and night, but one thing that does still get on my nerves a little is the transition from day to night time frame is extremely fast overall and not entirely realistic, but is that due to limitations on the Unity side of things or is it just the way you Dev's intended to look?

Reply Good karma Bad karma+1 vote
PayloadStudios Author
PayloadStudios - - 64 comments

It's just because the day is 15 minutes long so everything's accelerated. It's not a limitation. We rather like it! ;)

Reply Good karma+1 vote
Post a comment

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