Progress

General discussion for players of Oolite.

Moderators: winston, another_commander

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6668
Joined: Wed Feb 28, 2007 7:54 am

Re: Progress

Post by another_commander »

For those who may have missed the recent discussion on github, there s a new unifrm used now in Oolite and it refers to atmospheric fog.

Since approximately v1.69, when shaders were first introduced, Oolite has been carrying a "bug": atmospheric fog did not work. This, technically, is not a bug, since The OpenGL specification states that fog should be disabled when there are fragment shaders running. However, it did look kind of weird, to say the least and was something that needed fixing.

See the pic below. This is what you have been seeing up to now when shaders were enabled and you were looking up at the Lave Coriolis station from within the atmosphere:
Image

In reality, it should look like this (which is what you can already see with shaders disabled:
Image

The deeper you go into the atmosphere, the denser the fog becomes. This creates not only a more pleasing visual effect, but also a sense of scale increase, which is good.

Thanks to some shader wizardry by kanthoney, shader writers can now bind the method fogUniform, which holds the fog color's rgba value, to a vec4 type uniform and apply the effect on their creations. You can refer to the current nightly's Resources\Shaders\oolite-default-shader.fragment (vec4 uFogColor) for an example of how we use it (but keep in mind that Oolite binds the uniforms to methods internally for its default shaders, so you aay still need to do the fogUniform binding manually).

Edit: Example of foggified Griff's Dodo spawned inside planet's atmosphere:
Image
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Progress

Post by Cody »

another_commander wrote:
For those who may have missed the recent discussion on github...
I did miss that discussion... but I did see the foggy commit(s) on the nightly page.
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
kanthoney
Commodore
Commodore
Posts: 281
Joined: Thu Nov 07, 2013 10:21 pm

Re: Progress

Post by kanthoney »

another_commander wrote:
You can refer to the current nightly's Resources\Shaders\oolite-default-shader.fragment (vec4 uFogColor) for an example of how we use it (but keep in mind that Oolite binds the uniforms to methods internally for its default shaders, so you aay still need to do the fogUniform binding manually).
I've just tweaked the shader code a bit to simplify it (I'm using the built in mix function instead of doing the maths myself), so if it looked fearsomely complicated try the new one. I've also tweaked the core code so that the fogging is probably more in line with the non-shader version (there's now more fogging near the ground).
User avatar
kanthoney
Commodore
Commodore
Posts: 281
Joined: Thu Nov 07, 2013 10:21 pm

Re: Progress

Post by kanthoney »

It's been a while since I did one of these. Anyway...

In tonight's build, we've got the new mobile external camera for you to play with. In external view mode, engage caps lock and the arrow / yaw keys will rotate the camera around your ship. Holding shift while using the arrow keys will pan the camera, and page up/down will zoom in and out. Alternatively, you can click and drag using the mouse and zoom using the mouse wheel.

Have fun, and the screenshots thread is here. Let us know if there's anything that could work better, or doesn't work at all.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6668
Joined: Wed Feb 28, 2007 7:54 am

Re: Progress

Post by another_commander »

I would just like to add that, unfortunately, due to our current lack of Mac port maintainers, the new feature is available only for Windows and Linux. The Mac port does not currently have a way to distinguish the status of Caps Lock, so the entire feature cannot be activated, even though its code is included in the Mac binaries. Apologies for any inconvenience caused and, if there is anyone with Mac programming knowledge willing to contribute so that the Mac port can catch up, now would be a very good time to do so.
User avatar
kanthoney
Commodore
Commodore
Posts: 281
Joined: Thu Nov 07, 2013 10:21 pm

Re: Progress

Post by kanthoney »

In tonight's build...

A long time ago, somebody asked for a facility where they could get system information for all the systems along their planned ANA route. So we rustled one up, which worked OK except there was a slight problem - every now and then a planet would disappear, which came as quite a shock to the people living on it let me tell you. Because of that it was deemed not quite polished enough to go into trunk.

Anyway, after an intensive debugging session we managed to get the bug tracked down and sorted, so it's now in trunk. On the F7 system info screen, use the left and right arrow keys for info on the previous / next system on your current route. The home key will show info for the home system and the end key that for the target system.

On the chart, the there will be a blue circle around the system that appears on the F7 screen. That can be moved using the Alt key (or Opt key if you're a Mac user) plus the keys above.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Progress

Post by Cody »

Nice... but Terrastorage seems to be down. I'll try again later... after morning coffee, perhaps.
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
kanthoney
Commodore
Commodore
Posts: 281
Joined: Thu Nov 07, 2013 10:21 pm

Re: Progress

Post by kanthoney »

At least someone noticed. It's very quiet round here, isn't it?
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Progress

Post by Cody »

<nods sadly> Aye... quieter than I've ever known it.
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
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Progress

Post by phkb »

Sorry, I noticed the post but I'm on holidays with the family and likely won't get a chance to try it out until much later in the week. I'm really looking forward to this patch, as it's been a real issue with the F7 screen for a while. Great work, kanthoney!
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Re: Progress

Post by pagroove »

Hello. Can confirm the bind caps lock thing on the Mac works well. You can get some very nice camera angles. Is zooming in/out implemented also? Anyway great work.
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Re: Progress

Post by pagroove »

O I see that zooming out is also implemented. Very nice :D
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Re: Progress

Post by pagroove »

Ok a litte bit confused here. Due to the down situation of the Terrastorage site I was sent to a redirect page where i could download a mac dev version.

In this version there is a folder called: Mac Os. When I run this file Oolite starts and I could get the nice views etc. But then I wanted to try my save game. As I also have a traditional Add ons folder with my own oxp's I moved this folder to the Oolite Trunk dir. But as this folder doesn't have a normal Oolite.app I think that this is not the right way to do that and I think that I have to build a Trunk version via Xcode? Is that right?
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Progress

Post by Cody »

Terrastorage is back up, and the new feature works fine - muchas gracias!
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
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Progress

Post by Cody »

A very minor thing: with the home system set, jump to the next system on the route, and F7 remains on the previous system.
The arrow keys seem stuck there - you have to use the Home key to nudge it along to the new home system.

F7 is really crying-out for more system info/background - even if it's only padding.
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!
Post Reply