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

    Hi there. Thank you soooo much for the great work.
    I am a newbie to UE4 but is asked for a ocean like scene by my boss. I find your work quite helpful, though I couldn't understand a word of it.
    Anyone could help me out ? I download from github the 4.8 version. I am using UE4.8.1 on mac. Does Mac compatible?
    The water looks like this image below. I hit play, still nothing changes. What's wrong with it ?
    Click image for larger version

Name:	Screen Shot 2015-07-31 at 4.42.42 PM.png
Views:	1
Size:	390.7 KB
ID:	1082940
    Thank u in advance~~~

    Comment


      Originally posted by Juii View Post
      Hi there. Thank you soooo much for the great work.
      I am a newbie to UE4 but is asked for a ocean like scene by my boss. I find your work quite helpful, though I couldn't understand a word of it.
      Anyone could help me out ? I download from github the 4.8 version. I am using UE4.8.1 on mac. Does Mac compatible?
      The water looks like this image below. I hit play, still nothing changes. What's wrong with it ?
      Thank u in advance~~~
      Unfortunately I cannot officially support linux/mac since I'm a windows user and have no way of testing it so you can always expect problems in these platforms.

      However if you have any errors, then I can try to help (otherwise I would just be making random guesses ).
      Try to open some of the ocean materials and see if there are any compile errors.

      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


        Hi.
        First of all I want to say this project is awesome. I try to learn from it because my shader-skills are not that great.
        So I transferred the material to my project and I also made my own OceanBP which sets all the Material Parameters like this project. However in my project I can sort of see through the waves and see the next one which looks very strange.
        Can somebody tell me what causes this? I compared my material to the material in the project but I don't see any differences. Maybe something else? Are there parameters that are set outside of the OceanBP?
        Here is a picture:
        Click image for larger version

Name:	oceanerror.png
Views:	1
Size:	627.1 KB
ID:	1082956
        Best regards,
        -Joey

        Comment


          Originally posted by dj_joey View Post
          Hi.
          First of all I want to say this project is awesome. I try to learn from it because my shader-skills are not that great.
          So I transferred the material to my project and I also made my own OceanBP which sets all the Material Parameters like this project. However in my project I can sort of see through the waves and see the next one which looks very strange.
          Can somebody tell me what causes this? I compared my material to the material in the project but I don't see any differences. Maybe something else? Are there parameters that are set outside of the OceanBP?
          Here is a picture:
          [ATTACH=CONFIG]50651[/ATTACH]

          It looks like SSR or SSS or refraction or something is getting a null value of some sort. Compare a clean git download to yours is all I can suggest, try playing with the OCean/Ocean+SSS/Ocean+SSR+SSS/" " + Cubemap setting?

          Originally posted by Bearfruit View Post
          Thank you.

          Funny you should mention Triton. That was one of the solutions I was considering before I switched to UE4.
          Best regards,
          -Joey[/QUOTE]

          I was using Triton. I prefer this setup of it even if I hate UE4's constant bugginess/corrupting projects and having to learn c++
          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 Nsomnia View Post
            It looks like SSR or SSS or refraction or something is getting a null value of some sort. Compare a clean git download to yours is all I can suggest, try playing with the OCean/Ocean+SSS/Ocean+SSR+SSS/" " + Cubemap setting
            Okay thanks for the quick reply. I will compare further :/

            EDIT: Figured out that I didn't have the depth-Plane in my Blueprint... Why is this needed?
            EDIT2: If anyone is making their own ocen_bp and faces the same problem of the ocean becoming invisible at some points after adding the depth plane -> make sure you start with a normal empty actor -> not a static mesh actor or anything -> because some static mesh lighting and rendering options are greyed out on static mesh actors (actors can be reparented in the file menu in the editor).
            Last edited by byteparrot; 08-01-2015, 04:41 AM.

            Comment


              Originally posted by TK-Master View Post
              Unfortunately I cannot officially support linux/mac since I'm a windows user and have no way of testing it so you can always expect problems in these platforms.

              However if you have any errors, then I can try to help (otherwise I would just be making random guesses ).
              Try to open some of the ocean materials and see if there are any compile errors.
              Thank you for the quick reply!!!
              I am not sure whether there are any compile errors... Does everything look OK in the pic below?
              Click image for larger version

Name:	Screen Shot 2015-08-03 at 10.16.51 AM.png
Views:	1
Size:	314.8 KB
ID:	1083119

              Comment


                Originally posted by TK-Master View Post
                Unfortunately I cannot officially support linux/mac since I'm a windows user and have no way of testing it so you can always expect problems in these platforms.

                However if you have any errors, then I can try to help (otherwise I would just be making random guesses ).
                Try to open some of the ocean materials and see if there are any compile errors.
                I opened this material with some errors. Does this have something to do with my unexpected looking?
                Click image for larger version

Name:	Screen Shot 2015-08-04 at 11.17.54 AM.png
Views:	1
Size:	477.6 KB
ID:	1083203

                Comment


                  From what I read this might be because of the SSR.

                  Relevant answerhub:
                  https://answers.unrealengine.com/que...anslucent.html

                  Can you try some of the other materials (like M_Ocean, M_Ocean_Old)?

                  Also if you select the BP_Ocean from the level, you can choose the shader to use under the Appearance category.. try them all and see which ones work

                  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
                    From what I read this might be because of the SSR.

                    Relevant answerhub:
                    https://answers.unrealengine.com/que...anslucent.html

                    Can you try some of the other materials (like M_Ocean, M_Ocean_Old)?

                    Also if you select the BP_Ocean from the level, you can choose the shader to use under the Appearance category.. try them all and see which ones work
                    Thank you very much for the replay.
                    Unfortunately I tried all you said, but no results. I also changed the shader in the Appearance category with nothing happened.
                    Click image for larger version

Name:	Screen Shot 2015-08-05 at 1.54.02 PM.png
Views:	1
Size:	316.4 KB
ID:	1083244
                    Click image for larger version

Name:	Screen Shot 2015-08-05 at 1.54.10 PM.png
Views:	1
Size:	320.3 KB
ID:	1083245
                    I happened to notice that there is a thing called "Shade Model4/5" we can choose from, which may have sth. to do with my situation?
                    The problem is that why do I only have Shade Model 4??
                    I am using a quite new iMac with "NVIDIA GeForce GTX 780M" which should support Shade Model 5...Any ideas?
                    Click image for larger version

