Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mesh.normals is out of bounds
#1
Hi I'm getting the following error on a generator, using Unity 2017.3, curvy versions 2.1.3 & 2.2

Code:
Mesh.normals is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
UnityEngine.Mesh:set_normals(Vector3[])
FluffyUnderware.Curvy.Generator.CGVMesh:ToMesh(Mesh&) (at Assets/Packages/Curvy/Base/CG/CGData.cs:1182)
FluffyUnderware.Curvy.Generator.Modules.CreateMesh:writeVMeshToMesh(CGVMesh&) (at Assets/Packages/Curvy/Base/CG Modules/CreateMesh.cs:613)
FluffyUnderware.Curvy.Generator.Modules.CreateMesh:createMeshes(List`1&, Boolean) (at Assets/Packages/Curvy/Base/CG Modules/CreateMesh.cs:508)
FluffyUnderware.Curvy.Generator.Modules.CreateMesh:Refresh() (at Assets/Packages/Curvy/Base/CG Modules/CreateMesh.cs:417)
FluffyUnderware.Curvy.Generator.CGModule:doRefresh() (at Assets/Packages/Curvy/Base/CG/CGModule.cs:792)
FluffyUnderware.Curvy.Generator.CurvyGenerator:Refresh(Boolean) (at Assets/Packages/Curvy/Base/CG/CurvyGenerator.cs:542)
FluffyUnderware.Curvy.Generator.CurvyGenerator:editorUpdate() (at Assets/Packages/Curvy/Base/CG/CurvyGenerator.cs:239)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

&

Code:
IndexOutOfRangeException: Array index is out of range.
FluffyUnderware.DevTools.Extensions.MeshFilterExt.CalculateTangents (UnityEngine.MeshFilter m) (at Assets/Packages/DevTools/Extensions/Extensions.cs:767)
FluffyUnderware.Curvy.Generator.Modules.CreateMesh.writeVMeshToMesh (FluffyUnderware.Curvy.Generator.CGVMesh& vmesh) (at Assets/Packages/Curvy/Base/CG Modules/CreateMesh.cs:620)
FluffyUnderware.Curvy.Generator.Modules.CreateMesh.createMeshes (System.Collections.Generic.List`1& vMeshes, Boolean combine) (at Assets/Packages/Curvy/Base/CG Modules/CreateMesh.cs:508)
FluffyUnderware.Curvy.Generator.Modules.CreateMesh.Refresh () (at Assets/Packages/Curvy/Base/CG Modules/CreateMesh.cs:417)
FluffyUnderware.Curvy.Generator.CGModule.doRefresh () (at Assets/Packages/Curvy/Base/CG/CGModule.cs:792)
FluffyUnderware.Curvy.Generator.CurvyGenerator.Refresh (Boolean forceUpdate) (at Assets/Packages/Curvy/Base/CG/CurvyGenerator.cs:542)
FluffyUnderware.Curvy.Generator.CurvyGenerator.editorUpdate () (at Assets/Packages/Curvy/Base/CG/CurvyGenerator.cs:239)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:127)

in both the editor and runtime.

Also the bug submit form isn't working as it needs captcha but theres no captcha on the page (chrome)
Reply
#2
I fixed this by switching off combine
Reply
#3
Hi,
Can you please send me either a scene where the issue is reproducible, or detail to me the reproduction steps to have a CurvyGenerator that suffers from this bug?
Thanks
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#4
(01-12-2018, 07:21 AM)hawken Wrote: Also the bug submit form isn't working as it needs captcha but theres no captcha on the page (chrome)

Weird, I did receive your bug report from the form, twice.
What was displayed exactly? You had the error message at the top but not the captcha field at the bottom?
   
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#5
hi Aka!

Yes make a volume mesh and volume caps, hook them up to a create mesh, with "Combine" on it errors

This is what I see for the bug report in Chrome btw

   
Reply
#6
I could reproduce the bug. It should be fixed in the upcoming 2.2.1 version.
I will post the fix here when it will be done.
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#7
Bug fixed in 2.2.1, which I just submitted to Unity.
The fix is spread over multiple locations in the code, so it's not practical to paste it here. If you need it urgently, PM me and I will send you the files.
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can Deform Mesh shrink as well as stretch? davelloyd 1 3 Yesterday, 11:16 AM
Last Post: _Aka_
  Is it possible to make the face at the end of mesh? Chanon 3 6 11-14-2024, 04:38 PM
Last Post: _Aka_
  Mesh deform - baby guide jmh1804 7 12 08-22-2024, 07:18 AM
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 22 04-17-2024, 10:57 AM
Last Post: _Aka_

Forum Jump: