Another Oolite 1.91 question

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

Moderators: winston, another_commander

Post Reply
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Another Oolite 1.91 question

Post by DGill »

Oolite Dev 1.91 looks good and works well except when I try to display images when docked.

The images seem washed out compared to the vibrant colours of Oolite 1.90:

Oolite 1.90 image:

Image

Oolite 1.91 image:

Image

The js code (from my Hoopy Casino oxp) producing the image is:

if(this.$cwin == "luck")
{
mission.runScreen({title: "C R A P S", choicesKey: "hoopy_dice_yesno"}, this.choiceEvaluation);
setScreenBackground({ name: ("dice" + this.$dice + ".png"), height: 480 });
}

Any suggestions as to how I can adjust / correct the colour of images displayed in dev ver 1.91?

With the exception of the display screen colour all other colours and brightness look fine in 1.91. I have disabled other oxps such as BGS but makes no difference.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6681
Joined: Wed Feb 28, 2007 7:54 am

Re: Another Oolite 1.91 question

Post by another_commander »

This is partially because the background images in 1.90 are not tonemapped, but in 1.91 they are. However, there is indeed a discrepancy with how b/g images are displayed as well. When Oolite displays stuff, there is normally a gamma correction process going on so that accurate output colors are produced. Without getting too technical, this process seems to not be fully applied for backgrounds. This is a known issue (#412 on GitHub) and the workaround is to edit the original images and darken them by applying a gamma factor of 2.2 to them.

Yup, not perfect, I know. Haven't had time for a proper fix yet.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6681
Joined: Wed Feb 28, 2007 7:54 am

Re: Another Oolite 1.91 question

Post by another_commander »

Oh, by the way, there is a color saturation control I've been working on, which could maybe be made scriptable in the future. This would also help, but it would pump saturation globally and not only on backgrounds.
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Re: Another Oolite 1.91 question

Post by DGill »

Thanks for the explanation, hopefully vrs 1.92 will address the issue or else I have a lot of image editing to do!
User avatar
hiran
Theorethicist
Posts: 2403
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Another Oolite 1.91 question

Post by hiran »

DGill wrote: Fri May 19, 2023 2:41 pm
Thanks for the explanation, hopefully vrs 1.92 will address the issue or else I have a lot of image editing to do!
Even worse: Depending on the Oolite version you want one or the other image to be displayed.
Sunshine - Moonlight - Good Times - Oolite
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6681
Joined: Wed Feb 28, 2007 7:54 am

Re: Another Oolite 1.91 question

Post by another_commander »

The issue with the washed out GUI images should now be fixed. A pull request with the fix has already been raised on github and awaits some further testing. Test executable for anyone willing to give it a go is available here: https://drive.google.com/file/d/1y-Dif6 ... sp=sharing

With reference to DGill's earlier images, this is the before and the after:

Before:
Image

After:
Image
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Re: Another Oolite 1.91 question

Post by DGill »

Thanks a_c. I've tried your new oolite.exe and it has resolved the issues I was having:

Image

Both BGS and docked screens working well - much appreciate your efforts.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6681
Joined: Wed Feb 28, 2007 7:54 am

Re: Another Oolite 1.91 question

Post by another_commander »

Just popping in to mention that the fix is now in master and is included in the nightly builds from now on.
DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Re: Another Oolite 1.91 question

Post by DGill »

Thank you for taking the time to fix the problem.
Post Reply