Original Post
This has been bothering me for years and I still can't figure it out. How does one draw a tube along a curve? I'm talking about how in all these demoscene demos they draw tentacles and tubes spawning out from somewhere and growing along a curve. How is that procedurally generated?
One idea I had was to create points around the tangent of the curve, but how would you keep the angle constant, would you just have one up vector and just rotate off of that? So maybe tessellate it with like 10 points all around to get a round object...
Another solution was to make it purely in shaders where you just make the color lighter as you go closer to the center of the curve so it just looks like it's round.
Am I over-thinking this? Does anyone have any ideas?
One idea I had was to create points around the tangent of the curve, but how would you keep the angle constant, would you just have one up vector and just rotate off of that? So maybe tessellate it with like 10 points all around to get a round object...
Another solution was to make it purely in shaders where you just make the color lighter as you go closer to the center of the curve so it just looks like it's round.
Am I over-thinking this? Does anyone have any ideas?