Jump to content
tcmeric

Error with Generate Shadow Obj Tool

Recommended Posts

Probuilder ver 2.9.4f1

Unity 2017.10f3

Using the "Generate Shadow Obj" Tool on geometry gives the following errors below.

I am using the script that comes in this version and just uncommented out the necessary line to start it.

Once run, the geometry explodes out towards the edge of the screen, making everything unusable.

Any suggest fixed would be appreciated :)

OverflowException: Value is greater than Int32.MaxValue or less than Int32.MinValue
System.Convert.ToInt32 (Single value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Convert.cs:1231)
ProBuilder2.Common.pb_Vector.GetHashCode (Vector3 v)
ProBuilder2.Common.pb_Vertex.GetHashCode ()
System.Collections.Generic.GenericEqualityComparer`1[ProBuilder2.Common.pb_Vertex].GetHashCode (ProBuilder2.Common.pb_Vertex obj) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/EqualityComparer.cs:99)
System.Collections.Generic.Dictionary`2[ProBuilder2.Common.pb_Vertex,System.Int32].TryGetValue (ProBuilder2.Common.pb_Vertex key, System.Int32& value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:591)
ProBuilder2.Common.pb_MeshUtility.CollapseSharedVertices (UnityEngine.Mesh m, ProBuilder2.Common.pb_Vertex[] vertices)
ProBuilder2.EditorCommon.pb_EditorMeshUtility.Optimize (.pb_Object InObject, Boolean forceRebuildUV2)
ProBuilder2.Actions.CreateShadowObject.DoAction () (at Assets/ProCore/ProBuilder/API Examples/Editor/CreateShadowObject.cs:194)
ProBuilder2.EditorCommon.pb_MenuAction.DoButton (Boolean isHorizontal, Boolean showOptions, UnityEngine.Rect& optionsRect, UnityEngine.GUILayoutOption[] layoutOptions)
ProBuilder2.EditorCommon.pb_EditorToolbar.OnGUI ()
ProBuilder2.EditorCommon.pb_Editor.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:272)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:265)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:232)
 

 

OverflowException: Value is greater than Int32.MaxValue or less than Int32.MinValue
System.Convert.ToInt32 (Single value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Convert.cs:1231)
ProBuilder2.Common.pb_Vector.GetHashCode (Vector3 v)
ProBuilder2.Common.pb_Vertex.GetHashCode ()
System.Collections.Generic.GenericEqualityComparer`1[ProBuilder2.Common.pb_Vertex].GetHashCode (ProBuilder2.Common.pb_Vertex obj) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/EqualityComparer.cs:99)
System.Collections.Generic.Dictionary`2[ProBuilder2.Common.pb_Vertex,System.Int32].TryGetValue (ProBuilder2.Common.pb_Vertex key, System.Int32& value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:591)
ProBuilder2.Common.pb_MeshUtility.CollapseSharedVertices (UnityEngine.Mesh m, ProBuilder2.Common.pb_Vertex[] vertices)
ProBuilder2.EditorCommon.pb_EditorMeshUtility.Optimize (.pb_Object InObject, Boolean forceRebuildUV2)
ProBuilder2.EditorCommon.pb_Editor.UndoRedoPerformed ()
UnityEditor.Undo.Internal_CallUndoRedoPerformed () (at C:/buildslave/unity/build/artifacts/generated/common/editor/UndoBindings.gen.cs:201)
OverflowException: Value is greater than Int32.MaxValue or less than Int32.MinValue
System.Convert.ToInt32 (Single value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Convert.cs:1231)
ProBuilder2.Common.pb_Vector.GetHashCode (Vector3 v)
ProBuilder2.Common.pb_Vertex.GetHashCode ()
System.Collections.Generic.GenericEqualityComparer`1[ProBuilder2.Common.pb_Vertex].GetHashCode (ProBuilder2.Common.pb_Vertex obj) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/EqualityComparer.cs:99)
System.Collections.Generic.Dictionary`2[ProBuilder2.Common.pb_Vertex,System.Int32].TryGetValue (ProBuilder2.Common.pb_Vertex key, System.Int32& value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:591)
ProBuilder2.Common.pb_MeshUtility.CollapseSharedVertices (UnityEngine.Mesh m, ProBuilder2.Common.pb_Vertex[] vertices)
ProBuilder2.EditorCommon.pb_EditorMeshUtility.Optimize (.pb_Object InObject, Boolean forceRebuildUV2)
ProBuilder2.Actions.CreateShadowObject.DoAction () (at Assets/ProCore/ProBuilder/API Examples/Editor/CreateShadowObject.cs:194)
ProBuilder2.EditorCommon.pb_MenuAction.DoButton (Boolean isHorizontal, Boolean showOptions, UnityEngine.Rect& optionsRect, UnityEngine.GUILayoutOption[] layoutOptions)
ProBuilder2.EditorCommon.pb_EditorToolbar.OnGUI ()
ProBuilder2.EditorCommon.pb_Editor.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:272)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:265)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:232)
 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×