Question ? Changing space color to dark blue
Moderators: winston, another_commander
-
- ---- E L I T E ----
- Posts: 471
- Joined: Sun Jan 23, 2011 9:27 pm
- Location: Belgium, Monarchy, Feudal, Overtaxed system
Question ? Changing space color to dark blue
Just wondering if it were possible to change the space color from black to dark blue (frontier like) in Oolite 1.77.1 and Trunk (1.79). I would like to have an Oolite with a more frontier feel instead of the stock pitch black.
Can someone tell me how ?
Thanks
Dertien
Can someone tell me how ?
Thanks
Dertien
Alpha Backer of Elite Dangerous
With 250 GBP
With 250 GBP
Re: Question ? Changing space color to dark blue
https://bb.oolite.space/viewtopic.php?f=6&t=13174
I posted this ages ago as a suggestion for changing the colour of space but nobody seemed interested so I haven't ever gone back to it. The only drawback with this I found was when going in and out of an atmosphere, it goes from black to blue and then blue to black. As soon as you clear the atmosphere the colour would jump back to red or blue again. Probably would need a bit more work to get it right...
I posted this ages ago as a suggestion for changing the colour of space but nobody seemed interested so I haven't ever gone back to it. The only drawback with this I found was when going in and out of an atmosphere, it goes from black to blue and then blue to black. As soon as you clear the atmosphere the colour would jump back to red or blue again. Probably would need a bit more work to get it right...
Desktop PC: CPU: Intel i7-4790K Quad Core 4.4GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1080Ti RAM: 32GB DDR3
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
Re: Question ? Changing space color to dark blue
Three things other than the planetary one (which can be partially fixed by blending against the background colour in OOPlanetEntity's update function, though depending on the background colour that might look rather odd).Pleb wrote:Probably would need a bit more work to get it right...
- a stylistic one: we have [OOColor colorWithDescription] which can parse just about anything into a colour. Have a look at how it's used for e.g. star and nebula colours.
- a stylistic one: rather than replicating the same code, add a [UNIVERSE setDefaultSkyColor] method.
- a gameplay one: the degree of atmospheric heating experienced is tied to the alpha channel of the background sky. So if you make the sky anything other than black and hit the torus drive? Boom! Customisation of sky colour would need that to be separated out (which would be fairly easy and also have other uses)
-
- ---- E L I T E ----
- Posts: 471
- Joined: Sun Jan 23, 2011 9:27 pm
- Location: Belgium, Monarchy, Feudal, Overtaxed system
Re: Question ? Changing space color to dark blue
Yes, exactly what I was looking for, thank you very much !
Alpha Backer of Elite Dangerous
With 250 GBP
With 250 GBP
-
- ---- E L I T E ----
- Posts: 471
- Joined: Sun Jan 23, 2011 9:27 pm
- Location: Belgium, Monarchy, Feudal, Overtaxed system
Re: Question ? Changing space color to dark blue
@Pleb
Okay, this worked out fine thanks:
The line numbers were as to be expected no longer correct, but they are easy to find.
However, for future reference, I got an error when applying the last change to the Universe.m file. following your instructions. I just omitted the last change
The error when compiling:
So if anyone wants to do this on their own again, you might want to delete the part in your original post that says:
It would be a plus to have this in the next release, as a standard, so it would not be necessary to have people create their own builds just for this. If no changes are made to the planetinfo.plist, it stays black anyhow.
Okay, this worked out fine thanks:
The line numbers were as to be expected no longer correct, but they are easy to find.
However, for future reference, I got an error when applying the last change to the Universe.m file. following your instructions. I just omitted the last change
The error when compiling:
Code: Select all
Compiling file src/Core/Universe.m ...
src/Core/Universe.m:9285:4: warning: data definition has no type or storage clas
s [enabled by default]
src/Core/Universe.m:9285:4: warning: type defaults to 'int' in declaration of 's
kyClearColor' [enabled by default]
src/Core/Universe.m:9285:24: error: 'systeminfo' undeclared here (not in a funct
ion)
src/Core/Universe.m:9286:4: warning: data definition has no type or storage clas
s [enabled by default]
src/Core/Universe.m:9286:4: warning: type defaults to 'int' in declaration of 's
kyClearColor' [enabled by default]
src/Core/Universe.m:9286:4: error: conflicting types for 'skyClearColor'
src/Core/Universe.m:9285:4: note: previous definition of 'skyClearColor' was her
e
src/Core/Universe.m:9287:4: warning: data definition has no type or storage clas
s [enabled by default]
src/Core/Universe.m:9287:4: warning: type defaults to 'int' in declaration of 's
kyClearColor' [enabled by default]
src/Core/Universe.m:9287:4: error: conflicting types for 'skyClearColor'
src/Core/Universe.m:9285:4: note: previous definition of 'skyClearColor' was her
e
src/Core/Universe.m:9288:4: warning: data definition has no type or storage clas
s [enabled by default]
src/Core/Universe.m:9288:4: warning: type defaults to 'int' in declaration of 's
kyClearColor' [enabled by default]
src/Core/Universe.m:9288:4: error: conflicting types for 'skyClearColor'
src/Core/Universe.m:9285:4: note: previous definition of 'skyClearColor' was her
e
make[3]: *** [obj.win.spk/oolite.obj/Universe.m.o] Error 1
make[2]: *** [internal-objc_program-all_] Error 2
make[1]: *** [oolite.all.objc-program.variables] Error 2
make: *** [internal-all] Error 2
So if anyone wants to do this on their own again, you might want to delete the part in your original post that says:
Now go down to about line 9071 and insert the following code:
Code:
// Define space background color or set to black as default:
skyClearColor[0] = [systeminfo oo_floatForKey:@"space_color_red" defaultValue:0.0];
skyClearColor[1] = [systeminfo oo_floatForKey:@"space_color_green" defaultValue:0.0];
skyClearColor[2] = [systeminfo oo_floatForKey:@"space_color_blue" defaultValue:0.0];
skyClearColor[3] = [systeminfo oo_floatForKey:@"space_color_alpha" defaultValue:0.0];
It would be a plus to have this in the next release, as a standard, so it would not be necessary to have people create their own builds just for this. If no changes are made to the planetinfo.plist, it stays black anyhow.
Alpha Backer of Elite Dangerous
With 250 GBP
With 250 GBP
Re: Question ? Changing space color to dark blue
I did this a while ago so that last bit may not be relevant anymore. As cim stated it needs a bit of work doing to it for it to be completely usable but I'm sure it wouldn't be too hard.
Desktop PC: CPU: Intel i7-4790K Quad Core 4.4GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1080Ti RAM: 32GB DDR3
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
Re: Question ? Changing space color to dark blue
wow that looks great, i'm a fan of blue space too, it really makes the ships pop out from the background so would really love it as an option in oolite in some future build.
Wiki homepage for my OXP: http://wiki.alioth.net/index.php/Griff_Industries
-
- Dangerous
- Posts: 106
- Joined: Fri Jan 31, 2014 1:08 am
Re: Question ? Changing space color to dark blue
I'd like to see that as well.
Location - Galaxy 5 : Python Explorer : Elite
'Death by Wife is fast becoming a real world OXP mission'
'Death by Wife is fast becoming a real world OXP mission'
-
- ---- E L I T E ----
- Posts: 471
- Joined: Sun Jan 23, 2011 9:27 pm
- Location: Belgium, Monarchy, Feudal, Overtaxed system
Re: Question ? Changing space color to dark blue
Just as a teaser, here's a screenshot with the BBS Krait
@Cim, And I did hit the torus drive, but fortunately, no BOOM; should I fly somewhere more specific in order to see the boom ? Tried it with and without external heat shielding installed.
@Cim, And I did hit the torus drive, but fortunately, no BOOM; should I fly somewhere more specific in order to see the boom ? Tried it with and without external heat shielding installed.
Alpha Backer of Elite Dangerous
With 250 GBP
With 250 GBP
Re: Question ? Changing space color to dark blue
Ah, looking at the way Pleb is setting the colour, it's not also setting the atmospheric heating levels. So you should be safe for now.dertien wrote:@Cim, And I did hit the torus drive, but fortunately, no BOOM; should I fly somewhere more specific in order to see the boom ? Tried it with and without external heat shielding installed.
-
- ---- E L I T E ----
- Posts: 471
- Joined: Sun Jan 23, 2011 9:27 pm
- Location: Belgium, Monarchy, Feudal, Overtaxed system
Re: Question ? Changing space color to dark blue
I am really glad for that, since I like blue flavored space better than the stock one, especially since some of the ships are randomly colored black with the shader the BBS ship pack uses, which doesn't marry too well with black space.
Alpha Backer of Elite Dangerous
With 250 GBP
With 250 GBP
-
- Dangerous
- Posts: 106
- Joined: Fri Jan 31, 2014 1:08 am
Re: Question ? Changing space color to dark blue
So, is it possible in an OXP, that's the question, and will one of the ever amazing OXP creators (a little flattery goes a long way) create such a thing.
Location - Galaxy 5 : Python Explorer : Elite
'Death by Wife is fast becoming a real world OXP mission'
'Death by Wife is fast becoming a real world OXP mission'
Re: Question ? Changing space color to dark blue
No at present it's just an incomplete coding amendment I wrote. You can modify the source and recompile the game so that you can recreate this, but it does need some tinkering to iron out the bugs...
Desktop PC: CPU: Intel i7-4790K Quad Core 4.4GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1080Ti RAM: 32GB DDR3
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
-
- Dangerous
- Posts: 106
- Joined: Fri Jan 31, 2014 1:08 am
Re: Question ? Changing space color to dark blue
Dagnabbit!!!!Pleb wrote:No at present it's just an incomplete coding amendment I wrote. You can modify the source and recompile the game so that you can recreate this, but it does need some tinkering to iron out the bugs...
Location - Galaxy 5 : Python Explorer : Elite
'Death by Wife is fast becoming a real world OXP mission'
'Death by Wife is fast becoming a real world OXP mission'
-
- Dangerous
- Posts: 106
- Joined: Fri Jan 31, 2014 1:08 am
Re: Question ? Changing space color to dark blue
Blue Is Best
I have to agree with the idea that putting it in as an In Game option might just be a very good idea.
(Can't just just tell that I was very tired when writing the previous sentence)
I have to agree with the idea that putting it in as an In Game option might just be a very good idea.
(Can't just just tell that I was very tired when writing the previous sentence)
Location - Galaxy 5 : Python Explorer : Elite
'Death by Wife is fast becoming a real world OXP mission'
'Death by Wife is fast becoming a real world OXP mission'