2 questions regarding water and view distance

Feedback on past, current, and future development.
User avatar
Lazaroth
Posts: 220
Joined: 30 May 2012, 05:04

2 questions regarding water and view distance

Post by Lazaroth »

1. I tried out some different water normal maps yesterday. How hard would it be to implement a change of used normal map depending on weather and/or if you are indoors (and/or water shader)? It was easy to get really cool results, but some normal maps are better suited for rain and other for a sunny day etc.

2. I also tried out different values using various viewing distances and distant land. How hard would it be to "bind" view distance to the current weather type? E.g. not long when it's foggy and very long when it's a sunny day.
Chris
Posts: 1626
Joined: 04 Sep 2011, 08:33

Re: 2 questions regarding water and view distance

Post by Chris »

Lazaroth wrote:2. I also tried out different values using various viewing distances and distant land. How hard would it be to "bind" view distance to the current weather type? E.g. not long when it's foggy and very long when it's a sunny day.
The fog should be modified to work as exponential rather than linear, but our shaders currently only handle linear fog. Exponential fog has the fog defined as a density value, and is better suited to longer view distances, rather than start and stop points like linear. Incidentally, the ESM defines fog using a density value, but we calculate start and stop points from that for linear fog.
User avatar
dEnigma
Posts: 248
Joined: 24 Nov 2013, 21:24
Location: Hla Oad

Re: 2 questions regarding water and view distance

Post by dEnigma »

@Lazaroth: Can you share some screenshots, pretty please?
User avatar
Lazaroth
Posts: 220
Joined: 30 May 2012, 05:04

Re: 2 questions regarding water and view distance

Post by Lazaroth »

@Chris
Interesting!

@dEnigma

Sure. Here are 2 quick ones:

Rainy day:
http://i.imgur.com/JNfv62K.jpg

Sunny day:
http://i.imgur.com/x2AZTHy.jpg
User avatar
dEnigma
Posts: 248
Joined: 24 Nov 2013, 21:24
Location: Hla Oad

Re: 2 questions regarding water and view distance

Post by dEnigma »

Very nice, that would be a cool feature. Also different, or more pronounced, specular maps for ground textures in rainy weather would be awesome.
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: 2 questions regarding water and view distance

Post by scrawl »

How hard would it be to implement a change of used normal map depending on weather and/or if you are indoors (and/or water shader)? It was easy to get really cool results, but some normal maps are better suited for rain and other for a sunny day etc.
It's not difficult to do, and we will offer much more options than just changing the normal map (basically changing any of the shader parameters). I also plan to add an in-game tweaking UI for these settings, so you can see the results of your changes immediately.
The question is where all this should go. We have the weather fallback settings from Morrowind.ini in openmw.cfg, but this is supposed to be phased out later when we move settings to the content files. @Zini: Would it be acceptable to add new, optional fallback settings that weren't in MW?
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: 2 questions regarding water and view distance

Post by Zini »

Probably. Depends on what exactly needs to be added. Would like to review these proposed settings first before you start to implement them. btw. are we talking about pre- or post-1.0 here?
User avatar
Lazaroth
Posts: 220
Joined: 30 May 2012, 05:04

Re: 2 questions regarding water and view distance

Post by Lazaroth »

Since this was featured on the front page, I thought I'd add the water shaders here, if people want to check it out or improve it.

The (unrared) file goes into \resources\materials\
Sun is a bit more calm than standard and rain more busy.

One other notable change is that I changed the water color from green to blue.
The parameters start on line 137 called "tweakables".
Attachments
sun.rar
(3.38 KiB) Downloaded 283 times
rain.rar
(3.38 KiB) Downloaded 263 times
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: 2 questions regarding water and view distance

Post by scrawl »

sun.rar looks great. I'd like to make it the new default, but can we keep the sunlight scattering colour green as it was? We can make it a bit more subtle, but the colour should be green.
Probably. Depends on what exactly needs to be added. Would like to review these proposed settings first before you start to implement them.
Not completely sure about that yet. Easiest way would be just one setting "Weather_Water" giving a water material name, and defining that material would be handled in a resource file. I haven't thought about if / how we should handle water transitions when switching to a new weather.
btw. are we talking about pre- or post-1.0 here?
pre-1.0, that is with original ESM format.
User avatar
Lazaroth
Posts: 220
Joined: 30 May 2012, 05:04

Re: 2 questions regarding water and view distance

Post by Lazaroth »

scrawl wrote:sun.rar looks great. I'd like to make it the new default, but can we keep the sunlight scattering colour green as it was? We can make it a bit more subtle, but the colour should be green.
The main reason I changed it was for things like this, which I just think look too tropical:
http://i.imgur.com/OZWGkUD.jpg

My additional changes tones this "problem" down though.

Below is a toned downed green version (if you still want more green, just raise the middle value):
Attachments
sun_green.rar
(3.38 KiB) Downloaded 266 times
Post Reply