City lights on the dark side of planets

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

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

City lights on the dark side of planets

Post by Astrobe » Sat Mar 12, 2016 9:05 am

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 » Sat Mar 12, 2016 4:26 pm

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: 2542
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 » Sat Mar 12, 2016 10:36 pm

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: 4018
Joined: Fri Nov 11, 2011 6:19 pm

Re: City lights on the dark side of planets

Post by cim » Sun Mar 13, 2016 12:27 pm

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: 518
Joined: Tue Mar 03, 2015 11:35 am
Location: Paris

Re: City lights on the dark side of planets

Post by Day » Tue Mar 15, 2016 5:16 pm

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: 580
Joined: Sun Jul 21, 2013 12:26 pm

Re: City lights on the dark side of planets

Post by Astrobe » Sat Mar 19, 2016 11:30 am

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: Disunited Kingdom
Contact:

Re: City lights on the dark side of planets

Post by Smivs » Sat Mar 19, 2016 11:50 am

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: 6202
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: City lights on the dark side of planets

Post by Disembodied » Sat Mar 19, 2016 12:21 pm

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: 2550
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: City lights on the dark side of planets

Post by spara » Sat Mar 19, 2016 1:16 pm

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: 5389
Joined: Wed Feb 28, 2007 7:54 am

Re: City lights on the dark side of planets

Post by another_commander » Sat Mar 19, 2016 1:29 pm

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: 13552
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: City lights on the dark side of planets

Post by Cody » Sat Mar 19, 2016 2:31 pm

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.

Commander_X
Deadly
Deadly
Posts: 236
Joined: Sat Aug 09, 2014 4:16 pm

Re: City lights on the dark side of planets

Post by Commander_X » Sat Mar 19, 2016 7:50 pm

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: 13552
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: City lights on the dark side of planets

Post by Cody » Sat Mar 19, 2016 8:51 pm

Commander_X wrote:Out of curiosity, enjoying them Canadian musicians lately?
<grins> You mean the Be Good Tanyas? Yeah!

Commander_X
Deadly
Deadly
Posts: 236
Joined: Sat Aug 09, 2014 4:16 pm

Re: City lights on the dark side of planets

Post by Commander_X » Sat Mar 19, 2016 9:44 pm

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: 580
Joined: Sun Jul 21, 2013 12:26 pm

Re: City lights on the dark side of planets

Post by Astrobe » Fri Aug 26, 2016 11:28 am

Shy bump for 1.86.

Post Reply