Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Runtime error when using Curvy Generator with Game Object Deform

I add a game object prefab to a Curvy Generator with Game Object deform and it works fine in the editor, however
in runtime, nothing renders and I get this error:

[Curvy] Volume spots: Number of generated spots reached the maximal allowed number, which is 10000. Spots generation was stopped. Try to reduce the number of spots needed by using bigger Bounds as inputs and/or setting bigger space between two spots.

How do I fix this? I get it for all my prefabs but it works fine with the RailBlock prefab.

Any help would be much appreciated.

Thanks in advance
It is curious that the behavior differs between edit and play mode. Is it possible for you to send me a reproduction case?
Also, does your used case need to create more than 10.000 objects?
Regardless of your answer, this message appears when the Volume Spots module creates what it considers as too many objects (10.000). This number can be modified in BuildVolumeSpots.cs, look for a constant called MaxSpotsCount.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Thank you for your reply.

I seem to have been able to solve the problem by enabling Read/Write  vertices in my model. I guess Curvy uses the vertices of the model for deformation and I saw this setting
was set on your example models. 

Strange that the error was this 10000 Spots message and it worked in editor.

Hope this input helps, you can easily reproduce this error but doing a Mesh Deform and creating a road or path with any meshes/prefabs without the Read/write vertices option disabled.

Thanks for the update. I will modify the code to print an error explaining what the issue is. Right now, there is a warning saying "Cannot combine mesh that does not allow access: Road_01", but that seems to no be displayed in the build console.

The 10000 Spots message probably happens because the Spots module tries to place empty meshes, and thus having no depth, and thus the issue explained earlier.

Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can Curve Spline be used for an in game level editor. Lupos 30 53 06-03-2023, 10:58 AM
Last Post: _Aka_
  Error when trying to connect nodes in prefab edit mode Lupos 4 8 06-02-2023, 10:27 AM
Last Post: _Aka_
  Way to get objects script from generator Lupos 10 21 05-26-2023, 09:51 AM
Last Post: _Aka_
  Programming a first-person player/camera to follow a Curvy Spline kenmarold 1 2 05-21-2023, 05:03 PM
Last Post: _Aka_

Forum Jump: