Nelarius / imnodes

A small, dependency-free node editor for dear imgui
MIT License
1.97k stars 241 forks source link

Link curves need to be adjusted #136

Open smilediver opened 2 years ago

smilediver commented 2 years ago

In some cases curves in links start intersecting with each other creating a confusing mess. It needs a better way of calculating control points.

Screenshot 2021-09-02 at 19 09 46

Maybe there could also be a choice to use straight links, something like this:

Accidentally found this interesting example of disproportionate in/out control points:

Nelarius commented 2 years ago

The first screenshot is definitely a bit of a mess. Link control points are currently scaled based on the link's length. Changing control points to something constant looks like this: link-screenshot

Better, but it looks a bit funny for longer links.

ImNodes could use some work on link shapes.