Author Topic: Global city lights.  (Read 715 times)

Offline bigben

  • Member
  • *
  • Posts: 2129
  • The Long Stranger rides again
    • Tinkering with Terragen
Global city lights.
« on: July 16, 2017, 03:31:53 AM »
Looking back through some of my old posts I found this: http://www.planetside.co.uk/forums/index.php/topic,2686.0.html  (Note to self... Check if vector data from OSM can be used for "lower altitude stuff)  I also had a clip of my subsequent lighting setup and here is a file with my global lights setup.  It includes a couple of low res image masks.  These can be switched with higher res images of your own.

Apart from providing some control over the intensity and distribution of the lights it also breaks the mask image up into small circles so the it looks a little more like lights rather than large areas of illuminated surface.

Key nodes:
  • Luminosity amount: Dimmer switch for the lights. 0.5-1 are visible from space. Up to 20 will light clouds from below.
  • Adjust Lights image 1: Colour adjust node that can tweak the distribution of the lights.  Decreasing the gamma will accentuate the variation between dim and bright regions of lights. Increasing black level will turn off dimmer areas.
  • Sun position group should have the same settings as the sun's position, and Planet center = the planet's center
  • To allow lights over bodies of water (e.g. oil rigs) bypass the water mask by connecting Voronoi billows to circles to the input of Mask by angle from sun (I'll be releasing higher res versions of my water mask later)
  • Demo angle range mask sets the boundary between light off/lights on in relation to the sun's position
Enjoy :)
« Last Edit: July 16, 2017, 03:40:06 AM by bigben »

Offline bigben

  • Member
  • *
  • Posts: 2129
  • The Long Stranger rides again
    • Tinkering with Terragen
Re: Global city lights.
« Reply #1 on: July 16, 2017, 05:04:21 AM »
I've been using the black marble 2012 image previously. Will have to update this to the 2017 version.  https://earthobservatory.nasa.gov/Features/NightLights/page3.php  Fortunately available as GEOTIFF this time

Online Dune

  • Member
  • *
  • Posts: 12811
  • Corkscrew Bird
    • www.ulco-art.nl
Re: Global city lights.
« Reply #2 on: July 16, 2017, 07:22:33 AM »
Very cool of you to share, Ben. Thanks so much!
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline bigben

  • Member
  • *
  • Posts: 2129
  • The Long Stranger rides again
    • Tinkering with Terragen
Re: Global city lights.
« Reply #3 on: July 16, 2017, 11:26:09 AM »
You're welcome.  Here's a test render with a 36K version of the 2016 city lights image. Luminance cranked up to 20. Cloud base at 1km.  The global cloud shader is new to me so I still have some new settings to get my head around.  I had to increase the density to get the clouds to show up a bit more on the night side. Maybe some tweaks to the lighting settings as well. Might end up with a duplicate cloud layer with one setting for the day side and one for the night.

Offline Ariel DK

  • Member
  • *
  • Posts: 229
    • http://arielmultimedia.deviantart.com/
Re: Global city lights.
« Reply #4 on: July 16, 2017, 05:53:45 PM »
Nice stuff Ben, for your global clouds, try to set
- ambient to 0.02
in the lighting tab:
- light propagation to 0
- propagation mix to 0.1
- fake scatering to 4
- uncheck "Darker unresolve scattering"
- and decrease density to 0.005

That must to work for day and night side (or at least it's a begin)
is better to try with two clouds layer, and large render times
« Last Edit: July 16, 2017, 06:37:56 PM by Ariel DK »
Hmmm, what version of Terragen use god?

Offline bigben

  • Member
  • *
  • Posts: 2129
  • The Long Stranger rides again
    • Tinkering with Terragen
Re: Global city lights.
« Reply #5 on: July 16, 2017, 10:26:22 PM »
Thanks. I'll give those a try. 

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 11789
  • Holy snagging ducks!
Re: Global city lights.
« Reply #6 on: July 16, 2017, 10:59:57 PM »
Excellent, thanks for sharing! But might I suggest putting your notes and suggestions for use into a text file in the zip as well? I haven't looked at the TGD yet so it might already be in note nodes, so ignore me if so. ;)

- Oshyan

Offline bigben

  • Member
  • *
  • Posts: 2129
  • The Long Stranger rides again
    • Tinkering with Terragen
Re: Global city lights.
« Reply #7 on: July 17, 2017, 07:48:23 AM »
Yes, text file in the ZIP is probably a good idea too.

...
- and decrease density to 0.005

This one I'm not so sure about.  The main tweak I had to do previously was increase the density. At very low densities the clouds disappear in shadows

Offline Ariel DK

  • Member
  • *
  • Posts: 229
    • http://arielmultimedia.deviantart.com/
Re: Global city lights.
« Reply #8 on: July 17, 2017, 05:21:17 PM »
But they disappear completely? The clouds are more brighter now, so you dont want to lost some details in the day side.
also is good remember that doesn't exist a completely DARK side of the earth. in my scene, the city lights provide enough
light to the clouds, but Im also using an aditional source light (moon bright), and even so, is necessary increase just a little
bit the camera exposition (as in real life) to see every detail
Hmmm, what version of Terragen use god?