Setting background stars & nebulas

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Setting background stars & nebulas

Post by JazHaz »

Today I've been fiddling with various settings to try to reproduce the "cinematic" look of the background stars and nebulas, as seen in this old image made by another commander:

Image

I've made myself a planetinfo.plist, currently set as follows, to increase the number of stars:

Code: Select all

{
universal =
	{		
		"star_count_multiplier" = "15.0";
	};
	
}
This is working quite nicely, however I'm going to increase the multiplier further. I also want to change the colour of the stars to be whiter. Is there any way of doing that without altering the sun's colour?

In the system I'm in at the moment, the sun's colour is reddish, which is fine, but I'm getting a lot of red background stars. The following screenshot shows this (and also the green flashers from DockLights OXP):

Image
DockLights OXP by JazHaz, on Flickr
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16055
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Setting background stars & nebulas

Post by Cody »

JazHaz wrote:
I've made myself a planetinfo.plist, currently set as follows, to increase the number of stars:

Code: Select all

{
universal =
	{		
		"star_count_multiplier" = "15.0";
	};
	
}
After much tinkering with that, I settled on star_count_multiplier = 50; and zero nebulae.
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!
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: Setting background stars & nebulas

Post by JazHaz »

El Viejo wrote:
After much tinkering with that, I settled on star_count_multiplier = 50;
Thanks for that suggestion. I've also changed the multiplier to 50. The below screenie was taken at that setting. I've not touched the nebula settings yet. Note the pink sunlight reflection off the SuperHub.

Image
SuperHub & Station in a red sun system by JazHaz, on Flickr
Last edited by JazHaz on Tue Jun 05, 2012 7:55 pm, edited 1 time in total.
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Setting background stars & nebulas

Post by Commander McLane »

JazHaz wrote:
I also want to change the colour of the stars to be whiter. Is there any way of doing that without altering the sun's colour?
What about sky_rgb_colors? It's all in the manual…
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: Setting background stars & nebulas

Post by JazHaz »

Commander McLane wrote:
JazHaz wrote:
I also want to change the colour of the stars to be whiter. Is there any way of doing that without altering the sun's colour?
What about sky_rgb_colors? It's all in the manual…
OK... not sure about the format in the examples on the wiki. Are each values for the red, green, and blue; ranges? If they are does that mean that the game would pick a random value (as in my code below, between 0.8 and 1.0?)?

This is what I'm using right now:

Code: Select all

{
universal =
	{	
		"sky_rgb_colors" = "0.8..1.0 0.8..1.0 0.8..1.0 0.8..1.0 0.8..1.0 0.8..1.0";
		"star_count_multiplier" = "60.0";
	};
	
}
Which produces sky like this (I'm still in the same system):

Image
White stars and more of them by JazHaz, on Flickr
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Setting background stars & nebulas

Post by Commander McLane »

JazHaz wrote:
This is what I'm using right now:

Code: Select all

{
universal =
	{	
		"sky_rgb_colors" = "0.8..1.0 0.8..1.0 0.8..1.0 0.8..1.0 0.8..1.0 0.8..1.0";
		"star_count_multiplier" = "60.0";
	};
	
}
I have no idea why the result does actually match what you wanted. Probably you're lucky and the numbers are interpreted from back to front? :wink:

The example in the Wiki indeed specifies the permitted range. You are supposed to choose a value inside the range, not to copy the template, as the instruction tells you:
Wiki wrote:
These are rgb values (from 0.0 to 1.0) for the two colours between which the colour of the stars (and nebulaesque blurs) vary, ordered r1 g1 b1 r2 g2 b2 where (r1 g1 b1) defines the first colour and (r2 g2 b2) the second.
(Default values are "0.0 1.0 0.5 0.0 1.0 0.0")
So, you need two RGB values written one after the other. Your star colours will be between these values. Thus, if you want colours between red and white you would write the RGB-triple for red ("1.0 0.0 0.0") and white ("1.0 1.0 1.0") in one row: "1.0 0.0 0.0 1.0 1.0 1.0". That's all. If your want star colours between "0.8 0.8 0.8" and "1.0 1.0 1.0" you should write exactly that: "0.8 0.8 0.8 1.0 1.0 1.0".

What you have now is only "1.0 1.0 1.0 1.0 1.0 1.0", which means that there's no other colour than white. Luckily it seems that Oolite simply ignores the superfluous "0.8.." in front of each "1.0".
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: Setting background stars & nebulas

Post by JazHaz »

OK, what I have now is this:

Code: Select all

{
universal =
	{	
		"sky_rgb_colors" = "1.0 0.7 0.7 1.0 1.0 1.0";
		"star_count_multiplier" = "60.0";
	};
	
}
Which produces:

Image
Pink sun with mostly white and some pink stars by JazHaz, on Flickr

Getting there, though will fiddle a bit more with the settings.

I'm a little concerned about using the universal setting though. Could this interfere with some other OXPs (currently only using Povray Planets, which doesn't touch suns and stars)?
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16055
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Setting background stars & nebulas

Post by Cody »

JazHaz wrote:
I'm a little concerned about using the universal setting though. Could this interfere with some other OXPs (currently only using Povray Planets, which doesn't touch suns and stars)?
System Redux has its own universal section, which I think would override your planetinfo.plist (I can't remember as I've disabled that section in my copy of SR).
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!
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Setting background stars & nebulas

Post by Commander McLane »

JazHaz wrote:
I'm a little concerned about using the universal setting though. Could this interfere with some other OXPs (currently only using Povray Planets, which doesn't touch suns and stars)?
There's nothing much you can do about that, I'm afraid. Indeed, two OXPs which set the same key in the universal-section will clash by design. Depending on OS (I think) it's either the alphabetically later one or a random one which will win.

The only thing you can do is to put a warning on your OXP, telling the player with which existing OXPs it will clash, and instructing him what to do to solve this clash (they have to edit one of the conflicting planetinfos; and first of all they have to make a decision which of the settings they want to use).

It's a natural by-product of the ability to install more than one OXP. :wink:
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2275
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

Re: Setting background stars & nebulas

Post by Wildeblood »

JazHaz wrote:
I'm a little concerned about using the universal setting though. Could this interfere with some other OXPs...?
If you're creating an OXP for public release, it should never touch the universal settings, unless that's all it does and nothing else. My impression was you're tweaking your own ooniverse.

You can adjust sky settings for universal, for interstellar space, or for individual systems or interstellar spaces. Assuming you generally like lots of stars and have found one particular system you think is too red (which is how I read your remarks), set the star count in universal and the sky colour for the particular system.
Knotty
Dangerous
Dangerous
Posts: 66
Joined: Sat Jun 09, 2012 11:22 pm

Re: Setting background stars & nebulas

Post by Knotty »

Hi,
if you're going for realistic colours:
http://outreach.atnf.csiro.au/education ... olour.html
http://www.vendian.org/mncharity/dir3/starcolor/
which i've translated as:
"0.6 0.7 1.0 1.0 0.8 0.4"
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16055
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Setting background stars & nebulas

Post by Cody »

Thanks, Knotty... and welcome aboard!
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!
User avatar
Shipbuilder
---- E L I T E ----
---- E L I T E ----
Posts: 877
Joined: Thu May 10, 2012 9:41 pm
Location: Derby

Re: Setting background stars & nebulas

Post by Shipbuilder »

Good info there Knotty.

Welcome to the forum.
The GalTech Industries Corporation - Building ships to populate the galaxies.

Increase the variety of ships within your Ooniverse by downloading my OXPs

Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6310
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Setting background stars & nebulas

Post by Diziet Sma »

Way to make an entrance, Knotty! 8)

Welcome to "the friendliest board this side of Riedquat"™ !
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
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: Setting background stars & nebulas

Post by JazHaz »

Knotty wrote:
Hi,
if you're going for realistic colours:
http://outreach.atnf.csiro.au/education ... olour.html
http://www.vendian.org/mncharity/dir3/starcolor/
which i've translated as:
"0.6 0.7 1.0 1.0 0.8 0.4"
Excellent. Have tried these settings out and they look nice. Here's the result, the sun is not too red and the background stars look good.

Image
Oolite background stars settings by JazHaz, on Flickr
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
Post Reply