Announcement

Collapse
No announcement yet.

Bug in the editor? Any workaround?

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

    Bug in the editor? Any workaround?

    I am using 4.21.2. Started with the default FPP level, after some changes to the level switched Allow Static Lighting off. For some reason some actors had no shadows. After some tweaking I have accidentally found that they start making shadows if they are slightly moved. However, it starts z fighting in a place where the walls meet.

    1. Level just opened - no shadow, no z fight.

    Click image for larger version  Name:	ue41.png Views:	2 Size:	230.3 KB ID:	1629399

    2. moved the wall to y=1, shadow appears, z fighting appears. Ctrl-Z will reverse to the previous state (no shadow, no z fighting).

    Click image for larger version  Name:	ue42.png Views:	1 Size:	231.7 KB ID:	1629397

    3. Moving the object back by entering zero again. Shadows left, z fighting left.

    Click image for larger version

Name:	image_166262.png
Views:	1
Size:	231.5 KB
ID:	1629398

    Any idea what is going on? Is it a bug?

    Any idea, if it is possible to make the shadows appear without having to move manually every object without shadows in the level?

    Any idea, if it is possible to make the shadows appear without z fighting appearing as well?
    Attached Files

    #2
    If your meshes are overlapping, you will have Z fighting. Make sure they're not before building lighting.

    Comment


      #3
      Also, if you move things around then you need to rebuild lighting

      Comment


        #4
        Originally posted by DanDizard View Post
        If your meshes are overlapping, you will have Z fighting. Make sure they're not before building lighting.
        Yet for some reason there is no z-fighting in the original scene (which is not something I created BTW, it is a scene as provided by the UE folks - do you mean I should be wary of them making such basic mistakes?). Plus, see my answer below:

        Originally posted by darthviper107 View Post
        Also, if you move things around then you need to rebuild lighting
        How do I rebuild lighting if I have switched Static Lighting off and Build lighting in the Build menu is grayed out?

        Comment


          #5
          Originally posted by BoBorek View Post
          How do I rebuild lighting if I have switched Static Lighting off and Build lighting in the Build menu is grayed out?
          Well, the pictures you provided show the Directional Light and Skylight with the yellow dot, so they are not dynamic, meaning the lights can be built! Maybe the pictures are not representing your current scene anymore?

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

          UE4 Marketplace: Cloudscape Seasons
          supporting: Community FREE Ocean plugin

          Comment


            #6
            Originally posted by NilsonLima View Post
            Well, the pictures you provided show the Directional Light and Skylight with the yellow dot, so they are not dynamic, meaning the lights can be built! Maybe the pictures are not representing your current scene anymore?
            They do. As I wrote in my inital post, I started with the default FPP scene (and I believe I have not modified lights at all, they are exactly as they were put in the scene by the UE) and later switched Static Lighting off, but I have not touched anything else (yet).

            Basically I am trying to switch to dynamic lights, switching Static off was a first, obvious step. And in general it worked, but - as explained in the first post - not for all objects.

            Perhaps I need to do more, that's more or less what I am trying to find out/learn.

            Comment


              #7
              If you're using dynamic lighting you need to change the light types to Movable

              Comment


                #8
                The new Learning Portal has excellent courses with different learning paths, and good ones regarding lightning and stuff for visualization. I recommend, I am doing all the courses btw just to extract every knowledge drop possible.
                Nilson Lima
                Technical Director @ Rigel Studios Ltda - twitter: @RigelStudios
                Join us at Discord: https://discord.gg/uFFSEXY

                UE4 Marketplace: Cloudscape Seasons
                supporting: Community FREE Ocean plugin

                Comment


                  #9
                  I understand I miss a lot, but it still doesn't explain why I had to move components to make them make shadows. An object should either make shadow, or not, it shouldn't depend on changing coordinates back and forth.

                  Comment

                  Working...
                  X