0
$\begingroup$

I want to create a dashed line in the middle of a road which follows a curve using Geometry Nodes.

The problem in my current setup is that the individual 'dashes" don"t follow the curve since they are defined as cubes. This causes them to disappear at certain places or float a bit above the surface.

Would it be possible to make the dashes follow the road in the same way the full white lines do?

The Blender file is in attachment under the images.

enter image description here enter image description here enter image description here enter image description here

$\endgroup$

1 Answer 1

3
$\begingroup$

In order for the geometry not to overlap with the other, it would have to follow exactly the topology of the road.

You can solve that this way:

enter image description here

Here I use the same curve that you use to create the road, but convert it to a mesh line.

This way I can delete single points, so that gaps are created. These mesh lines are then converted back into curves, so that these segments do not differ from the original curve in terms of the position of the points (apart from the gaps).

Finally, as with the other objects, you convert this curve to a mesh using Curve to Mesh.


(Blender 3.2+)

$\endgroup$
2
  • $\begingroup$ This is great! :-D I wouldn't have found this solution by myself. Thanks a lot Stephan! A paypal coffee is underway. $\endgroup$ Mar 25 at 18:58
  • $\begingroup$ @PieterLéon Always a pleasure! Thanks for the coffee! $\endgroup$
    – quellenform
    Mar 25 at 19:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .