Progress
Moderators: winston, another_commander
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: Progress
@Commander_X
That's great! Who needs time accelerators with such a OOniverse to admire!?!
That's great! Who needs time accelerators with such a OOniverse to admire!?!
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
- Redspear
- ---- E L I T E ----
- Posts: 2689
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: Progress
Very nice. I look forward to trying it out. Thanks guys!another_commander wrote:just wanted to let you know that from tonight's nightly we will have the new atmosphere shaders in the game for everyone to enjoy...
Full credit and thanks to Commander_X for this contribution.
-
- ---- E L I T E ----
- Posts: 675
- Joined: Sat Aug 09, 2014 4:16 pm
Re: Progress
Very happy this went through!
Kudos to the dev people, as well, for promptly assuming the tasks that were out of my league!
Kudos to the dev people, as well, for promptly assuming the tasks that were out of my league!
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Progress
Is there a simple way to lessen the atmosphere intensity?
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!
And any survivors, their debts I will certainly pay. There's always a way!
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Progress
Try playing a bit with the Hopefully that gets you the effect you want.
Edit: Factoid: For changes to shaders, you do not need to hold Shift down when starting the game for them to take effect.
[b]newOpacity[/b]
variable inside the oolite-default-atmosphere.fragment shader. At the bottom of the file you will find this:
Code: Select all
float dp = abs(dot(nvEyeVector, vec3(0.0,0.0,1.0)));
if (dp > 0.16) {
newOpacity = min(1.0, pow(0.16/dp,2.0)) * quant;
}
else
{
newOpacity = pow(dp/0.16,5.0) * quant;
}
newOpacity *= 0.5; // <--------- Add this line, adjust the number to your prefs
}
gl_FragColor = vec4(totalColor, newOpacity);
}
Edit: Factoid: For changes to shaders, you do not need to hold Shift down when starting the game for them to take effect.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Progress
Ooh, more tinkering... thankee!
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!
And any survivors, their debts I will certainly pay. There's always a way!
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Progress
The Perlin3D planets are now part of the game. P3D planet textures can be selected for each system independently by use of the planetinfo.plist boolean key perlin_3d. Lack of this key (or setting it to NO) will choose the standard texture method. Setting this key to YES in the "universal" section of planetinfo will make the Perlin 3D textures the default for all systens.
The default selection for planet textures is still the one we've had until now. Although Perlin3D textures are cool, there are two known issues at this time:
- Performance: There is a one or two seconds delay each time you press the F7 key for a P3D texture to be generated and displayed. Hyperspace jump sequence is also one or two seconds longer when entering a system sporting a P3D texture. This was observed on an old 2GHz Core2Duo, so on a more recent system this may not be such a problem. It would be good if this could be somewhat optimized though.
- The P3D textures appear to not be completely procedural. Sequential runs of the game produce slightly different textures each time for the same system. Land, sea and polar fractions, as well as cloud percentages are as expected, but the textures themselves do not repeat exactly between runs.
Both these two issues need to be investigated and resolved before P3D textures become standard. But including them in the game will enable their testing on a variety of systems and maybe give us some additional performance metrics. Oh, and they look good, too!
The default selection for planet textures is still the one we've had until now. Although Perlin3D textures are cool, there are two known issues at this time:
- Performance: There is a one or two seconds delay each time you press the F7 key for a P3D texture to be generated and displayed. Hyperspace jump sequence is also one or two seconds longer when entering a system sporting a P3D texture. This was observed on an old 2GHz Core2Duo, so on a more recent system this may not be such a problem. It would be good if this could be somewhat optimized though.
- The P3D textures appear to not be completely procedural. Sequential runs of the game produce slightly different textures each time for the same system. Land, sea and polar fractions, as well as cloud percentages are as expected, but the textures themselves do not repeat exactly between runs.
Both these two issues need to be investigated and resolved before P3D textures become standard. But including them in the game will enable their testing on a variety of systems and maybe give us some additional performance metrics. Oh, and they look good, too!
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Progress
The same delay is there on my i5-4670K [email protected]/GTX 770 machine, both on F7 and on hyperspace exit.another_commander wrote: ↑Sat May 13, 2017 5:26 pmPerformance: There is a one or two seconds delay each time you press the F7 key for a P3D texture to be generated and displayed. Hyperspace jump sequence is also one or two seconds longer when entering a system sporting a P3D texture. This was observed on an old 2GHz Core2Duo, so on a more recent system this may not be such a problem.
Yes, they do - very good!
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!
And any survivors, their debts I will certainly pay. There's always a way!
Re: Progress
Only a short delay (less than one second) when leaving hyperspace or opening the F7 screen.
This is on a Core i7 870 (old Nehalem) and a Nvidia Quadro 600.
This is on a Core i7 870 (old Nehalem) and a Nvidia Quadro 600.
- Stormrider
- Deadly
- Posts: 241
- Joined: Sat Jan 25, 2014 2:35 am
- Location: At work
Re: Progress
Yes, only a slight delay (under 1 second) for me as well. Fps drop to 130 on F7, run steady at 199 on F3, but if I've got a course plotted on F6 fps is around 100, 160 on F6 if no course plotted. In hyperspace I didn't notice much of a delay but with the planet in view fps is around 100 as soon as the planet leaves the field of view fps climb to 199.
my specs
I'll test on my AMD desktop with the radeon GPU when I get the chance.
my specs
Code: Select all
System: Kernel: 3.19.0-32-generic x86_64 (64 bit gcc: 4.8.2)
Desktop: MATE 1.12.0 (Gtk 3.10.8) Distro: Linux Mint 17.3 Rosa
CPU: Quad core Intel Core i7-2760QM (-HT-MCP-) cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 19155
clock speeds: max: 3500 MHz 1: 1958 MHz 2: 1025 MHz 3: 1443 MHz
4: 803 MHz 5: 827 MHz 6: 1351 MHz 7: 807 MHz 8: 1303 MHz
Graphics: Card-1: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
bus-ID: 00:02.0
Card-2: NVIDIA GF119M [NVS 4200M] bus-ID: 01:00.0
Display Server: X.Org 1.17.1 drivers: nvidia (unloaded: intel)
Resolution: [email protected]
GLX Renderer: NVS 4200M/PCIe/SSE2
GLX Version: 4.5.0 NVIDIA 375.39 Direct Rendering: Yes
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Progress
Thanks to all who have posted feedback regarding performance. Just wanted to note that performance is expected to be affected only during the P3D texture generation. Once the texture for a system has been generated, it should behave like any normal planet texture. FPS will drop when a planet is in view, but I would expect this to be the case also with the standard planet textures.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Progress
In tomorrow's nightly, we will have a slightly darker default environment. The default ambient light level, which corresponds to the value of 1.0 has been reduced by a factor of 4. This change gives a better contrast between lit and unlit parts of models and makes the dark side of a planet appear actually dark.
Those who prefer the previous default appearance can restore it by mutliplying the
Those who prefer the previous default appearance can restore it by mutliplying the
ambient_level
planetinfo parameter they use by 4.Re: Progress
If I understand correctly, ambient_level is internally divided by 4, correct? It seems to be a quite intrusive change (I'm thinking about the OXPs that modify it; if I'm not mistaken most of them don't have a maintainer anymore), compared to changing it to 0.25 in the config file. What's the idea behind this?
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Progress
You are correct, it is internally reduced so that the 1.0 ambient_level has been recalibrated to a darker value. The idea is to improve general lighting in-game. Here is an example of Lave as it's been till now, as soon as you exit the station:
And here is what it looks like with this change:
Note a few things in these shots:
1. The second one has better contrast between lit and unlit parts (seen in the laser cannon). It is even more evident if you rotate the ship.
2. The first image looks more washed out.
3. This is quite important: The atmosphere is supposed to be slightly biased towards the blue color. This is not visible at all on the first pic, while it can be perceived as such on the bottom.
4. The dark side of the planet is indeed dark on the second pic, but too intensely lit on the first.
I think that the overall effect is worth it, especially if you use Perlin3D textures. Of course, if it is tested and people prefer the old way, it can easily be changed back or even be made a user defaults parameter.
And here is what it looks like with this change:
Note a few things in these shots:
1. The second one has better contrast between lit and unlit parts (seen in the laser cannon). It is even more evident if you rotate the ship.
2. The first image looks more washed out.
3. This is quite important: The atmosphere is supposed to be slightly biased towards the blue color. This is not visible at all on the first pic, while it can be perceived as such on the bottom.
4. The dark side of the planet is indeed dark on the second pic, but too intensely lit on the first.
I think that the overall effect is worth it, especially if you use Perlin3D textures. Of course, if it is tested and people prefer the old way, it can easily be changed back or even be made a user defaults parameter.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Progress
Good - that'll apply to F7 too, I take it.another_commander wrote: ↑Fri May 19, 2017 4:04 pmIn tomorrow's nightly, we will have a slightly darker default environment. The default ambient light level has been reduced by a factor of 4.
Those Perlin3D textures do interesting things with the terminator.another_commander wrote: ↑Fri May 19, 2017 4:04 pmI think that the overall effect is worth it, especially if you use Perlin3D textures.
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!
And any survivors, their debts I will certainly pay. There's always a way!