-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Work in process] Path Flow Modifier #13553
Comments
Sweet! Can you update the mesh normals, too -- or do you feel it is not necessary? |
@WestLangley I tried to update the mesh normals, however I think I might be making some wrong calculations... (https://github.com/zz85/threejs-path-flow/blob/9d58cc731b9242dda61013115f90f00dfe2604fd/flow.js#L97) |
Looks amazing. I'm wondering if it would be useful in many circumstances as is. If you could make bones follow a curve that could be super useful for things like tail animations and twisting bodies for more natural motion in certain cases. Reminds me of presentation on procedural animation where a lizard's tail was aligned on a spline to make turn animation look really fluid. |
The forum (category |
@zz85 Did you managed to get more progress on this? Could be nice to have it as an example. |
I'm having a go at getting this to work in a more modular format: https://ada.is/xrgarden/src/lib/flow.js Usage:
It works really nicely, although I can't get your code to work on mobile phones. Is there a WebGL feature missing for those devices? It works on some mobile chipsets such as a Nokia 6.2 |
I changed it to WebGL2 and now it works great on mobile devices too. |
I've shared this on twitter, but just adding here for gathering more feedback and tracking.
The idea behind "Path Flow Modifier" (Path Flow in Maya term, Curve Modifier in Blender) is to allow deformation / bending of a mesh along a path. This utilizes the Curve and Frenent Frames properties from threejs, passes them through a texture and the resulting vertices are modified in real time in the vertex shaders.
There may be a couple more things to figure out before making a PR to add this as an example, meanwhile the examples and source code can be played around below.
Demo: https://zz85.github.io/threejs-path-flow/flow.html
Source Code: https://github.com/zz85/threejs-path-flow
The text was updated successfully, but these errors were encountered: