Announcement

Collapse
No announcement yet.

[Community Project] WIP Weather & Ocean Water Shader

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

    @OverRated_AU - that looks awesome! You should submit a pull request.
    Storyteller - An immersive VR audiobook player

    Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

    Comment


      I was reading back at about page 9 and found some info about when objects will sink slightly then pop back up. There was some examples of structs to fix it and messages saying they were to be built into the project.

      Can anyone point me in the right direction of where to find them and any documentation which might help me use them?

      Thanks!

      Comment


        Hi all! how's this plugin progressing.. I checked out the 4.9 version last year and thought cool!

        Have you seen Storm Simulator?



        This level of realism would be nice!
        Co-Chair of the IGDA Virtual, Augmented, and Mixed Realities Special Interest Group
        www.jamietelford.com

        Comment


          I've been loving the hell out of this project, but just noticed a quirk that I can't seem to figure out..

          With the day/night cycle, it seems that how dark it gets is tied to the starting time of day. If I start it at noon, when 4:30am comes, everything is still pretty bright. If I start it at 4:30am, then when night comes it actually gets pitch black. Any ideas what may be going on here?

          I've also noticed the moon is terribly out of sync with the sun and comes up at noon. So far all efforts I've made to reposition it end with it being automatically snapped back to the starting location.

          Comment


            Have you all seen Bethesdas military sim stuff for oceans. Its what this project dreams (and I dream of creating off it one day) to be.

            Tek LLC a personal Candaian Company running BlenderTek & UnrealTek is currently looking for help to bring back submarine simulator gaming with a new genre of sub sims: Cold War! (1945-1991) Operation: Trident SubSim Dev Diary Thread - Donations

            Comment


              A couple of really great articles about buoyancy simulation by one of the programmers for Just Cause 3:

              http://www.gamasutra.com/view/news/2...ideo_games.php
              http://gamasutra.com/view/news/26323...mes_Part_2.php

              ----------------

              @TK-Master - any chance you could release what you have on the underwater fog? What you showed is already better than what I have.
              Storyteller - An immersive VR audiobook player

              Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

              Comment


                These are some really nice and detailed articles! thanks for the links n00854180t.
                The first part is pretty much Nubtron's BuoyantMesh system so perhaps it can be edited to use the force and damping algorithms from part 2 if only I had this kind of article back in the UDK ways when I was developing my buoyant system and struggling to make it stable

                Edit: wait that's actually the article Nubtron has based his system on haha I don't know why I thought it was a newer article (I guess because Just Cause 3 was released recently).

                I will definitely share the underwater fog, landscape modulation etc. eventually.. the problem once again is time I need to find some time to polish things and expose all the necessary parameters (right now it's a gigantic mess with hardcoded parameters and only works in the demo level so unfortunately it's really not in a "shareable" state atm at all).

                Btw there has been a bit of progress with the underwater masking, it masks it somewhat decently (still far far from perfect but you need to look closely to find masking errors) but the main problem is that I had to use the gerstner wave calculations twice(!) in the post process material which ends up hurting performance (it's at least -10 fps in my machine) so optimization (or a better method altogether actually) is still needed but it's something it could be a high-end graphics option I guess.


                Anyways! in the meantime, here are some juicy screens just for you guys




                It's a quick scene I put together using a few marketplace assets (Ultra Dynamic Sky, Pirates Island etc.) just to see how far I could push the visuals. It took some tweaking but I'm happy with the results overall.
                Getting just right cubemap captures for the skylight can make a huge huge difference, I'm actually working on a system that blends multiple captures over time (for example you can use 24 cubemaps, one per hour) so we can have seamless day-night cycles without any hitches (since it's all pre-captured).

                I should mention that I have slightly cleaned-up/blurred the reflections in photoshop in some of the screens since the artifacts from the ssr (I'm sure we all have seen those) are a bit too distracting

                ------------
                If someone from Epic is reading this.. please! do something about the reflections! we desperately need planar reflections.. screen space reflections are just not good enough for something like this especially not in game when you have control over the camera.. in my opinion the lack of decent reflections in UE4 is the biggest rendering issue when it comes to water.
                Last edited by TK-Master; 01-12-2016, 01:07 PM.

                4.10 Update! -> [Community Project] WIP Weather & Ocean Water Shader
                WIP Interactive Water Shader, WIP 2D Water Sim
                WIP FFT Ocean w/ Foam, Quad-tree Infinite Ocean LOD

                Comment


                  Originally posted by TK-Master View Post
                  These are some really nice and detailed articles! thanks for the links n00854180t.
                  The first part is pretty much Nubtron's BuoyantMesh system so perhaps it can be edited to use the force and damping algorithms from part 2 if only I had this kind of article back in the UDK ways when I was developing my buoyant system and struggling to make it stable

                  Edit: wait that's actually the article Nubtron has based his system on haha I don't know why I thought it was a newer article (I guess because Just Cause 3 was released recently).
                  Derp, didn't realize this, though Nubtron's solution did look awfully familiar! Hah


                  I will definitely share the underwater fog, landscape modulation etc. eventually.. the problem once again is time I need to find some time to polish things and expose all the necessary parameters (right now it's a gigantic mess with hardcoded parameters and only works in the demo level so unfortunately it's really not in a "shareable" state atm at all).

                  Btw there has been a bit of progress with the underwater masking, it masks it somewhat decently (still far far from perfect but you need to look closely to find masking errors) but the main problem is that I had to use the gerstner wave calculations twice(!) in the post process material which ends up hurting performance (it's at least -10 fps in my machine) so optimization (or a better method altogether actually) is still needed but it's something it could be a high-end graphics option I guess.
                  Dang, -10 fps is too big a hit for my purposes (VR). I'll probably have to just disable the Gerstner wave lookups.


                  Anyways! in the meantime, here are some juicy screens just for you guys




                  It's a quick scene I put together using a few marketplace assets (Ultra Dynamic Sky, Pirates Island etc.) just to see how far I could push the visuals. It took some tweaking but I'm happy with the results overall.
                  Getting just right cubemap captures for the skylight can make a huge huge difference, I'm actually working on a system that blends multiple captures over time (for example you can use 24 cubemaps, one per hour) so we can have seamless day-night cycles without any hitches (since it's all pre-captured).

                  I should mention that I have slightly cleaned-up/blurred the reflections in photoshop in some of the screens since the artifacts from the ssr (I'm sure we all have seen those) are a bit too distracting

                  ------------
                  If someone from Epic is reading this.. please! do something about the reflections! we desperately need planar reflections.. screen space reflections are just not good enough for something like this especially not in game when you have control over the camera.. in my opinion the lack of decent reflections in UE4 is the biggest rendering issue when it comes to water.

                  Looks amazing! Can't wait for the release with your fog and terrain modulation Epic work man.
                  Storyteller - An immersive VR audiobook player

                  Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

                  Comment


                    Originally posted by TK-Master View Post
                    These are some really nice and detailed articles! thanks for the links n00854180t.
                    The first part is pretty much Nubtron's BuoyantMesh system so perhaps it can be edited to use the force and damping algorithms from part 2 if only I had this kind of article back in the UDK ways when I was developing my buoyant system and struggling to make it stable

                    Edit: wait that's actually the article Nubtron has based his system on haha I don't know why I thought it was a newer article (I guess because Just Cause 3 was released recently).

                    I will definitely share the underwater fog, landscape modulation etc. eventually.. the problem once again is time I need to find some time to polish things and expose all the necessary parameters (right now it's a gigantic mess with hardcoded parameters and only works in the demo level so unfortunately it's really not in a "shareable" state atm at all).

                    Btw there has been a bit of progress with the underwater masking, it masks it somewhat decently (still far far from perfect but you need to look closely to find masking errors) but the main problem is that I had to use the gerstner wave calculations twice(!) in the post process material which ends up hurting performance (it's at least -10 fps in my machine) so optimization (or a better method altogether actually) is still needed but it's something it could be a high-end graphics option I guess.


                    Anyways! in the meantime, here are some juicy screens just for you guys




                    It's a quick scene I put together using a few marketplace assets (Ultra Dynamic Sky, Pirates Island etc.) just to see how far I could push the visuals. It took some tweaking but I'm happy with the results overall.
                    Getting just right cubemap captures for the skylight can make a huge huge difference, I'm actually working on a system that blends multiple captures over time (for example you can use 24 cubemaps, one per hour) so we can have seamless day-night cycles without any hitches (since it's all pre-captured).

                    I should mention that I have slightly cleaned-up/blurred the reflections in photoshop in some of the screens since the artifacts from the ssr (I'm sure we all have seen those) are a bit too distracting

                    ------------
                    If someone from Epic is reading this.. please! do something about the reflections! we desperately need planar reflections.. screen space reflections are just not good enough for something like this especially not in game when you have control over the camera.. in my opinion the lack of decent reflections in UE4 is the biggest rendering issue when it comes to water.
                    Is that coastline procedurally generated? If so that would solve my problem of having ports that need a coastline and not having to create 500-5000 sub levels of landscape sculpted coastlines for ports that then go to the origin rebasing ocean level. I'm starting to take interest in getting my submarine simulator back up now that I know _so_ much more about UE4 and finish my Java class end of the month then I'll have all the time in the world to dedicate to underwater work.
                    Tek LLC a personal Candaian Company running BlenderTek & UnrealTek is currently looking for help to bring back submarine simulator gaming with a new genre of sub sims: Cold War! (1945-1991) Operation: Trident SubSim Dev Diary Thread - Donations

                    Comment


                      Originally posted by n00854180t View Post
                      Dang, -10 fps is too big a hit for my purposes (VR). I'll probably have to just disable the Gerstner wave lookups.
                      Yeah it definitely is a big hit for a post process, VR or no VR

                      But I have a cheap method to do this by having a small PP volume with blend radius follow the player camera and smoothly "fade in" the underwater fog when the camera goes underwater (so we only need to run the gerstner lookup in blueprint, which has no cost).
                      Obviously it won't look as good with that method but at least it's cheap Also you could do it GTA 5 style (snap the camera underwater) although I have not yet seen how they handle it in first person mode.

                      I wonder, has any game ever done this the proper way? Every game that I have seen tries to avoid this by either having flat water or doing some kind of camera snap or fading.


                      Originally posted by Nsomnia View Post
                      Is that coastline procedurally generated? If so that would solve my problem of having ports that need a coastline and not having to create 500-5000 sub levels of landscape sculpted coastlines for ports that then go to the origin rebasing ocean level. I'm starting to take interest in getting my submarine simulator back up now that I know _so_ much more about UE4 and finish my Java class end of the month then I'll have all the time in the world to dedicate to underwater work.
                      Oh right what happened with your sub sim btw? It's definitely a game I would play if done right not many of its kind either.

                      There is nothing special going with the coastline (apart from the heightmap modulation, which I mentioned in previous page) it's the same depthfade foam that the shader has (I adjusted some parameters of course).

                      If you feel like experimenting.. the heightmap modulation function looks like this:

                      You should multiply the Displacement Alpha with whatever goes to World Displacement input.
                      The commented variables need to be set based on your landscape (location, scale, (texture) size, and the heightmap texture), notice that there is no rotation variable (apparently I suck at rotational math) which means your landscape should have 0 rotation.
                      The heightmap texture can be exported from the engine as png if you have sculpted it by hand, then import it and set the texture compression to HDR to take advantage of the heightmap's 16bit.

                      All of that will be optimized and have exposed blueprint parameters eventually (sometime before 2017 hopefully ).

                      4.10 Update! -> [Community Project] WIP Weather & Ocean Water Shader
                      WIP Interactive Water Shader, WIP 2D Water Sim
                      WIP FFT Ocean w/ Foam, Quad-tree Infinite Ocean LOD

                      Comment


                        Originally posted by TK-Master View Post
                        Yeah it definitely is a big hit for a post proces
                        Did you get in contact with what was his username that forked the github repo and made some great code changes?

                        I'm really _Really_ thinking about putting time in development of the subsim again and now that I've learnt Java at a college/University level I'm sure I can pick up the UE4 API fairly fast and anything I come up with will be shared.

                        We need to get development going.
                        Tek LLC a personal Candaian Company running BlenderTek & UnrealTek is currently looking for help to bring back submarine simulator gaming with a new genre of sub sims: Cold War! (1945-1991) Operation: Trident SubSim Dev Diary Thread - Donations

                        Comment


                          Originally posted by TK-Master View Post
                          Yeah it definitely is a big hit for a post process, VR or no VR

                          But I have a cheap method to do this by having a small PP volume with blend radius follow the player camera and smoothly "fade in" the underwater fog when the camera goes underwater (so we only need to run the gerstner lookup in blueprint, which has no cost).
                          Obviously it won't look as good with that method but at least it's cheap Also you could do it GTA 5 style (snap the camera underwater) although I have not yet seen how they handle it in first person mode.

                          I wonder, has any game ever done this the proper way? Every game that I have seen tries to avoid this by either having flat water or doing some kind of camera snap or fading.
                          The only ones I know of that do it right are the Crysis and Far Cry games - they even do the half-camera above water case right.

                          The volume fade-in sounds perfect for my needs.
                          Storyteller - An immersive VR audiobook player

                          Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

                          Comment


                            Hello everyone and thanks again for this amazing ocean . I have a big problem and maybe one of you will be able to help me. I buy the Ultra Dynamic Sky and personnaly I really love it! Here the probleme: The ocean won't update with the Sky and the Sun. So I see my real-time sun reflection and the reflection of the sun before I press play. I'll show you some screenshot.

                            Click image for larger version

Name:	1.jpg
Views:	1
Size:	922.8 KB
ID:	1098705

                            So If I start the game in Night mode, the ocean will always be dark and vice versa.

                            Click image for larger version

Name:	3.jpg
Views:	1
Size:	974.6 KB
ID:	1098706

                            As we can see the light don't work in real time with the ocean.

                            If someone here know how to fix this, it would be nice to share the solution.

                            Have a good day everyone!

                            Comment


                              That's because of the skylight capture which is not updated in real time and there is no decent solution yet (you can force the skylight to recapture over time but it's too expensive and will cause a noticeable hitch).

                              As I mention above, I'm working on a solution:

                              Getting just right cubemap captures for the skylight can make a huge huge difference, I'm actually working on a system that blends multiple captures over time (for example you can use 24 cubemaps, one per hour) so we can have seamless day-night cycles without any hitches (since it's all pre-captured).

                              4.10 Update! -> [Community Project] WIP Weather & Ocean Water Shader
                              WIP Interactive Water Shader, WIP 2D Water Sim
                              WIP FFT Ocean w/ Foam, Quad-tree Infinite Ocean LOD

                              Comment


                                Thanks for the answer and sorry for the question!

                                Comment

                                Working...
                                X