Under review

error converting trees

jburnsnotice 3 months ago • updated by Aaron Brown 3 months ago 1

Hi! Thanks for the cool product. I get this issue when trying to convert trees from the "stylized Nature pack" by Mikael Gustaffson. By all the trees are poorly optimized, as in not at all. But they look great and fit my project so there ya go. Thanks for any help. Below is the console error that appears when in trying to convert those trees in  the tree converter scene

ArgumentNullException.Argument cannot be null.

Parameter name:shader

ArgumentNullException: Argument cannot be null.
Parameter name: shader
UnityEngine.Material..ctor (UnityEngine.Shader shader) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Shader.bindings.cs:97)
_LushLODTreeConverter.DoAlphaPadding (Int32 downsample, Single blurSize, Int32 blurIterations, UnityEngine.RenderTexture source, UnityEngine.RenderTexture destination) (at Assets/LushLOD Trees/Scripts/_LushLODTreeConverter.cs:2228)
_LushLODTreeConverter+<CreateBillboard>c__Iterator1.MoveNext () (at Assets/LushLOD Trees/Scripts/_LushLODTreeConverter.cs:942)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

Under review

When I went to line number 2228 of my version of the _LushLODTreeConverter.cs file, it's a comment, not a line of code at all. But I have multiple versions of that file, for different versions of Unity. Let me know what version of Unity you are using. If you edited that file in any way, then you can email me a copy of your _LushLODTreeConverter.cs file, to my email address at aaronbrownlm@gmail.com, or just copy and paste the area of code where the error is, right here as a reply, so I can see what line of code is causing the error. I may be able to guess what the problem is just by looking at the line of code that's causing the error.