Capixo Posted March 13 Posted March 13 Hi everyone, I'm trying to use WorldSplineGraph in Unigine Community SDK 2.20 with my own custom road segment mesh imported from Blender. I've run into a few issues and would appreciate any help. Here are Problems: 1. WorldSplineGraph automatically closes the spline into a loop in the opposite direction of Forward Axis**, creating an unwanted circular shape even when I only want a straight or gently curved road. 2. When two segments are assigned nodes, the result looks like**: loop → gap → loop → gap, instead of a clean continuous road. 3. The mesh gets severely twisted and deformed along the spline, even when the spline points are nearly straight. So How do I prevent WorldSplineGraph from auto-closing the spline in the reverse direction? Any advice or examples of working custom segment setups would be very helpful. Thank you very much!
arizmenda Posted March 16 Posted March 16 Hi, First of all, I'd recommend checking the example that comes with the SDK: C++ Samples → Nodes → WorldSplineGraph. It shows a basic working setup and can help verify whether the issue comes from the spline setup or from the mesh itself. You can also download the Art Samples demo project - it contains a couple of spline-based examples (roads and ropes). Those are useful to see how segment meshes are expected to be prepared and used. From your description and screenshots, it's possible that the mesh exported from Blender has an incorrect offset or axis orientation. I'd suggest checking the Front Axis / Up Axis settings in the import parameters, as well as the mesh pivot and orientation in Blender before export. If those axes don't match what the spline system expects, it can cause twisting, loops, or gaps between segments: https://developer.unigine.com/en/docs/2.20/editor2/fbx/ If possible, you could also share the mesh you're using - we can try importing it on our side and see if we can reproduce the issue. Also keep in mind that spline-based tools are still considered an experimental feature, so some edge cases and unexpected behavior can still occur. Hope this helps!
Recommended Posts