Skip to content
master
Switch branches/tags
Code

AutoLOD

Automatic LOD generation + scene optimization - Initial release was on January 12, 2018 via blogpost

AutoLOD is primarily a framework for enabling automatic post-processing of geometrical model assets on import to create simplified levels-of-detail (LOD). A default mesh simplifier is included, but can be swapped out with other simplifiers and on a per-model basis if needed. Additionally, a whole scene can be hierarchically chunked into LODs with SceneLOD.

Experimental Status

It’s important to note that AutoLOD is an experimental feature. As such, there is no formal support (e.g. FogBugz, support@unity3d.com, Premium Support, etc.) offered, so please do not use these channels. Instead, post your questions, comments, suggestions, and issues here on GitHub.

As with anything experimental/preview/alpha/beta, it is always a good idea to make a backup of your project before using.

Experimental means this:

  • Namespaces, classes, software architecture, prefabs, etc. can change at any point. If you are writing your own tools, then you might need to update them as these things change.
  • There won’t always be an upgrade path from one release to the next, so you might need to fix things manually, which leads to the next point...
  • Stuff can and will break (!)
  • There’s no guarantee that this project will move out of experimental status within any specific timeframe.
  • As such, there is no guarantee that this will remain an actively supported project.

Features

  • LOD generation on model import with sensible defaults
  • Project-wide and per-model LOD import settings
  • Asynchronous, pluggable LOD generation framework
  • Hierarchical LOD support via SceneLOD -> [watch a quick tutorial video]

Useful classes (for your own projects, too!)

Evaluating

Unity 2018.4 (LTS) or a later version is required

Install via package manager

  • Using the UI
    1. Follow the steps provided here.
    2. The Git URL to use is https://github.com/Unity-Technologies/AutoLOD.git
  • Manually through editing manifest.json
    1. Read the instructions from the official documentation here.
    2. Open up manifest.json inside the Packages directory in your Unity project using a text editor.
    3. Under the dependencies section of this file, you should add the following line at the top: "com.unity.autolod": "https://github.com/Unity-Technologies/AutoLOD.git",
    4. You should now see something like this:
    {
        "dependencies": {
            "com.unity.autolod": "https://github.com/Unity-Technologies/AutoLOD.git",
            "com.unity.ads": "2.0.8",
            "com.unity.analytics": "3.2.3",
            "com.unity.collab-proxy": "1.2.15",
            "...": "...",
        }
    }

Cloning locally to your project (requires git-lfs)

  1. Create a new Unity project or use an existing one
  2. From the command line change directory to your project's Packages directory.
  3. Run git lfs clone https://github.com/Unity-Technologies/AutoLOD

Project Settings

If you plan on making changes to AutoLOD and/or contributing back, then you'll need to set the Asset Serialization property under Edit->Project Settings->Editor to Force Text.

License

Unity Companion License (see LICENSE)

All contributions are subject to the Unity Contribution Agreement (UCA)

By making a pull request, you are confirming agreement to the terms and conditions of the UCA, including that your Contributions are your original creation and that you have complete right and authority to make your Contributions.

Initial Contributors

Amir Ebrahimi
Elliot Cuzzillo
Yuangguang Liao

Community Contributors

@Camarent, @LoneDev6, @marwie, @msellens, @redwyre