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 divljikunic View Post
    I get reflection issues when using this in my project.

    I have the plugin in the project folder, temporal aa is enabled, both the sky and the sea are set up, I've got reflection captures and have rebuilt the lighting.
    I can get the look I want inside the OceanProject when starting from a blank scene, but using the exact same steps gets me nowhere after migrating to another project.

    Sorry for being so nooby, any tips&tricks for migrating these assets? :/
    BTW, awesome job, thanks!!!

    p.s. currently on 4.8.3.
    Hi there,

    When moving to a new project, make sure you follow these steps:

    -Migrate "BP_Ocean" and "BP_Sky" (or BP_Skydome if you are not yet using the update that was added last night)
    -Open Windows Explorer and navigate you your ProjectName directory, if it does not already have a "Plugins" folder, create one and copy the OceanPlugin folder from the download to this folder
    -Open your project and place both of these actors into your scene
    -For the skydome make sure to set the "Sun Light Source" in the details panel to a Directional Light in your scene, and make sure the light is set to Movable
    -To get proper reflections I highly recommend setting the "SkyLight" in the details panel to a SkyLiught actor in your world, and make sure the Skylight actor is set to Movable
    -In the BP_Ocean settings ensure you are using an ocean material that has SSR enabled, there are 6 to choose from and are marked as either SSR or No SSR

    That should be all you need to do, please let me know if you run into any issues, it's been a while since I have tried migrating (but probably should try again, I'll get on that )
    Free Community Ocean & Sky Project || Join us on Discord! || Trello Roadmap

    Comment


      Originally posted by SammVarnish View Post
      Hey DotCam I have a few questions. I'd like to use this for an ocean level I'd like to build but there is something that I am not sure how to replicate this effect below. The water is seperated by glass and you can see into the water through such as a helmet or window. Is there some way you can direct me on how to achieve this effect as it would look really cool if you see the ocean outside in the underwater level (takes place inside building/ship). Brilliant project so far, that's just the only thing keeping me from creating the level.

      [ATTACH=CONFIG]54379[/ATTACH]

      (youtube link for reference: https://www.youtube.com/watch?v=bNqg9gCckOk)
      Ahh yes, KhenaB's VR ocean sim. He did an awesome job with his shader to get that effect, hope to see more of it soon, here's the link to his thread if you are interested:
      https://forums.unrealengine.com/show...e-Dev-progress

      As far as the technique goes, it is totally possible to do, there is a thread he made while working on that exact scene here:
      https://forums.unrealengine.com/show...-this-possible

      I have it bookmarked as something I want to add in when I can, I really don't like the current setup where your either underwater or above, so it's high on my to do list.

      If you happen to get anything working before I do I would love to hear about it! I'm busy working on the weather systems currently, but will try and get to it when I can.
      Free Community Ocean & Sky Project || Join us on Discord! || Trello Roadmap

      Comment


        Originally posted by DotCam View Post
        Ahh yes, KhenaB's VR ocean sim. He did an awesome job with his shader to get that effect, hope to see more of it soon, here's the link to his thread if you are interested:
        https://forums.unrealengine.com/show...e-Dev-progress

        As far as the technique goes, it is totally possible to do, there is a thread he made while working on that exact scene here:
        https://forums.unrealengine.com/show...-this-possible

        I have it bookmarked as something I want to add in when I can, I really don't like the current setup where your either underwater or above, so it's high on my to do list.

        If you happen to get anything working before I do I would love to hear about it! I'm busy working on the weather systems currently, but will try and get to it when I can.
        Thanks a bunch Dotcam, will do if that indeed happens to be the case.

        Comment


          Originally posted by PyNoS View Post
          My most sincere congratulations for everything you do and what you will do again forward, I feel now this fantastic new version
          Great! Thanks for the feedback, if you (or anyone else) find any errors in the calculations let me know!

          I will say I have already found a couple issues, not so much errors, relating to the functions that convert from TimeDate to Julian Day (JD200) calculations. The further from the JD2000 epoch you go, the worse it gets.

          Second issue is the moon is (potentially) rotating off-axis, need to do more debugging vs actual data. It's rotating at the right speed but the Rise/Set locations seem to be off a bit.

          Alright, back to it.
          Free Community Ocean & Sky Project || Join us on Discord! || Trello Roadmap

          Comment


            Originally posted by DotCam View Post
            Hi there,

            When moving to a new project, make sure you follow these steps...
            ...That should be all you need to do, please let me know if you run into any issues, it's been a while since I have tried migrating (but probably should try again, I'll get on that )
            I believe I've done everything you've said (since I started from a blank level several times, both in your project and mine), but still have issues (only when migrating, ofc.)
            I'll post the screenshots tommorow, some strange stuff going on. I do hope it's just me being sloppy..

            Comment


              Originally posted by divljikunic View Post
              I believe I've done everything you've said (since I started from a blank level several times, both in your project and mine), but still have issues (only when migrating, ofc.)
              I'll post the screenshots tommorow, some strange stuff going on. I do hope it's just me being sloppy..
              Well in that case I will try it on my end this afternoon, it has been a while so there is probably something I'm missing. There have been a lot of changes since I last attempted it, so it wouldn't surprise me.
              Free Community Ocean & Sky Project || Join us on Discord! || Trello Roadmap

              Comment


                Here are the screens. To me it looks almost like the BP got its axes mixed up, like this visual transition should happen along the vertical axis and not like this. I'm primarily an artist, not a coder, so sorry for the primitive language!
                Obviously this is the no-gerstner-ssr version of the ocean.

                Starting from scratch in the OceanProject.. umm.. project. [sun low, for exaggerated effect]
                Click image for larger version

