I am trying to create an importer/exporter script for an open world's game map. However, I am being constantly hit and set back by performance of blender.

I want to be able to create way points for car, with support for junctions (this would mean I need something that has more than 2 end points)

I have thought of using lines (path curves) for single line paths and for junctions I am thinking to calculate it mathematically at the point where 2 lines intersect. After importing about more than 3000 splines in a single curve object, blender have come to a slow crawl when it comes to edit mode, navigating in 3D view is quite fast as its only one object.

Is there any other way to do this? I am at loss now.

EDIT: I have also tried using armatures instead, as you can have many endpoints than a curve. However I found it crashing and unstable after hitting 6000 armature bones. And the selection of single bone is just painfully slow

  • 2
    $\begingroup$ Well my colleague has been through the same - creating navigation paths for a city roadmap which had to be C2 smooth. He ended up ditching blender entirely and coding a custom curve editor for the engine. It was simple and took 2 days to make, but in the end it saved a lot of time. $\endgroup$ Aug 27 '15 at 6:23
  • 1
    $\begingroup$ What about creating it as a mesh, then converting to a curve after? $\endgroup$
    – gandalf3
    Aug 27 '15 at 6:24
  • $\begingroup$ @gandalf3 I did Alt-C, its very performant now. But I am not sure my users would want to edit paths as a mesh. Also any ideas to go on adding in support of number of lanes in each lines? This is a path for cars. $\endgroup$
    – Swoorup
    Aug 27 '15 at 6:32
  • 1
    $\begingroup$ @brasshat no this is nothing to do with the blender game engine at all. And nothing particular about any game engine at all. BTW, its nothing problematic about the script too, it' s just about blender when it comes to handling large number of objects/curve $\endgroup$
    – Swoorup
    Aug 27 '15 at 8:58
  • 1
    $\begingroup$ If not done already, you could hide the parts you are not editing (H/Alt-H) and reduce the preview resolution to 1 (default is 12) in the properties panel. Also disable the normals display for curves in the N-Panel. $\endgroup$
    – user2859
    Aug 27 '15 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.