Announcement

Collapse
No announcement yet.

No documentation on the HLOD feature

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

    No documentation on the HLOD feature

    Hey Epic,

    I am currently digging through the docs and I cannot seem to find ANY docs on the HLOD feature.

    I can find references to it on the forums. Just not in the docs.

    #2
    We have a task entered to work on HLOD documentation but haven't gotten to it yet and I don't have an ETA on when that will happen. Maybe we can do a live training stream on it in the short term to cover the basics. Would that be helpful?
    Unreal Engine Documentation
    Bored? Follow me! @ffejnosliw

    Comment


      #3
      Originally posted by Jeff Wilson View Post
      We have a task entered to work on HLOD documentation but haven't gotten to it yet and I don't have an ETA on when that will happen. Maybe we can do a live training stream on it in the short term to cover the basics. Would that be helpful?
      That would be great!

      Comment


        #4
        Originally posted by Jeff Wilson View Post
        We have a task entered to work on HLOD documentation but haven't gotten to it yet and I don't have an ETA on when that will happen. Maybe we can do a live training stream on it in the short term to cover the basics. Would that be helpful?
        Yes, Please! Can you also detail what can be done outside of Simplygon?

        Comment


          #5
          I checked "Force No Precomputed Lighting" to use an all-dynamic setup, and I think that has turned HLOD generation off.

          Comment


            #6
            Originally posted by Jeff Wilson View Post
            We have a task entered to work on HLOD documentation but haven't gotten to it yet and I don't have an ETA on when that will happen. Maybe we can do a live training stream on it in the short term to cover the basics. Would that be helpful?
            Could you please outline the workflow and how to set up BP for instanced HLOD static meshes and foliage? (I generate LODs with InstaLOD directly in UE4 and Blender outside of UE4)

            I get it, you guys are busy, but how do you expect us, indie devs, to take advantage of optimization features if there are no docs, not even write ups on blogs or this forum?!

            Comment


              #7
              Originally posted by motorsep View Post
              Could you please outline the workflow and how to set up BP for instanced HLOD static meshes and foliage? (I generate LODs with InstaLOD directly in UE4 and Blender outside of UE4)

              I get it, you guys are busy, but how do you expect us, indie devs, to take advantage of optimization features if there are no docs, not even write ups on blogs or this forum?!
              You can enable HLODs via the World Settings (Map specific).

              Click image for larger version

Name:	HLODWorldSettings.png
Views:	1
Size:	38.1 KB
ID:	1117701

              Then you can go to Window > Hiearchical LOD Outliner to open up its settings window.

              Click image for larger version

Name:	HLODMenu.png
Views:	1
Size:	19.9 KB
ID:	1117702

              Click image for larger version

Name:	HLODOutliner.png
Views:	1
Size:	39.8 KB
ID:	1117703

              Here you can generate all your LODs and clusters. This window may seem overwhelming, but it's not all the difficult to figure out if you play around with the settings.

              Step 1.

              You'll start by setting up your LODs (bottom panel) and all the various settings you'll want for them. The biggest thing to pay attention to in the inividual LOD settings i the Desired Bounds Radius. Use smaller values to start out with until you see how it works. Something like HLOD Level 0 uses 250 and HLOD Level 1 will use 500 are good because these bounds are essentially just a 250cm and 500cm bounding sphere that group meshes in these sized chunks. Not all meshes are guaranteed to be in the sphere, but it's just an easy way to capture a cluster of actors.

              Step 2.

              Once you've set up your LODs, you can then hit the generate clusters button at the top. This will take a few minutes depending on the settings you used in the bottom LODs section and how many actors you have in your scene.

              When this finished you'll see the clusters populate the middle window. You can then select the individual LODs and see what actors were clusters in that particular LOD. You can use the slider at the top for "Forced Viewing Level" to see how your different HLODs will work.

              Step 3.

              If you're happy with your Generated HLODs you can now hit the Generate Proxy Meshes button. This will now convert all those HLODs into assets located in your project folder under HLODs. These static mesh actors can not be opened and edited if needed.


              Limitations and caveats:

              - Cannot use movable objects
              - Blueprints with many meshes will have a larger bounds than individual actors so if you're HLOD uses a smaller desired radius it will not be included in a HLOD.
              - Merged materials do not support the alpha channel. You will have to set this part up manually or not merge the materials for these types of actors.
              - HLODs do not decimate your meshes. You will need thirdparty software like Simplygon which is integrated and works. (Not sure about InstaLOD that you mention you are using)
              - Doesn't work with instanced meshed painted with the foliage tool.


              I hope this tides you over until there is some official documentation.

              Tim
              Last edited by Tim Hobson; 10-31-2016, 10:00 AM.
              Tim Hobson | Learning Resources | Epic Games
              UE4 Documentation

              Comment


                #8
                Thanks Tim, I will be digging it.

                Comment


                  #9
                  Any ETA on HLOD documentation being added? This system can be quite confusing even after reading up on the basics as detailed by Tim's post above. Also, did that live stream ever happen? This would be a great topic to cover in a stream. We keep hearing how great it is for Paragon. Our team is trying to get it setup for our open world RPG and it's driving some of us nuts.
                  --
                  Joshua
                  Multimedia Artist, Druid Gameworks
                  www.joshuaezzell.com
                  www.druidgameworks.com

                  Comment


                    #10
                    Originally posted by joshezzell View Post
                    Any ETA on HLOD documentation being added? This system can be quite confusing even after reading up on the basics as detailed by Tim's post above. Also, did that live stream ever happen? This would be a great topic to cover in a stream. We keep hearing how great it is for Paragon. Our team is trying to get it setup for our open world RPG and it's driving some of us nuts.
                    We have UEDOC-1611 for reference with this task. It's partly there, but hasn't been finalized yet. Sorry about the delay!

                    In the meantime, if you have questions about the system feel free to post them here and tag me. I'll help where I can with your questions.
                    Tim Hobson | Learning Resources | Epic Games
                    UE4 Documentation

                    Comment


                      #11
                      please give video tutor by delay reason)
                      Igor, swamper, sole proprietorship

                      Comment


                        #12
                        Originally posted by 6r0m View Post
                        please give video tutor by delay reason)
                        Unfortunately, I would have to use my own personal time and not work-time for this at the moment. I don't have a lot of free-time these days to do a proper video-tutorial outside of work.

                        The post I made above about setting up and using HLODs. I've added some pictures to at least show how to enable it from the World Settings and th open the HLOD Outliner window. Beyond that the steps for the settings should help you get started inside this window. If you have specific questions you can post them here and I'll help when I can.
                        Tim Hobson | Learning Resources | Epic Games
                        UE4 Documentation

                        Comment


                          #13
                          Originally posted by Tim Hobson View Post
                          Unfortunately, I would have to use my own personal time and not work-time for this at the moment. I don't have a lot of free-time these days to do a proper video-tutorial outside of work.

                          The post I made above about setting up and using HLODs. I've added some pictures to at least show how to enable it from the World Settings and th open the HLOD Outliner window. Beyond that the steps for the settings should help you get started inside this window. If you have specific questions you can post them here and I'll help when I can.
                          Thank you for answer.
                          Can you explain a little bit why we should use this feature (may be when), how much performance it's give and on the fingers - HLOD it's LOD inside LOD?
                          Igor, swamper, sole proprietorship

                          Comment


                            #14
                            HLOD it's LOD inside LOD?
                            The way I understand it, it allows you to group items together as a lod level.
                            The difference being:

                            LOD:
                            Several versions of one mesh, when you come closer, the better the version you see.
                            Imagine several meshes of a hut, forming a small village.
                            At a distance, the meshes are at their lowest LOD.
                            While we may have dropped all the weight of complicated materials in this LOD, alas, it is still at least one drawcall per mesh.

                            HLOD:
                            Same situation as above, but you group the hut meshes HLOD style (however that will work), and you create a LOD mesh that contains the whole village a one mesh with super low details.
                            At distance, the individual hut meshes are dropped and the mesh of the whole vilage takes over.
                            Et voila: only one drawcall and you still see that there is a settlement in the distance....

                            Please, please correct me if I got the concept wrong
                            Last edited by KVogler; 10-31-2016, 02:31 PM.

                            Comment


                              #15
                              Originally posted by 6r0m View Post
                              Thank you for answer.
                              Can you explain a little bit why we should use this feature (may be when), how much performance it's give and on the fingers - HLOD it's LOD inside LOD?
                              Klaus is right.

                              LODs for individual meshes allow you to have set quality levels for decimation of the mesh so that it's less triangle heavy. So if you open the Static Mesh editor you can import manually separate LODs, use a decimation tool like Simplygon in the editor, or have these already included with your import of your FBX from your modeling application.

                              Click image for larger version

Name:	SaticMeshLODs.gif
Views:	1
Size:	902.4 KB
ID:	1117726


                              HLODs allow you to clump actors together based on values entered into the HLOD Outliner's LODs. The cluster generation settings allow you to specify how the bounds for these generate clusters are formed throughout the level. After you generate clusters and then finalize with the Generate Proxy Meshes you will end up with something like this:

                              This requires no setup in the original Static Mesh for LODs. You get static meshes that are individual actors initially like here:

                              Click image for larger version

Name:	HLOD1a.gif
Views:	1
Size:	783.1 KB
ID:	1117727

                              After you've generated the HLODs and you back the camera away to the specified screen size you get the switch to the HLOD, which is just the combined actors, in this case the two chairs and table.

                              Click image for larger version

Name:	HLOD1b.gif
Views:	1
Size:	802.8 KB
ID:	1117728

                              This HLOD actor can be opened on it's own in the static mesh editor. It's now it's own asset that is tied to the HLOD generation settings to know when it should transition for the other actors. This is a great way to reduce draw calls and regain performance in dense environments. HLODs just make use of clumping actors together at different distances and in that regard is separate than mesh reduction/decimation techniques.

                              In 4.13 and previous versions HLODs were not decimated, which means they could still be vert heavy unless you had a license for Simplygon. In 4.14 Epic has made their own decimation tool for mesh reduction, so you can open the HLOD asset and setup separate LODs to reduce the vert count.

                              Performance wise, you should make use of both HLOD and LODs, especially for densely packed environments where you need to save on performance by reducing drawcalls.
                              Tim Hobson | Learning Resources | Epic Games
                              UE4 Documentation

                              Comment

                              Working...
                              X