Skip to content
blendshelf
Geometry Nodes
Shortest path with custom edge cost setup in Geometry Nodes
Geometry Nodes

Shortest path with custom edge cost setup in Geometry Nodes

by Codesignprojects - Blends, setups, coffee

Geometry Nodes setup for Blender 3.4 by Codesignprojects - Blends, setups, coffee. Files: .blend.

€3.90+

Get it on Gumroad

Sold by Codesignprojects - Blends, setups, coffee. Check current pricing, license and Blender compatibility on Gumroad before purchasing.

Type
Geometry Nodes setup
Blender version
3.4
File formats
.blend
Render engine
EEVEE
Last checked
14 Nov 2026

From the creator’s description

A demonstration of the new shortest path node with custom edge cost in Blender, Geometry Nodes. The file has 3 versions of the setup with increasing complexity for easier readability. It utilizes the new "Shortest Path" node in Blender 3.4 and in adds custom edge cost to create the growth effect by proximity to a custom effector object. The most important control nodes are highlighted in red, so you can experiment with the settings values. (They are not exposed as Group Input to the Modifier controls in the Modifier side tab, for easier readability of the node tree.) The setup is optimized for 4.2-5.2. --------------------------------------------------------------------------------------------- This Geometry Nodes setup generates an organic, spherical branching structure using the Shortest Edge Paths node. By calculating paths across a base mesh and dynamically deleting or displacing vertices based on their proximity to a custom Effector object, the system forces the pathing algorithm to reroute. This creates a natural, flower-like growth pattern that actively reacts to the effector. There are 3 versions available inside - 1. In this setup we start with an icosphere, and then use the shortest path calculation nodes. Here we dont use custom edge cost, but leave it empty - meaning it uses the default cost, the distance between vertices (and chooses the shortest value). We choose a vertex manually to be the end vertex of the calculations. Then we move the vertices toward an effector object and delete the closest ones to create an "opening". In this node setup the proximity of the effector object does not influence the "branching", hence the name. Tip: Experiment with the deletion proximity (or turn it off completely). 2. Here we create an icosphere as base object, and do the same procedure, meaning delete vertices by proximity to an effector object, but here A. WE USE a custom edge cost, the distance to the effector object, so the branches are recalculated every time the object moves. B. We use the closest (or furthest) vertex as end vertex for the shortest path calculations. This way we can conveniently define in real time the branching points by moving the effector. C. We dont move the vertices toward the effector, so the sphere stays "spherical" 3. The same as 2, but here we move the closest vertices toward the effector object. --------------------------------------------------------------------------------------------- FAQ Why are the branches snapping or jittering wildly when my effector moves? The Shortest Edge Paths node calculates the absolute shortest route across the available mesh every single frame. As your effector deletes or moves vertices, the algorithm constantly recalculates and snaps to new optimal routes. For smoother growth, move the effector slowly. How do I use my own base mesh instead of the Ico Sphere? Disconnect the Ico Sphere node at the very beginning of the tree (in the Noise displace vertices frame) and route a Group Input (Geometry) node in its place. Your custom mesh needs dense, evenly distributed topology for the shortest path algorithm to look natural. Why are no branches appearing at all? The branches rely on proximity. If your Effector object is too far away, the proximity falloff won't trigger the vertex deletion or path displacement. Move the Effector closer to the origin of the base mesh until the branches start reaching for it. --------------------------------------------------------------------------------------------- ✦ Developer Notes: - Since it is a concept demonstration, it is kept as simple as possible. The GeoNodes trees are kept clean for easier readability and have detailed explanations. Everything is built from the base. The point of these setups is to provide a base core of the concept, node from node, instead of contracting all into node groups with exposed settings, which makes everything harder to read and dissect. You can embellish, refine as you wish based on the core or realize your own ideas. - Read the text description, it has a lot of useful info! -(The setup should be opened in Blender 3.6X and above) -The file is optimized for and rendered in Eevee (Render Viewport Animation). Of course, you can set up any renderer you wish. --------------------------------------------------------------------------------------------- You can access all products in this channel for basically free here - https://codesignprojects.gumroad.com/l/kzdwu (What's this ? A Gumroad membership to access all blend files, materials, node setups and all the fun in the Codesignproject Gumroad page. A weekly growing selection of blend files, materials, models, Geometry Nodes setups and all. These setups are kept as simple as possible, concentrating on one concept, for readability and clarity, in order to make them as useful and easy to dissect them as possible. To study, use, reuse or modify.) Insta - https://www.instagram.com/codesign_projects --------------------------------------------------------------------------------------------- Question, Discussions - Email - [email protected] ✨ Blender 4.x – 5.x Compatibility: This product includes updated / native Blender 5.2 files and is fully tested and optimized for both Blender 4.x and Blender 5.x workflows.

More geometry nodes