Three JS path following

Hi all, I'm looking to recreate this effect in react-three-fiber. My assumption is that I can create a curve with an array of points, and then create a mesh that follows the path, or perhaps particles? I'm pretty new to threejs (but not new to 3d) so I'd appreciate a nudge in the right direction here. In blender it's pretty trivial to create a curve and constrain a mesh to that curve, hopefully it's fairly easy in three as well. If I have to write a gsls shader for it I'm out of luck but perhaps a particle or mesh solution would be doable
1 Reply
benten
bentenOP3y ago
Something like this looks promising, but I don't think the mesh itself would conform to the curve https://github.com/mrdoob/three.js/blob/master/examples/webgl_modifier_curve.html yep this does it https://hofk.de/main/discourse.threejs/2021/MotionAlongCurve/MotionAlongCurve.html
Want results from more Discord servers?
Add your server