Optional Vanilla Water Shader
- drummyfish
- Posts: 154
- Joined: 22 Oct 2017, 10:13
- Contact:
Re: Optional Vanilla Water Shader
In my recent 360 degree screenshots I already have the code for creating the environment cubemap. This technique has a lot of drawbacks, the cubemap cannot be rendered each frame, at least not on slower machines - in vanilla it seems to be rerendered each 20 seconds from what I've just tested - that causes the reflection to suddenty change which is not nice. Also in vanilla only terrain and sky is reflected. The result then seems to be just reflection + fresnel, water depth and such seem to be ignored. Should we mirror this bahavior exactly, or should we try to improve it by reflecting actors etc.? Should it be configurable? What would the defaults be etc.? Some ref shots.
Re: Optional Vanilla Water Shader
I mean, it's not completely necessary to use a cubemap, it just makes the math simpler, right?
The code for just reflecting terrain is relatively simple (with the caveat that you need to render statics when indoors), and yeah, it has a huge performance benefit over also reflecting statics and animated models.
The code for just reflecting terrain is relatively simple (with the caveat that you need to render statics when indoors), and yeah, it has a huge performance benefit over also reflecting statics and animated models.
Re: Optional Vanilla Water Shader
Why not have a similar type of menu as the current one? Except that instead of Water shader = True/False it could be a drop down menu where you could pick "Off/Old School/Modern" or something like that. Vanilla wouldn't really make sense since that presumes you are running Morrowind. Then you should be able to pick "Reflect terrain", "Reflect terrain + objects" and "Reflect all" too.
- DecumusScotti
- Posts: 49
- Joined: 08 Jul 2016, 17:26
Re: Optional Vanilla Water Shader
Looks exactly like the vanilla MW shader to me. Impressive!
- AnyOldName3
- Posts: 2677
- Joined: 26 Nov 2015, 03:25
Re: Optional Vanilla Water Shader
That's because it's screenshots of the vanilla water shader. It's not something that can be cobbled together in a few hours (although the right person might be able to get close-ish).
- drummyfish
- Posts: 154
- Joined: 22 Oct 2017, 10:13
- Contact:
Re: Optional Vanilla Water Shader
Yep, it's vanilla
Looking at the current water shader right now, it's a huge mess, might use some refactoring first. I might try to do it, seems like a good warmup.
Looking at the current water shader right now, it's a huge mess, might use some refactoring first. I might try to do it, seems like a good warmup.
-
- Posts: 7
- Joined: 22 Jan 2017, 18:40
Re: Optional Vanilla Water Shader
Will the vanilla water shader be a milestone for the 1.0?
I really hope so.
Open MW tries so hard to make a perfect copy of vanilla Morrowind and the water is somewhat ignored.
I really hope so.
Open MW tries so hard to make a perfect copy of vanilla Morrowind and the water is somewhat ignored.
Re: Optional Vanilla Water Shader
If someone sends a pull request with that water shader, then sure. But I'd rather not wait one extra year for 1.0 just because of a not very nice looking water shader.CaptainCosmotic wrote: ↑06 Sep 2018, 21:07 Will the vanilla water shader be a milestone for the 1.0?
I really hope so.
Open MW tries so hard to make a perfect copy of vanilla Morrowind and the water is somewhat ignored.
- AnyOldName3
- Posts: 2677
- Joined: 26 Nov 2015, 03:25
Re: Optional Vanilla Water Shader
The biggest things we don't have are mostly related to us not computing the normal map based on things touching the water. If we did that and used the computed normal map with the existing shader, it would beat both our current and the vanilla shader easily. Disabling the reflection and refraction of statics and actors with settings might go a chunk of the way towards attaining the performance of the vanilla shader, too.
-
- Posts: 7
- Joined: 22 Jan 2017, 18:40
Re: Optional Vanilla Water Shader
I did not understand everything you said du to my restricted language (I am german) and du to my bad technical capabilities.AnyOldName3 wrote: ↑06 Sep 2018, 22:23 The biggest things we don't have are mostly related to us not computing the normal map based on things touching the water. If we did that and used the computed normal map with the existing shader, it would beat both our current and the vanilla shader easily. Disabling the reflection and refraction of statics and actors with settings might go a chunk of the way towards attaining the performance of the vanilla shader, too.
Did you say there ist an easy way implementing the basic look of the vanilla shader, but there would be no "rippling" effects?
I would take this in no time.
Can someone please open a pull requests for it on Git Lab? (I never did anything like that)
I would rather wait a while for 1.0 than seen it published, missing one of morrowinds most iconic graphical features.