City lights on the dark side of planets

An area for discussing new ideas and additions to Oolite.

Moderators: another_commander, winston

Astrobe
---- E L I T E ----
---- E L I T E ----
Posts: 609
Joined: Sun Jul 21, 2013 12:26 pm

City lights on the dark side of planets

Post by Astrobe »

One thing I miss in Oolite is seeing "civilization lights" on the dark side of planets, like there: http://visibleearth.nasa.gov/view.php?id=55167

I'm wondering if there would be a shader/texture trick that would let us have this.
Ngalo
Competent
Competent
Posts: 58
Joined: Mon Mar 02, 2015 2:08 pm
Location: drifting in remLock mask near Vezadi Station

Re: City lights on the dark side of planets

Post by Ngalo »

Actually this could probably be done quite easily by spawning a few ship entities with lots of flashers on the night side of a planet; it's was somewhere near the bottom of my to-do list a while ago but must have fallen off.. Unfortunately I'm rather busy right now trying to make an improved replacement for CustomShields and otherwise make life a bit fairer for those poor defenceless NPCs, so don't expect me to do it soon.

Advice if you want to DIY: make sure they spawn a few metres above the surface as ships in contact with the surface will be removed.
Equal Rights for NPCs!
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: City lights on the dark side of planets

Post by Norby »

Ngalo wrote:
lots of flashers
[wiki]Trails[/wiki] show that you should not use too much flashers else you must buy a new computer or accept low FPS.

Another way is using shaders, there is an interesting example in [wiki]Flying Dutchman OXP[/wiki] which can make transparent models. In this case you must check oolite.gameSettings.detailLevel and spawn only if shaders or extras are set.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: City lights on the dark side of planets

Post by cim »

Ngalo wrote:
Advice if you want to DIY: make sure they spawn a few metres above the surface as ships in contact with the surface will be removed.
Use visual effects rather than ships if you want to do it this way, as they don't collide and don't need any non-flasher model components.
User avatar
Day
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Tue Mar 03, 2015 11:35 am
Location: Paris

Re: City lights on the dark side of planets

Post by Day »

I like the idea :-)
EyeCandy which could even later spawn new functionalities (like drowning if you try to land on an ocean, well except if it's a Moray !!).
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 »

I noticed that Griff's station has that kind of feature: on can see the station's lights on the dark side. Can it ported to the planetary textures?
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 »

Astrobe wrote:
I noticed that Griff's station has that kind of feature: on can see the station's lights on the dark side. Can it ported to the planetary textures?
Unfortunately not. Ships and stations have had lighting since Oolite v1.74 depending on the OXPs used, but these are generated by shaders or emission maps applied to the models. Planets don't work in the same way, mostly being procedurally generated and although they can have textures applied to them the facility to add emissions is not yet possible.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6881
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: City lights on the dark side of planets

Post by Disembodied »

How about if we made the planets hollow, cut little holes in them, and put a really big light inside? And remember, there's a fine line between genius and insanity ...
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: City lights on the dark side of planets

Post by spara »

Wasn't there something like a shady planet branch or something? Wasn't it supposed to do something like that? What happened to that?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6557
Joined: Wed Feb 28, 2007 7:54 am

Re: City lights on the dark side of planets

Post by another_commander »

spara wrote:
Wasn't there something like a shady planet branch or something? Wasn't it supposed to do something like that? What happened to that?
It went stale long time ago and there have been many changes in the planet drawing code and shaders since then, so it may not be such a simple job bringing it up to date.

In any case, I think that shaders would be the way to go about implementing this request. I doubt that flashers or other look-alike effects would be able to cut it.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: City lights on the dark side of planets

Post by Cody »

Disembodied wrote:
And remember, there's a fine line between genius and insanity ...
I've been in my mind, it's such a fine line,
That keeps me searching for a heart of gold.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Commander_X
---- E L I T E ----
---- E L I T E ----
Posts: 666
Joined: Sat Aug 09, 2014 4:16 pm

Re: City lights on the dark side of planets

Post by Commander_X »

Cody wrote:
I've been in my mind, it's such a fine line,
That keeps me searching for a heart of gold.
<Didn't have to google this one :D >
Out of curiosity, enjoying them Canadian musicians lately?
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: City lights on the dark side of planets

Post by Cody »

Commander_X wrote:
Out of curiosity, enjoying them Canadian musicians lately?
<grins> You mean the Be Good Tanyas? Yeah!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Commander_X
---- E L I T E ----
---- E L I T E ----
Posts: 666
Joined: Sat Aug 09, 2014 4:16 pm

Re: City lights on the dark side of planets

Post by Commander_X »

Cody wrote:
<grins> You mean the Be Good Tanyas? Yeah!
Heh, that's cool too! ... although I expected a comment back about either Neil Young/musician, and/or Neil Young/Canadian :)
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 »

Shy bump for 1.86.
Post Reply