Name:	Untitled-1.jpg
Views:	1
Size:	71.4 KB
ID:	1084550

                Following same steps, but in another project (just a different time of day, sry)
                Click image for larger version

Name:	Untitled-3.jpg
Views:	1
Size:	41.4 KB
ID:	1084551


                The reflections are not all gone, however they happen only at the one "side" of the world (let's call it south here lol)
                Click image for larger version

Name:	Untitled-2.jpg
Views:	1
Size:	66.5 KB
ID:	1084552
                Attached Files
                Last edited by divljikunic; 08-27-2015, 04:09 AM.

                Comment


                  Originally posted by divljikunic View Post
                  Here are the screens. To me it looks almost like the BP got its axes mixed up, like this visual transition should happen along the vertical axis and not like this. I'm primarily an artist, not a coder, so sorry for the primitive language!
                  Obviously this is the no-gerstner-ssr version of the ocean.
                  Starting from scratch in the OceanProject.. umm.. project. [sun low, for exaggerated effect]
                  Following same steps, but in another project (just a different time of day, sry)
                  The reflections are not all gone, however they happen only at the one "side" of the world (let's call it south here lol)
                  Are you using the no gerstner version with SSR or without? SSR is going to provide the majority of the reflections, so that is the first thing to check.

                  Have you scaled anything up at all? The second image looks like SSS (SubSurface Scattering, the turquoise color) has been stretched quite a bit, but it's hard to tell from that angle.

                  It is really hard to tell from those images what is going on, could you please take a screenshot of the settings you are using for the ocean? I tested it out earlier and was not able to reproduce this, so I'm not entirely sure what is going on.

                  And for confirmation, is your skydome blueprint named "BP_SkySphere", "BP_Skydome", or "BP_Sky"? Could you also select it in the scene and post a screenshot showing the details panel (specifically the Sun and Atmosphere sections).

                  EDIT: Also remove the reflection capture for now, it does not provide proper reflections when using dynamic lighting. 4.9 will introduce a new feature for that, but for now it does not really help. Make sure your lights are all set to movealbe too.
                  Last edited by DotCam; 08-28-2015, 03:34 PM.
                  Free Community Ocean & Sky Project || Join us on Discord! || Trello Roadmap

                  Comment


                    does this work on mac? Im just getting a speckled plane when opening the project in 4.8.3 - there are errors in the material that say sm4 shader exceeds the limit of 16 - not sure if that is relevant.

                    Thanks for all the hard work

                    edit* ahh, nevermind, saw the issue addressed in an earlier post
                    Last edited by SDRLabs; 08-29-2015, 12:26 PM.

                    Comment


                      Originally posted by SDRLabs View Post
                      does this work on mac? Im just getting a speckled plane when opening the project in 4.8.3 - there are errors in the material that say sm4 shader exceeds the limit of 16 - not sure if that is relevant.

                      Thanks for all the hard work
                      As of right now, it only works (properly) on DirectX 11 or greater. The reason for that is DX11 allows for more than 16 Texture Samplers being used through shared sampling, OpenGL has a limit of 16.

                      Due to the engine's requirements for a translucent surface with dynamic lighting, the engine uses 10 samplers without me even adding a single texture.

                      I'm doing some general housekeeping on the project right now, making a OpenGL compatible version has been something I have been meaning to do for a while. I'll give it a try later today and see what it will require, I can't guarantee it will have all of the features the DX11 one has, but should be able to get pretty close.
                      Free Community Ocean & Sky Project || Join us on Discord! || Trello Roadmap

                      Comment


                        Wow, thats really nice of you. I really appreciate the extra effort. Thanks

                        Comment


                          Originally posted by DotCam View Post
                          As of right no.
                          Hey DotCam I tried setting up a new skydome with your new time setup, i used latitude/longitude of midway island with the proper -11 utc timezone setting but the moon is always in the sky no matter the time of day.

                          Ideas? Known?
                          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
                            Hey DotCam I tried setting up a new skydome with your new time setup, i used latitude/longitude of midway island with the proper -11 utc timezone setting but the moon is always in the sky no matter the time of day.

                            Ideas? Known?
                            Hey Nsomnia, sent you a message on skype as well, but check to make sure the lat is between -90 and 90, and long is between -180 to 180 (some maps show 0-360deg, if its greater than 180 subtract 360).

                            Using the values LAT = 28 LONG = -177 has the moon setting at 11am on March 3rd 2015 in my project. It's possible I have fixed a bug since uploading it to Github, so please let me know if those values provide the wrong results.

                            There will be no more mesh moon in the next version, I am removing it and using a projected image instead so the atmosphere is in front of the moon, which currently causes it to look bad in the daytime. It also looks much more realistic.
                            Last edited by DotCam; 08-29-2015, 02:56 PM.
                            Free Community Ocean & Sky Project || Join us on Discord! || Trello Roadmap

                            Comment


                              I tried the following cordinates: Lat 37 long 14 UTC + 1, we see also that the moon passes by the sun at 16 h of day 30 month 8 2015

                              it's normal?

                              http://prntscr.com/8aq10s

                              Comment


                                Originally posted by PyNoS View Post
                                I tried the following cordinates: Lat 37 long 14 UTC + 1, we see also that the moon passes by the sun at 16 h of day 30 month 8 2015

                                it's normal?

                                http://prntscr.com/8aq10s
                                No it is not, sorry about that. It has been fixed on my end, and I will update the GitHub build shortly.
                                Free Community Ocean & Sky Project || Join us on Discord! || Trello Roadmap

                                Comment

                                Working...
                                X