City lights on the dark side of planets

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: City lights on the dark side of planets

Post by Disembodied »

8) This looks pretty snazzy … is there the possibility to adjust the amount of city light depending on technology and population levels? Could there even be a way of adding some weird/great volcanoes?
User avatar
gsagostinho
---- E L I T E ----
---- E L I T E ----
Posts: 573
Joined: Sun Jul 19, 2015 1:09 pm

Re: City lights on the dark side of planets

Post by gsagostinho »

Since people are brainstorming here: perhaps the colour of the lights could also be procedurally selected, as one can easily assume that alien street lamps might have different colours due to different chemical components being used.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: City lights on the dark side of planets

Post by Smivs »

Many of the alien races may be nocturnal, so do not need or have street lighting. Others may have different visual ranges, so a species that sees in the utra-violet say (like an Insectoid race) might have street lighting invisible to the human eye.
Visible street lighting may be quite a rare thing.
Commander Smivs, the friendliest Gourd this side of Riedquat.
Astrobe
---- E L I T E ----
---- E L I T E ----
Posts: 609
Joined: Sun Jul 21, 2013 12:26 pm

Re: City lights on the dark side of planets

Post by Astrobe »

One could also argue that advanced civilizations are not dumb enough to waste energy to light the clouds (or show where to aim with an orbital X-ray laser nicknamed "The Greatest Filter"). Some Oolite races are insectoids, so subterranean life could be another argument but... Eye candy!

On a more serious note, Commander_X's work is very promising but the twinkling in the game is too heavy IMHO - twinkling probably caused by a moiré effect, a technical problem rather than a design choice. I'll try to encode information in the generated textures for use by the shader, in order to see if it can help (but I'm more on the stage where I hack around to see what happens - that's how I learned Basic a long, long time ago). Commander_X has done a pure-shader implementation. It looks quite challenging to control the shape of the patterns, the size of the lights, and other parameters I don't even know about.
Commander_X
---- E L I T E ----
---- E L I T E ----
Posts: 675
Joined: Sat Aug 09, 2014 4:16 pm

Re: City lights on the dark side of planets

Post by Commander_X »

Yup, the twinkling is mainly a direct artifact caused by the size of some of the light spots (pixel sized), monitor's own pixel size, planet's rotation (the fact that these small pixels are moving is not helping), and the clouds layer rotation to top all of them.
The safest way to turn down this is by enlarging the light spots. This helps visibly, but due to combining two noises (the larger main city shapes and the smaller light shapes), there will always result very small spots (on the cities outer borders) that will still expose the issue.
Another way to bring down the effect is to tone down the colour I used for the lights -- the whole thing will fade away, and the effect will be less annoying.
Oh, and of course, this will still be observed on the F7 screen due to scaling down.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: City lights on the dark side of planets

Post by Diziet Sma »

<wipes drool from corner of mouth>
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Post Reply