Announcement

Collapse
No announcement yet.

New Sky/Atmosphere model in 4.24

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

    #76
    SebHillaire and The Regurgitator

    I was hopeful to maintain perspective camera as opposed to orthographic. I'm interpreting an older work and thought it'd be cool if I could apply as much of a realistic setup as possible.

    I'm a Maya artist making the switch to Unreal (slowly). Currently with this short project my goal was to have the same animation/camera etc. setup up in both Maya and unreal so they are 1:1 in setup/scale. Then I was going to use Maya/Redshift as my guide for matching post process closer to my maya render.

    1. At first I tried a realistic earth/sun/moon scale/distance, then miniaturized it, which is what I posted on page 2 of this forum. Looking back it was clear the atmosphere with a ground radius of 100 looked very wrong.
    2. So, I rebuilt my scene to match the default ground radius in Unreal (which appears to be real world scale in centimeters). This is far more appealing.
    3. From there I stubbornly built the real world sun scale and distance (ignoring the fact that that is an absurd expectation of Unreal/Maya or any 3d package), but found the sun wasn't visible in viewport unless I selected it making it hard to artistically adjust bloom/flares/color etc.
    4. From that point I built a mini sun/closer to earth.
    5. The real moon distance and scale seems to work within the clipping planes of the camera so I kept it.

    With each of these steps I reanimated everything at the new scales/locations.

    6. I suppose, worst case scenario I could find a false moon distance at which the atmosphere works and find a new focal length. And then reanimate. But before I do this, I will dig a little.

    --- --- ---

    I tried playing with the atmosphere height and Mie/Rayleigh distribution (with meshes present under the atmosphere) with no luck.


    To test the theory that it's z-fighting the geometry below the atmosphere, I hid all geo and left only the initial directional light (the one tied to the atmosphere) and the sky atmosphere node.
    Looks like the atmosphere breakup still happens without any geometry present:
    Click image for larger version

Name:	HighresScreenshot00025.jpg
Views:	388
Size:	60.1 KB
ID:	1722850

    This likely isn't relevant to the cause of the breakup, but I tried it to see if it improved or not . . . it looks like the breakup changes dramatically depending on the AA. Again, not likely relevant.
    Click image for larger version

Name:	Atmosphere_AntiAliasing.gif
Views:	354
Size:	223.2 KB
ID:	1722851

    I will try playing with the atmosphere height and Mie/Rayleigh distribution settings with no meshes present next, but have to get ready for work and will try more tonight.

    Comment


      #77
      Thanks for the investigation and nice report. So if it still breaks without geometry then it is only due to the atmosphere tracing itself. I made sure it is on the to-investigate list.

      If you try again to reduce the radius of the planet then the atmosphere setup needs to be adapted (it does not scale automatically while preserving look):
      - proportionally reduce the atmosphere height
      - proportionally reduce the height distribution for Mie and Rayleigh
      - same for the absorption tent distribution altitude and width
      - scattering and absorption coefficient will need to be made inversely less high
      It might still look at bit different I believe because earth curvature will be different (especially at the light to shadow transition). I hope it can help you.

      If you do beauty shots from space, you might want to increase r.SkyAtmosphere.SampleCountMaxused when tracing the atmosphere (see the reference page for all the settings). I'll add details on rendering the atmosphere from space to the documentation for 4.25.

      Comment


        #78
        Hi all, I have a noob question, do I have to use a skydome at all? Because for new Sun Sky plugin it seems like I don't have to (at least from visual perspective). I have volumetric clouds in the scene and I'm blending different cubemaps based on day time. I'm also planning to mix one extra cubemap for overcast. But if I had no specified cubemaps there would skybox be required for captured skylight?

        Comment


          #79
          SebHillaire thank you for adding it to the to-investigate list. I was overseas for work and am back now to continue my digging.
          It's apparent I have not played with many of the rendering commands in Unreal in general nor in relation to the Sky Atmosphere node.

          Playing with the r.SkyAtmosphere.AerialPerspective.StartDepth and r.SkyAtmosphere.SampleCountMax is cleaning up a bit of the noise, not completely gone but definitely cleaner:
          Click image for larger version

Name:	HighresScreenshot00031.png
Views:	234
Size:	396.7 KB
ID:	1727451

          Click image for larger version

Name:	HighresScreenshot00031_CU.jpg
Views:	221
Size:	87.5 KB
ID:	1727452

          I'll keep playing with the rendering values and settings and see how much I can clean up the atmosphere. Thank you for your feedback.

          Comment


            #80
            GTJC Ok then. I am surprised the AP commands improves the result in this case.

            Z0DI4C.2.0 You do not have to use the sky dome shader with IsSkyTicked. That is only if you want to render a sky dome (with custom composition of clouds, planet and whatnot) as unlit opaque while not having the aerial perspective (atmosphere fog) apply on it again.

            Comment


              #81
              SebHillaire To be specific, I've narrowed it down to the one render command, r.SkyAtmosphere.AerialPerspective.StartDepth
              It seems values between 10 - 100 give a cleaner look (the look you see in my last images). If I put a value of 1, it gives the look I initially see (or if I close and reopen the project).
              I'm finding a value of 100 crushes a bit of the transition area between the light/dark side so I'm playing with values between 10 - 75 currently.

              I'll post more soon.

              Comment


                #82
                anyone test 4.25?
                Tcimage3d Studio
                Unreal Artist & Developer in archi & interior Visual
                Real Estate VR Tutor: http://tcimage3d.wixsite.com/3dvr

                Request a quote today:tcimage3d@gmail.com
                Follow us on Facebook: https://www.facebook.com/TCimage/

                Comment


                  #83
                  tc22
                  Tried last night. Won't install for me.

                  Comment


                    #84
                    4.25 Preview 3 installs for me, in case anyone on this thread wanted an update.

                    Nice to see the atmosphere now renders behind the moon and not in front of it

                    Comment

                    Working...
                    X