Optional Vanilla Water Shader

Feedback on past, current, and future development.
User avatar
drummyfish
Posts: 151
Joined: 22 Oct 2017, 10:13
Github profile: https://gitlab.com/drummyfish
Contact:

Re: Optional Vanilla Water Shader

Post by drummyfish » 30 Jun 2018, 17:56

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.

User avatar
wareya
Posts: 176
Joined: 09 May 2015, 13:07

Re: Optional Vanilla Water Shader

Post by wareya » 30 Jun 2018, 19:25

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.
paying attention to #1751/#1816 #2473 #3609 #3862/#3929 #3807 #4297

User avatar
lysol
Posts: 928
Joined: 26 Mar 2013, 01:48
Location: Sweden

Re: Optional Vanilla Water Shader

Post by lysol » 30 Jun 2018, 19:32

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.
Normal mapped texture replacers, exclusive for OpenMW:
My Nexus page

User avatar
DecumusScotti
Posts: 29
Joined: 08 Jul 2016, 17:26

Re: Optional Vanilla Water Shader

Post by DecumusScotti » 01 Jul 2018, 00:51

Looks exactly like the vanilla MW shader to me. Impressive!

User avatar
AnyOldName3
Posts: 941
Joined: 26 Nov 2015, 03:25

Re: Optional Vanilla Water Shader

Post by AnyOldName3 » 01 Jul 2018, 01:15

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).
AnyOldName3, Master of Shadows

User avatar
drummyfish
Posts: 151
Joined: 22 Oct 2017, 10:13
Github profile: https://gitlab.com/drummyfish
Contact:

Re: Optional Vanilla Water Shader

Post by drummyfish » 01 Jul 2018, 16:12

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest