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

    Originally posted by intrus03 View Post
    Hi, I'm having problems with the truesky + oceanproject.

    When I have the camera below the clouds I see everything correctly.


    But when I have it over the clouds I see the ocean instead of the truesky clouds.


    Is there a solution to see it correctly regardless of where the camera is, or at least how to see the clouds when the camera is above them?
    Thanks in advance.
    Your issue here is that TrueSky doesn't know how to behave when there is a translucent material, this is called sorting issue, and happens with these materials. I am making a small video to show you an idea on how to fix, but I really don't know if it will. Note that the second method works but every other translucency material applied must have the sort priority variable set aswell, so the 1st method is prefered if TryeSky allows it.

    Please, let us know if this worked or not intrus03 !

    The video will be live in 20min approx.
    Last edited by NilsonLima; 03-27-2018, 06:41 AM.
    Nilson Lima
    Technical Director @ Rigel Studios Ltda - twitter: @RigelStudios
    Join us at Discord: https://discord.gg/FUwTvzr

    UE4 Marketplace: Cloudscape Seasons
    supporting: Community FREE Ocean plugin

    Comment


      I'm going to try multiple of the ocean shaders to see which are broken currently on Xbox, but this is currently the comparison.

      Top: Xbox One

      Bottom: Intended Look, PC

      EDIT:

      Seems like maybe there is too many instructions for UE4? Get this error while compiling.
      LogShaderCompilers: Warning: D:\UE4\_UE4_\UnrealEngine-4.19.0\FreedomPuzzle\Content\Ocean\Materials\M_Ocean_Versions\M_Ocean.uasset: Failed to compile Material for platform SF_XBOXONE_D3D12, Default Material will be used in game.

      EDIT2:


      The following 3 ocean shaders don't work on Xbox One:
      -M_Inst_Ocean_SSR_Foam
      -M_Inst_Ocean_Foam_Cubemap
      -M_Inst_Ocean_SSR_Foam_Cubemap
      Attached Files
      Last edited by AmbiguousInt; 03-26-2018, 10:53 PM.
      Twitter | Twitch

      Comment


        You don't get any more detailed debug info? That's pretty ghetto.
        George Rolfe.
        Technical Coordinator at Orbit Solutions Pty Ltd.

        Comment


          Originally posted by duke22 View Post
          You don't get any more detailed debug info? That's pretty ghetto.
          Nope, just pops that message out when compiling for Xbox, doesn't show anything else. Makes debugging pretty hard. I used a simpler shader and it works just fine now.
          Last edited by AmbiguousInt; 03-27-2018, 02:42 AM.
          Twitter | Twitch

          Comment


            Originally posted by AmbiguousInt View Post

            Nope, just pops that message out when compiling for Xbox, doesn't show anything else. Makes debugging pretty hard. I used a simpler shader and it works just fine now.
            Which is the scalability settings at that running screen? High?

            I don't think it is an instruction amount restriction, but some feature in use not enabled. Is it possible to build a small sample in 4.18.3 and check if the same issue happens? It would be a good idea do it to see if this is not some new issue brought by 4.19.
            Nilson Lima
            Technical Director @ Rigel Studios Ltda - twitter: @RigelStudios
            Join us at Discord: https://discord.gg/FUwTvzr

            UE4 Marketplace: Cloudscape Seasons
            supporting: Community FREE Ocean plugin

            Comment


              Originally posted by NilsonLima View Post

              Which is the scalability settings at that running screen? High?

              I don't think it is an instruction amount restriction, but some feature in use not enabled. Is it possible to build a small sample in 4.18.3 and check if the same issue happens? It would be a good idea do it to see if this is not some new issue brought by 4.19.
              Yeah it is running on high scalability. Changing it to any other still wouldn't work.

              And sadly never had a 4.18.3 source, as it requires certain Xbox SDK updates so I avoided constantly updating the engine. Latest SDK I had was around 4.16.
              Twitter | Twitch

              Comment


                Originally posted by AmbiguousInt View Post

                Yeah it is running on high scalability. Changing it to any other still wouldn't work.

                And sadly never had a 4.18.3 source, as it requires certain Xbox SDK updates so I avoided constantly updating the engine. Latest SDK I had was around 4.16.
                There was quite some changes from 4.16 to 4.19. I guess the only think I can do to help is trying to cause the issue here somehow. Give me some more time to look into this.
                Nilson Lima
                Technical Director @ Rigel Studios Ltda - twitter: @RigelStudios
                Join us at Discord: https://discord.gg/FUwTvzr

                UE4 Marketplace: Cloudscape Seasons
                supporting: Community FREE Ocean plugin

                Comment


                  Originally posted by NilsonLima View Post

                  There was quite some changes from 4.16 to 4.19. I guess the only think I can do to help is trying to cause the issue here somehow. Give me some more time to look into this.
                  To clarify, I never used the ocean shader until yesterday morning so I'm not entirely sure 4.16 version of the ocean shader has the same issue. I looked into this thread into other possible Xbox users and only found one person, and he had crashes with scene color. It doesn't crash anymore so I guess that's a plus.
                  Twitter | Twitch

                  Comment


                    Originally posted by AmbiguousInt View Post

                    To clarify, I never used the ocean shader until yesterday morning so I'm not entirely sure 4.16 version of the ocean shader has the same issue. I looked into this thread into other possible Xbox users and only found one person, and he had crashes with scene color. It doesn't crash anymore so I guess that's a plus.
                    While I finish more testing, I have found something that might cause issues:

                    - not 100% if it is the ocean of another component in my test, but something is requiring Shader Model 5 when I attempted running the build I have packaged to Shader Model 4, usually I only use SM5.
                    - as Im not testing in a XBox One kit, it is interesting to know if you are using one and how updated it is, because older models support only SM4 and not SM5. If you dont have the kit and are developing inside a pure console it is interesting to know the model to track this.

                    I will still try to break stuff here.

                    Nilson Lima
                    Technical Director @ Rigel Studios Ltda - twitter: @RigelStudios
                    Join us at Discord: https://discord.gg/FUwTvzr

                    UE4 Marketplace: Cloudscape Seasons
                    supporting: Community FREE Ocean plugin

                    Comment


                      Originally posted by NilsonLima View Post

                      While I finish more testing, I have found something that might cause issues:

                      - not 100% if it is the ocean of another component in my test, but something is requiring Shader Model 5 when I attempted running the build I have packaged to Shader Model 4, usually I only use SM5.
                      - as Im not testing in a XBox One kit, it is interesting to know if you are using one and how updated it is, because older models support only SM4 and not SM5. If you dont have the kit and are developing inside a pure console it is interesting to know the model to track this.

                      I will still try to break stuff here.
                      I am indeed testing it on an Xbox One Kit, specifically Xbox One S. It has the most recent update as well.
                      Twitter | Twitch

                      Comment


                        Originally posted by AmbiguousInt View Post

                        I am indeed testing it on an Xbox One Kit, specifically Xbox One S. It has the most recent update as well.
                        And in this case which is the shader model set when packaging for Xbox? In my tests it is not working with SM4 only SM5, but I still need to rip some things off before calling out that this need is from the ocen itself.
                        Nilson Lima
                        Technical Director @ Rigel Studios Ltda - twitter: @RigelStudios
                        Join us at Discord: https://discord.gg/FUwTvzr

                        UE4 Marketplace: Cloudscape Seasons
                        supporting: Community FREE Ocean plugin

                        Comment


                          Originally posted by NilsonLima View Post

                          And in this case which is the shader model set when packaging for Xbox? In my tests it is not working with SM4 only SM5, but I still need to rip some things off before calling out that this need is from the ocen itself.
                          Xbox One only uses SM5 as its DX12. PS4 uses SM5 as well.
                          Twitter | Twitch

                          Comment


                            Originally posted by AmbiguousInt View Post

                            Xbox One only uses SM5 as its DX12. PS4 uses SM5 as well.
                            Yes, I know, in fact I knew since you said you got it updated already, when it was DX11 the SM5 was not possible, I had this in my mind and asked nonetheless, sorry.

                            I tried hard to cause the issue, but Im afraid this has something to do with the dev kit (Epic's part). The ocean materials you mentioned all of them are instances from M_OceanSSR. I have used the M_Inst_Ocean_SSR_Foam_Cubemap and it works in editor with SM4 selected, but when you package if fails and ask for SM5. So, the issue does not has anything regarding Shader Model. The usual behavior for anything which has high cost under certain scalability settings is to become invisible, which is not happening in your case.

                            As Im lacking a kit to have the same ability than you, the only thing I can tell you to experiment is an optimization on the ocean plane and see how it will behave:
                            - open the BP_Ocean
                            - select each of the 3 meshes there
                            - in the details panel at right, look for the attribute called "Treat as Background for Occlusion" and make sure it is checked for each mesh.
                            - package and see if the issue still there.

                            If this still doesnt work, but changed anything, let me know.

                            Nilson Lima
                            Technical Director @ Rigel Studios Ltda - twitter: @RigelStudios
                            Join us at Discord: https://discord.gg/FUwTvzr

                            UE4 Marketplace: Cloudscape Seasons
                            supporting: Community FREE Ocean plugin

                            Comment


                              Originally posted by NilsonLima View Post

                              Your issue here is that TrueSky doesn't know how to behave when there is a translucent material, this is called sorting issue, and happens with these materials. I am making a small video to show you an idea on how to fix, but I really don't know if it will. Note that the second method works but every other translucency material applied must have the sort priority variable set aswell, so the 1st method is prefered if TryeSky allows it.

                              Please, let us know if this worked or not intrus03 !

                              The video will be live in 20min approx.
                              Hello Nilson,

                              Thank you very much for your response, I appreciate it very much.

                              Unfortunately neither of the two solutions works.

                              I have checked as you said that the M_Ocean_Ultra material has "Render After DOF" enabled.

                              As you said, the Truesky does not have the "Translucency Sort Priority", and if I change it in BP_Ocean actor (OceanPlane, DepthPlaneUnderside, DepthPlaneTopside meshes) to -1, it remains the same behavior.

                              Thank you very much for everything, but it seems that this doesn't have a simple solution.

                              Comment


                                Hi guys, I'm having an issue building a game with the Ocean Plugin as I get an error like this and I never had it before.
                                fatal error LNK1181: cannot open input file 'E:\UNREAL ENGINE\UE_4.19\Engine\Plugins\OceanPlugin\Binaries\Win64\UE4-OceanPlugin.lib'.

                                Comment

                                Working...
                                X