3DSinghVFX / animation_nodes

Node-based visual scripting system designed for motion graphics in Blender.
Other
155 stars 16 forks source link

Shortest Path node #146

Closed tausendsasser closed 4 years ago

tausendsasser commented 4 years ago

Hi, unfortunately it doesn't work. I followed all instructions exactly. ( https://www.youtube.com/watch?v=C-DTo-R_V6I&t=3s ) Unfortunately, paths are formed from each individual vertice. The paths are also built up in reverse and the curve objects then overlap.

Please Help. bye Marcel v01.zip

Daily Release: 41fd1b49b89a4437b625c780651b6647.zip Blender: v2.82.7 Win10Pro

3DSinghVFX commented 4 years ago

Hi :) Thanks for the feedback. I have fixed the wrong direction of paths and added an option to change the direction of paths in https://github.com/3DSinghVFX/animation_nodes/commit/50559b853182c9261563189bbd0af63a4567f01b

Curves of paths will overlap because this way the Dijkstra's algorithm works. If you want to remove overlap then generate the paths as Line-Meshes then remove the doubles then convert into splines: v01

v02

tausendsasser commented 4 years ago

Thank you for your time. I installed the new build and exactly rebuilt your node setup. Unfortunately, the result is not correct. Now the paths are set up again from each vertices. In addition, the double vertices are still present. Thank you for your patience. v01a.zip

3DSinghVFX commented 4 years ago

Thank you for your time. I installed the new build and exactly rebuilt your node setup. Unfortunately, the result is not correct. Now the paths are set up again from each vertices. In addition, the double vertices are still present. Thank you for your patience.

You are welcome.

You need to increase the Distance (in this case 0.001) in the BMesh Remove Doubles node. v01a.blend.zip

tausendsasser commented 4 years ago

That worked. :) Unfortunately, the animation does not form from the defined Vertices 68 (Integer List). Do you also have a solution? :)

3DSinghVFX commented 4 years ago

What do you mean by defined vertices 68? Please elaborate.

tausendsasser commented 4 years ago

The animation should start from a fixed position, the red square (Vertices No. 68). :) sorry my english is bad...

3DSinghVFX commented 4 years ago

It is not starting from there because we have merged the vertices.

You can choose a particular path from the path-list: v01a

v01b.blend.zip

tausendsasser commented 4 years ago

A big thank you. :) The animation nodes are really really complicated.

3DSinghVFX commented 4 years ago

Is it resolved? should I close this issue?