TheDuckCow / godot-road-generator

A godot plugin for creating 3D highways and streets.
MIT License
358 stars 18 forks source link

Mesh deform along curve #123

Open TheDuckCow opened 1 year ago

TheDuckCow commented 1 year ago

For various applications, it is becoming increasingly apparent that having a way to deform pre-provided meshes to follow along a curve in Godot will be incredibly helpful.

The applications of such a feature:

One person did create a C++ native project here, but has been untouched in over 4 years: https://github.com/TheFamousRat/MeshCurver/tree/master

It does seem likely that it would be a bit slow to implement in gdscript, but this could also be greatly mitigated by caching placements to meshes in pre-defined scenes (https://github.com/TheDuckCow/godot-road-generator/issues/109)

This seems like it would be useful enough it would actually warrant being its own plugin. But, we could see about implementing a lightweight version of it first here.

TheDuckCow commented 1 year ago

Seems that someone has made a good stride towards this! But for Godot 4, would be interesting to see if they post more about this: https://twitter.com/KasperArnklit/status/1708824724808069506

(reddit post: https://www.reddit.com/r/godot/comments/16xvoxm/made_a_little_tool_to_make_meshes_repeat_along_a/)

TheDuckCow commented 3 months ago

When we get to this stage, here's a video of an equivalent road generator tool for Unreal Engine (https://www.youtube.com/watch?v=ndXxlOlRRk0) which looks pretty impressive. They essentially have stacks of arrays or rather checkbox rows which define which kind of feature to be added and arrayed along a road. Their materials are pretty impressive too. A few things that are nice about this tutorial: