Unity-Technologies / AutoLOD

Automatic LOD generation + scene optimization
https://blogs.unity3d.com/2018/01/12/unity-labs-autolod-experimenting-with-automatic-performance-improvements/
Other
1.81k stars 212 forks source link

AutoLOD setup problem #63

Closed JohnnyDrive1 closed 4 years ago

JohnnyDrive1 commented 4 years ago

Hi! I try to test AutoLOD. But unfortunately when I create Unity project and then use "git lfs clone --recursive https://github.com/Unity-Technologies/AutoLOD", I got next errors

Could you help me, please? What should I do?

JohnnyDrive1 commented 4 years ago

image

JohnnyDrive1 commented 4 years ago

image This is how Preferences/AutoLOD window looks like

amirebrahimi commented 4 years ago

It looks like your pull did not include submodules. Can you try a fresh pull and let me know if you see any errors? You should have files in the AutoLOD/Packages/UnityMeshSimplifier folder.

JohnnyDrive1 commented 4 years ago

amirebrahimi, hi! I repeated everything from scratch. And I got this problem again. Here are my steps in details:

  1. I create new Unity project (I am not using Git for this. It is just new Unity project)
  2. I am launching CMD and moving to Assets folder of this project via console commands
  3. When I am at Assets folder of this project I am launching next command: "git lfs clone --recursive https://github.com/Unity-Technologies/AutoLOD" The process is going well!
  4. But then I am trying to launch "git submodule update" and I got an error: "fatal: not a git repository (or any of the parent directories): .git"

image

JohnnyDrive1 commented 4 years ago

I tried to move to AutoLOD folder and repeat "git submodule update" command, and there were no errors. But in Unity there are the same problems.

ps. I tried to restart Unity, it did not help

JohnnyDrive1 commented 4 years ago

image

JohnnyDrive1 commented 4 years ago

And yes, AutoLOD/Packages/UnityMeshSimplifier folder is not empty. But because of Preferences/AutoLOD does not work, I can not configure it

Could you say me, please, is there any other options to get AutoLOD with UnityMeshSimplifier? I want to test it very much=) image

FeldNico commented 4 years ago

What I've done was changing s_Batcher to batchers in line 681 and 685 in AutoLOD.cs

JohnnyDrive1 commented 4 years ago

What I've done was changing s_Batcher to batchers in line 681 and 685 in AutoLOD.cs

FeldNico, OH MY GOD! Thank you sooooo much! You are great! image

JohnnyDrive1 commented 4 years ago

amirebrahimi and FeldNico, right now I am testing AutoLOD. If everything will be OK, I will close this thread in the nearest time. If not - I will ask new question

JohnnyDrive1 commented 4 years ago

Well, I think I will create separated thread, because new issue is not connected with Setup, it is connected with User Experience. Description of the problem: when I use AutoLOD sometimes Unity stops responding. And only first top line of Commands is working (this is the reason, why I can Save my scene safely and safely quit from application) image

JohnnyDrive1 commented 4 years ago

https://github.com/Unity-Technologies/AutoLOD/issues/64 Here is description of the new problem. amirebrahimi and FeldNico, thank you for your help with solving of current problem!