Announcement

Collapse
No announcement yet.

[Community Project] WIP Weather & Ocean Water Shader

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Originally posted by dazuk1978 View Post
    Hey.

    Yeah I have all that set correctly. I've tried the update interval at everything from 10 to 0.1.
    It really does seem to depend on the time of day you start at as to how dark/light your shadows are. Very odd.

    Hope you can shed some light on it (no pun intended) at some point. Maybe when your update comes through, it may just solve it anyway?

    Cheers
    Daz
    Ahh, that's too bad. Sorry for the troubles, I must have left part of it out...

    I'll post tomorrow morning with an update after I test it out
    [Free Community Project/Plugin] WIP Dynamic Ocean & Calendar Based Sky
    New Features:: Highly accurate sun/moon position, and lunar phase calculations built into the plugin (base class for the SkyDome blueprint)
    In Progress: Weather simulation w/ volumetric clouds

    Comment


    • No problem mate. It'll probably turn out to be my fault somewhere along the line anyway, I'm sure

      Comment


      • Originally posted by dazuk1978 View Post
        No problem mate. It'll probably turn out to be my fault somewhere along the line anyway, I'm sure
        Nah, pretty good chance I forgot to hook it back up, made lots of changes.

        Hey btw since you have been using the new system, have you had any issues with the caledar/moon/sun at all? Even just minor annoyances if there aren't any major problem you've run into so far. Any feedback on what you like or would like to see improved would be valuable to me.

        I've discovered a couple bugs that only happen in a very specific case, which have now been fixed internally.

        Also I would really like to hear what you are wanting as features for a weather system. Currently I plan to incorporate seasons exposed in a material parameter collection that can then be applied to foliage for example, which can be used to drive the colour of leaves/grass and more.

        I have a lot of ideas, just not sure how far I should go. Couple things I plan to add include temperature, climate type, storms & wind that (partially) affect the ocean using the Beaufort scale, and many more ideas.

        Basically I want to know which features you want the most so I can work on them first, this goes for anyone reading this, please let me know!

        Thanks guys!
        [Free Community Project/Plugin] WIP Dynamic Ocean & Calendar Based Sky
        New Features:: Highly accurate sun/moon position, and lunar phase calculations built into the plugin (base class for the SkyDome blueprint)
        In Progress: Weather simulation w/ volumetric clouds

        Comment


        • Originally posted by DotCam View Post
          Nah, pretty good chance I forgot to hook it back up, made lots of changes.

          Hey btw since you have been using the new system, have you had any issues with the caledar/moon/sun at all? Even just minor annoyances if there aren't any major problem you've run into so far. Any feedback on what you like or would like to see improved would be valuable to me.

          I've discovered a couple bugs that only happen in a very specific case, which have now been fixed internally.

          Also I would really like to hear what you are wanting as features for a weather system. Currently I plan to incorporate seasons exposed in a material parameter collection that can then be applied to foliage for example, which can be used to drive the colour of leaves/grass and more.

          I have a lot of ideas, just not sure how far I should go. Couple things I plan to add include temperature, climate type, storms & wind that (partially) affect the ocean using the Beaufort scale, and many more ideas.

          Basically I want to know which features you want the most so I can work on them first, this goes for anyone reading this, please let me know!

          Thanks guys!
          SO glad you asked Dotcam Well...about anything would be nice, as I will need plenty weather stuff more down the road and this way I can save some time and focus on improving other aspects of my project a little more.

          Rain - Please...I never got that one working...I see the particles in the editor but rain never appears...also it seems a bit heavy (resource wise) a blendable (sliders) weather system would be great, and rain that is realistic is really important for me. (No rain indoors, but can see the rain that is outdoors through a opening such as a window or entrance) It's been on my plans for a long time but I have been too busy doing other stuff unrelated to weather.

          Storms and Wind - Yes please, I also don't like the lightning effect we currently have, it seems like everything on screen turns blue instead of just the sky...way too bright or something. Didn't got the time to look into it.

          Seasons - Would be cool yes but for me personally I probably won't be able to use them logistically I might give it a go but probably won't happen.

          Fog - fog/haze effect, blendable with a slider.

          As for the Beaufort scale - I think we all want that, by the way...since you are working on moon phases internally, do they affect the beaufort scale as well?

          The most important thing to bear in mind for me is that the weather conditions are blendable and can be overriden by code, meaning....my C++ or BP can control "ok...now this much rain!, now this much of storm" I would have to change the code if they are full automatic with no option to disable.

          Comment


          • No issues here, even went as far as using the moon and sun and time + timezone to rough guess where you are in the world and seems as accurate as I need, up until the 60's early navigation systems that didnt use a sextant. when I create a sextant, then the accuracy will come into play... and I'll need to make real stars o_O

            Originally posted by NirabhroMakhal View Post
            Hello everyone,

            I would like to contribute what little I can if permitted!
            First I would like to bring out some of the shortcomings of this project. They are:

            1) No actual interaction of meshes with the ocean(eg. ripples)
            2) No waves on the beach.

            1-}
            For the first problem I have found a plugin made by ehamloptiran some years ago. It seems to be dead now.https://forums.unrealengine.com/show...Surface-Plugin
            The last version was working for UE4.11 . I downloaded it and tried it. It installed properly but gave me an error on enabling it inside my project. See this:https://answers.unrealengine.com/que...lation-problem

            2-}
            I have tried to make time- based lerping material which resembles a wave. It needs a lot improvement though, but I have done what I could do.

            Now it needs the right water texture and a bit more perfection. One more thing that it does not have is variation of the waves. If anyone would like to make this material usable please do.

            [ATTACH=CONFIG]98290[/ATTACH]

            Here is my material https://drive.google.com/open?id=0B_...Eh5WWV5YktHVVU

            As you can see I have applied my material on flat cubes and then resized 3 of them.

            If you think it can be improved please suggest and help us improve the ocean project.
            Looking into it.

            Originally posted by DavidNSilva View Post
            SO glad you asked Dotcam Well...about anything would be nice, as I will need plenty weather stuff more down the road and this way I can save some time and focus on improving other aspects of my project a little more.

            Rain - Please...I never got that one working...I see the particles in the editor but rain never appears...also it seems a bit heavy (resource wise) a blendable (sliders) weather system would be great, and rain that is realistic is really important for me. (No rain indoors, but can see the rain that is outdoors through a opening such as a window or entrance) It's been on my plans for a long time but I have been too busy doing other stuff unrelated to weather.

            Storms and Wind - Yes please, I also don't like the lightning effect we currently have, it seems like everything on screen turns blue instead of just the sky...way too bright or something. Didn't got the time to look into it.

            Seasons - Would be cool yes but for me personally I probably won't be able to use them logistically I might give it a go but probably won't happen.

            Fog - fog/haze effect, blendable with a slider.

            As for the Beaufort scale - I think we all want that, by the way...since you are working on moon phases internally, do they affect the beaufort scale as well?

            The most important thing to bear in mind for me is that the weather conditions are blendable and can be overriden by code, meaning....my C++ or BP can control "ok...now this much rain!, now this much of storm" I would have to change the code if they are full automatic with no option to disable.

            I've had alot of success with my own particle systems and SuperGenious' WeatherFX pack. If you plan on releasing anything in the next year or two i wouldnt hold my breath on the project (nto saying it wont get there, just cant put your eggs in internet baskets)
            Last edited by Nsomnia; 06-19-2016, 10:19 AM.
            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


            • Being following this project for a long time and being using it. Great work! Probably will post some images in the future of it in my project.

              One thing I noticed is that since I keep everything organized with least number of folders, if you guys get all the folders in the content folder of the project and put it all on one folder, it will become much more simple to import into projects and update next versions later. Normally I do this before sending it to my project, deleting the older folder on content.
              My Portfolio/Resume: www.chaosforcestudio.wix.com/portolio
              One of my projects: www.chaosforcestudio.wix.com/sonicevolution

              Comment


              • Originally posted by Ricardo Raionhardt View Post
                Being following this project for a long time and being using it. Great work! Probably will post some images in the future of it in my project.

                One thing I noticed is that since I keep everything organized with least number of folders, if you guys get all the folders in the content folder of the project and put it all on one folder, it will become much more simple to import into projects and update next versions later. Normally I do this before sending it to my project, deleting the older folder on content.
                That's a really good point, would make it easier to migrate all of the content. I had considered adding the content to the plugin itself (it is a content enabled plugin), but decided not to because most people would want to modify the base blueprints rather than create a new one that had BP_Ocean as it's parent class. Not positive how content plugins handle changes to the assets it contains, whether it will save it into the plugin, or save it as a separate file. Will look into that some more too, at least for the main content, wouldn't put all of it in there of course.

                Thanks for the suggestion!
                [Free Community Project/Plugin] WIP Dynamic Ocean & Calendar Based Sky
                New Features:: Highly accurate sun/moon position, and lunar phase calculations built into the plugin (base class for the SkyDome blueprint)
                In Progress: Weather simulation w/ volumetric clouds

                Comment


                • One of te few things that I dislike during large upgrades, ive stucek to the original folder structure to save manhours.
                  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 DotCam View Post
                    Nah, pretty good chance I forgot to hook it back up, made lots of changes.

                    Hey btw since you have been using the new system, have you had any issues with the caledar/moon/sun at all? Even just minor annoyances if there aren't any major problem you've run into so far. Any feedback on what you like or would like to see improved would be valuable to me.

                    I've discovered a couple bugs that only happen in a very specific case, which have now been fixed internally.

                    Also I would really like to hear what you are wanting as features for a weather system. Currently I plan to incorporate seasons exposed in a material parameter collection that can then be applied to foliage for example, which can be used to drive the colour of leaves/grass and more.

                    I have a lot of ideas, just not sure how far I should go. Couple things I plan to add include temperature, climate type, storms & wind that (partially) affect the ocean using the Beaufort scale, and many more ideas.

                    Basically I want to know which features you want the most so I can work on them first, this goes for anyone reading this, please let me know!

                    Thanks guys!
                    Sorry I've been ill so haven't been on my computer. Any update on the issue I was having with the darkness and time of day stuff?

                    As for any calendar issues, well I'll look into it. I did change the default month/day as I seem to remember it behaving strangely but I can't remember why at the moment. I think the moon was almost fully up when the sun was just going down and it made things look odd? I dunno, I'll have to check it out again.

                    As for future features, that all sounds great! My big thing I'd like to see would be a full weather system, with definable values to calculate chances of certain weather from appearing, and then a sub value to randomise how 'bad' the weather is when it does come.
                    So for example:
                    Rain: 33 (0 - 100 percentage chance)
                    Severity range: 1 - 75 (1 - 100, higher the value more severe the weather. This will randomly pick between 1 - 75 when the 'Rain' weather starts. You could even say that over 75 severity it comes with a proper thunderstorm and wind etc)

                    You could do that for all weather types to allow us to customise which weather patterns we see, how often to look to change the weather pattern (if at all) etc
                    This would make a great addition to the project and could be used as a basis for your seasonal approach too (having these values I mention for each weather pattern, but definable by 'season' or 'month' or even by 'day' for the really picky ones?

                    I love the idea of leaves, grass etc changing with the seasons. Though I think winter might be tricky due to the snow that would appear on surfaces and terrain etc? I of course have used custom materials that have snow as a displacement but to do this on the fly, well I have no idea if it's even possible. Anyway, weather stuff would be a great place to start and something similar to what I wrote above would give us a lot of control over the weather without being too difficult to set up.

                    Cheers,
                    Daz

                    P.S - Random addition but you guys are very knowledgeable and I don't seem to get answered anymore on AnswerHub. If anyone can help me with the following question about Imported Tiles (levels) in world composition tools, I'd be very grateful. It;s stopping me from working on my game and I'm really peeved about it!
                    https://answers.unrealengine.com/que...s-are-not.html
                    Thanks!

                    Comment


                    • [MENTION=15485]dazuk1978[/MENTION]

                      I too haven't been feeling well either and was unable to work in UE4 for a couple of days, so apologies for the delay...

                      I'll reply to this in more depth later on, but I think I know what is causing the Skylight issue. I switched the time interval from minutes to hours, meaning if you enter 10 into the SkylightCaptureInterval variable, it's only going to update once every 10 hours. With both UseSkylight & UpdateSkylight set to true, try entering in 0.08 (5 minutes) and see if that fixes it.

                      If not, please open up the UpdateAtmosphere function in BP_Sky and make sure it looks like this (I may have changed it post release, but this does work):
                      Click image for larger version

Name:	skylight.JPG
Views:	1
Size:	121.3 KB
ID:	1108774


                      The next update will be using custom logic to blend between multiple pre-captured skylight cubemaps, eliminating this issue (and it's performance hit). I upped the time speed to 500 to test it, there is noticeable hitching when it gets re-captured, so much that Physics simulation doesn't run properly. If you look at the ships sails you will see they 'reset' every time a capture occurs.

                      The blending is for more than just the skylight, it will include everything from light intensity, to post processes, cloud color and much more. It's based off the system in the Kite Demo from Epic, and seems to be working well already. Just need to integrate the skylight part, which I plan on doing today.

                      I'll get back to you on the rest shortly, thanks!
                      Last edited by DotCam; 06-21-2016, 11:34 AM.
                      [Free Community Project/Plugin] WIP Dynamic Ocean & Calendar Based Sky
                      New Features:: Highly accurate sun/moon position, and lunar phase calculations built into the plugin (base class for the SkyDome blueprint)
                      In Progress: Weather simulation w/ volumetric clouds

                      Comment


                      • Originally posted by DotCam View Post
                        [MENTION=15485]dazuk1978[/MENTION]

                        I too haven't been feeling well either and was unable to work in UE4 for a couple of days, so apologies for the delay...

                        I'll reply to this in more depth later on, but I think I know what is causing the Skylight issue. I switched the time interval from minutes to hours, meaning if you enter 10 into the SkylightCaptureInterval variable, it's only going to update once every 10 hours. With both UseSkylight & UpdateSkylight set to true, try entering in 0.08 (5 minutes) and see if that fixes it.

                        If not, please open up the UpdateAtmosphere function in BP_Sky and make sure it looks like this (I may have changed it post release, but this does work):
                        [ATTACH=CONFIG]98716[/ATTACH]


                        The next update will be using custom logic to blend between multiple pre-captured skylight cubemaps, eliminating this issue (and it's performance hit). I upped the time speed to 500 to test it, there is noticeable hitching when it gets re-captured, so much that Physics simulation doesn't run properly. If you look at the ships sails you will see they 'reset' every time a capture occurs.

                        The blending is for more than just the skylight, it will include everything from light intensity, to post processes, cloud color and much more. It's based off the system in the Kite Demo from Epic, and seems to be working well already. Just need to integrate the skylight part, which I plan on doing today.

                        I'll get back to you on the rest shortly, thanks!
                        That sounds good, look forward to your full reply.
                        I have a question though. Does the update interval scale with the time scale multiplier? I set that to 2000 for testing, and the 0.08 you've suggested doesn't work. Could that be because the two aren't linked, like time scale multiplier is using real world time or something?

                        Cheers

                        EDIT: @Dotcam My Update Atmosphere had an extra bit on the top left but ultimately the Use Skylight was not connected to the 'AND'. Once I did that, I could indeed get the update working as intended. As you say thugh there is a noticeable hit on performance so it will be GREAT to get your update with the blends and no performance hit
                        Awesome as always
                        Daz
                        Last edited by dazuk1978; 06-22-2016, 09:07 AM.

                        Comment


                        • So far I've got everything working great in our game using this plugin, but only recently during an optimization pass on our textures/meshes did I come to realize that the terrain heightmap being used to control the height of the waves near shore is way too big.

                          The steps I've taken to incorporate our heightmap is to select the landscape, export the heightmap and import it into the content browser, then apply it to the appropriate slot in the ocean actor settings. However, the size of the exported/imported heightmap is 4081x4081, and takes up around 65mb of texture memory, so it's by far the most expensive texture asset in our game and takes up a large portion of our texture budget. It's set to not have any MIP maps by default when used with the ocean plugin, so I can't make use of the LOD bias to reduce the texture memory load. So based on that, I just tried to manually drop the texture size in photoshop down to 2048x2048 and reimported that into the editor, but upon saving and then reopening the editor the waves no longer get reduced based on the heightmap, so basically the terrain heightmap feature isn't working anymore with the lower resolution texture.

                          Tried just about everything I can think of to get this texture memory size reduced to something more appropriate but so far I haven't had any luck.

                          Is there anything that can be done to solve this? Does the terrain heightmap texture need to be very specific depending on the terrain size? It doesn't seem like it would really need to be all that high resolution to get the results I require as my shoreline is pretty smooth and isn't highly detailed. Any help would be greatly appreciated as this heightmap texture is really hogging a lot of the texture memory budget for our game lol

                          Thanks! Keep up the great work, this project keeps looking better and better every time I come back to see the progress

                          Comment


                          • Originally posted by tsnodgrass View Post
                            Is there anything that can be done to solve this? Does the terrain heightmap texture need to be very specific depending on the terrain size? It doesn't seem like it would really need to be all that high resolution to get the results I require as my shoreline is pretty smooth and isn't highly detailed. Any help would be greatly appreciated as this heightmap texture is really hogging a lot of the texture memory budget for our game lol
                            You can use a lower res texture but you will have to do some changes so that you can pass the original landscape size manually via parameter.. currently if you plug a low res texture then it will assume your landscape is smaller and therefore will not match the actual landscape in the game.
                            Open BP_Ocean and check out the Set Global Parameters function, the heightmap size x,y is taken directly from the texture via GetSizeX, GetSizeY.. you can switch that to a variable which then you can manually set.
                            You will also have to do a similar change in the OceanManager.cpp thought so that buoyancy is synced

                            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


                            • Fantastic work guys, thanks for that!

                              As far as I can tell from my first experiments the ocean plane simulates the earth's curvature, is that right? And if so, could someone guide me to the proper blueprint so I could take a look how it's implemented? Thanks

                              Comment


                              • Originally posted by TK-Master View Post
                                You can use a lower res texture but you will have to do some changes so that you can pass the original landscape size manually via parameter.. currently if you plug a low res texture then it will assume your landscape is smaller and therefore will not match the actual landscape in the game.
                                Open BP_Ocean and check out the Set Global Parameters function, the heightmap size x,y is taken directly from the texture via GetSizeX, GetSizeY.. you can switch that to a variable which then you can manually set.
                                You will also have to do a similar change in the OceanManager.cpp thought so that buoyancy is synced
                                So that seems to have worked, in that I am seeing the wave size is being controlled now by a 1024 texture while manually setting the landscape size of 4081x4081 in the function within BP_Ocean. However this now causes my game to crash when trying to simulate in the editor The crash seems to have something to do with linear color? I've tried to look into this crash but can't figure out what could possibly be causing this, any ideas?

                                EDIT
                                - Looks like I spoke too soon! For some reason upon importing the texture, the compression settings were not applied to the new lower resolution texture which was causing the crash. Just went in and manually changed the texture compression settings to match the settings that was automatically applied to the previous high resolution heightmap.
                                Last edited by tsnodgrass; 06-24-2016, 01:43 PM.

                                Comment

                                Working...
                                X