Name:	Screen Shot 2015-08-05 at 1.54.23 PM.png
Views:	1
Size:	706.8 KB
ID:	1083246

                    Comment


                      Hmm okay so the M_Ocean_SSR is not compiling because of the SSR (this has been fixed in 4.9 as far as I know), but then there is the 16 sampler limitation which prevents it from working.

                      So I guess there is no way for it to work in Mac unless the shader is stripped down to reduce the sampler count, which means the foam and perhaps some of the normal maps will have to be removed.
                      I will try to make a stripped down version at some point.

                      Mac and linux do not support shader model 5 at the moment since they are using OpenGL instead of D3D (so basicaly only windows with DirectX 11 supports SM5 for now).
                      It's probably going to be supported at some point, it's either a matter of OpenGL getting up to speed (in which case this might take a while ) or OS X needs to update to latest OpenGL (?).

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

                      Could someone with linux confirm whether this works or not? or is the 16 sampler limitation also the problem there as well?

                      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


                        Hi, I would like ask about buoyancy.
                        I checked OceanExampleMap_02, with simple ocean and tried to add my ship.
                        The FAQ on GitHub says I have add Buoyancy Movement Component to my blueprint, while the ship blueprints used by demo maps have Buoyancy Force? (though for me, neither work unforunately...)
                        Which one I need for buoyancy?
                        Also the doc says I should tweak with Mass in kg, but didnt help - no buoyancy...

                        Comment


                          Originally posted by TK-Master View Post
                          So I guess there is no way for it to work in Mac unless the shader is stripped down to reduce the sampler count, which means the foam and perhaps some of the normal maps will have to be removed.
                          I will try to make a stripped down version at some point.
                          Yeah unfortunately DirectX is required for more than 16 samplers... Which means only 6 Texture Samplers are usable by us in the material (with the rest going to lighting/material properties).

                          We'll have to try and pack every texture as grey-scale and re-build it back in manually, for example we can fit 2 normal maps in one texture (using only the R & G channels of the original) then re-adding in the B channel, which is usually close to a value of 1.0. This might slightly reduce the graphical fidelity since the B channel is not usually 100% blue, but it shouldn't have too much of an effect on the looks.

                          Not sure what the current sampler count is at, or how we will go about reducing it, but it is something we will look into @juii. If we pack them down enough and use noise generating functions I think we can get it low enough, but it will reduce the quality of the water surface somewhat.


                          Originally posted by BigaC View Post
                          Hi, I would like ask about buoyancy.
                          I checked OceanExampleMap_02, with simple ocean and tried to add my ship.
                          The FAQ on GitHub says I have add Buoyancy Movement Component to my blueprint, while the ship blueprints used by demo maps have Buoyancy Force? (though for me, neither work unforunately...)
                          Which one I need for buoyancy?
                          Also the doc says I should tweak with Mass in kg, but didnt help - no buoyancy...
                          Hi there,

                          The info on the wiki is outdated and will need to be replaced, it is set up using the old system which will be removed from the plugin in the near future.

                          You will not be able to use the OceanExampleMap_02, the ocean surface in that level is an older version we were using for testing. Please use the "OceanExampleMap_01" instead, or create a new level if you want. Creating a new level will require a lot of setup and knowledge of the systems used, so I highly recommend modifying the _01 map instead.

                          For buoyancy you will need to use the BuoyancyForce component similar to the other boats / ships. This buoyancy requires the new ocean surface to operate, so it won't work with the other map.

                          Hope that helps!
                          Last edited by DotCam; 08-05-2015, 01:28 PM.
                          Free Community Ocean & Sky Project || Join us on Discord! || Trello Roadmap

                          Comment


                            Thanks DotCam, I checked now with 01 map, and made a copy of BPManowar and for a first test I just replaced the mesh in the new one.
                            Ship inmediately sunk, see attached image for fun
                            When I have time I will check/compare original BPManowar blueprint what could be the difference...
                            The mesh maybe need some setting I missed? (static mesh imported from 3dsmax fbx)
                            Click image for larger version

Name:	ticobug1.jpg
Views:	1
Size:	231.9 KB
ID:	1083281

                            Comment


                              Originally posted by TK-Master View Post
                              Hmm okay so the M_Ocean_SSR is not compiling because of the SSR (this has been fixed in 4.9 as far as I know), but then there is the 16 sampler limitation which prevents it from working.

                              So I guess there is no way for it to work in Mac unless the shader is stripped down to reduce the sampler count, which means the foam and perhaps some of the normal maps will have to be removed.
                              I will try to make a stripped down version at some point.

                              Mac and linux do not support shader model 5 at the moment since they are using OpenGL instead of D3D (so basicaly only windows with DirectX 11 supports SM5 for now).
                              It's probably going to be supported at some point, it's either a matter of OpenGL getting up to speed (in which case this might take a while ) or OS X needs to update to latest OpenGL (?).

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

                              Could someone with linux confirm whether this works or not? or is the 16 sampler limitation also the problem there as well?
                              Thanks a lot~~~@TK@DotCam
                              Though the problem may be nowhere to solve within a short while, at least the reason is clarified. Thanks for your kind help.
                              I really appreciate that if you could try somehow to reduce the samples and help me out.
                              Another thing is that if only you could provide some sort of tutorials at some point from the very beginning for beginners like me.
                              You will have a bunch of followers! I really like your work, and would like to contribute if I have enough knowledge to in future. ^^

                              Comment


                                Any news on updates for both the ocean and the sky/weather?
                                --
                                Joshua
                                Multimedia Artist, Druid Gameworks
                                www.joshuaezzell.com
                                www.druidgameworks.com

                                Comment

                                Working...
                                X