Announcement

Collapse
No announcement yet.

Do you really have to re-build lightning everytime you make a change?

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

    Do you really have to re-build lightning everytime you make a change?

    I find this kinda annoying. Is it any chance that it will be gone in the future?
    System
    ASUS ROG Maximus IX Forumla - ASUS ROG GeForce GTX 1080 8GB - G.Skill RGB 16GB, Samsung M2 500GB

    ArtStation
    Artwork thread

    #2
    You could just use dynamic lighting ^^ Then you wont have to rebuild anymore

    Comment


      #3
      Hi Frequia,

      This is a necessity when using static or stationary lights. The reason being that the light information needs to be rebuilt and put into a texture called a lightmap. This lightmap stores light and shadow information so that it does not have to compile it at run-time. This is great for performance gains because this lightmap does not have to calculate shadow information at run-time.

      If you want to avoid this you will need to make your light sources (directional, point light, and spotlight) movable rather than static or stationary. This can cause an FPS hit depending on the number of shadows being calculated for your scene.

      If you have any other questions feel free to ask!

      Tim
      Tim Hobson | Learning Resources | Epic Games
      UE4 Documentation

      Comment


        #4
        Fighter! You sir are too fast!

        You always beat me by a few moments! haha
        Tim Hobson | Learning Resources | Epic Games
        UE4 Documentation

        Comment


          #5
          So if I use movable lights, I dont need to re-build lightning anymore?
          System
          ASUS ROG Maximus IX Forumla - ASUS ROG GeForce GTX 1080 8GB - G.Skill RGB 16GB, Samsung M2 500GB

          ArtStation
          Artwork thread

          Comment


            #6
            If you movable lights you will not need to rebuild lights any longer.

            However, as stated before there is a performance hit for this depending on the number of meshes in the scene that are casting shadows and the complexity of the mesh.

            You can find a little bit of information about movable lights here.
            Tim Hobson | Learning Resources | Epic Games
            UE4 Documentation

            Comment


              #7
              Thanks for the link, will have a read. And thanks for the help
              System
              ASUS ROG Maximus IX Forumla - ASUS ROG GeForce GTX 1080 8GB - G.Skill RGB 16GB, Samsung M2 500GB

              ArtStation
              Artwork thread

              Comment


                #8
                And you don't actually have to rebuild lights, it's probably best to do some work and once you've done a more significant amount of work then do a build on Preview quality to see what it looks like. So you only do it from time to time, and once you're done creating the level you do a build at Production quality.

                Comment


                  #9
                  Originally posted by darthviper107 View Post
                  And you don't actually have to rebuild lights, it's probably best to do some work and once you've done a more significant amount of work then do a build on Preview quality to see what it looks like. So you only do it from time to time, and once you're done creating the level you do a build at Production quality.
                  I know this is an old thread, but I'd like to ask about the current situation with this...
                  1. If the _BuildData is missing on the machine (say that e.g. it is not under version control), and I package a game, what will happen? Is the packaging process going to rebuild the lighting, or will those static and stationary lights have no impact on the baked lighting information?
                  2. And what if there is the _BuildData file for the level, but it is old and not recalculated (say the case, when it would inform you in the top left corner about having to recalculate lighting, but you did not do that before packaging).
                  3. And finally, what if the _BuildData is calculated and is up to date, but only built with Preview quality. Will a shipping package only contain Preview quality shadows baked in?
                  Thanks!

                  Comment


                    #10
                    If you package your game the lighting will be in whatever state it is currently in, it doesn't do anything to the lighting when it packages the game. So if it's got that message about the lighting needing to be recalculated then it'll have the message in the packaged game too.

                    Comment

                    Working...
                    X