Hello,
for a scene with procedural fabric I created animated curves like this:
The animation is controlled by @blend, the moment it reaches 1 (red) the points don't move any more.
Now I have to duplicate these curves using a sweep with surface type "columns". I make the sweep curves twist around the original in the center by a partialtwist. Now unfortunately the reference point with zero twist is at the wrong end of the curve that is moving, so the fixed points are still rotating like crazy.
So I have to revert the sweep direction making it start the twist on the other end. Apparently this can not be controlled by the point order, I have not found any solution with the sort node.
Do you know how to tell the sweep where to start the twist?
Sweep Rotation Direction
892 2 4- freewind
- Member
- 94 posts
- Joined: Sept. 2021
- Offline
- Mohanpugaz
- Member
- 146 posts
- Joined: June 2016
- Offline
you can use an attribute (lets say `@twist_mask`) to control the twist, this attribute is a multiplier, so you can manipulate it as much you want such as re-mapping that using curveu attribute and use that mask to drive the twist.
Edited by Mohanpugaz - May 13, 2024 08:55:42
Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
- freewind
- Member
- 94 posts
- Joined: Sept. 2021
- Offline
Thanks, so I can use an attribute for that. Unfortunately it works cummulative in the sweep node, so I probably have to write a point loop for that. I thaught simply switching directions should be much easier, but if that does not work yet I have to take that effort.
EDIT: I seperated the curves now and used a pointwrangle on them. That seems to work pretty well.
However I faced a new problem now. Before I used "Z Axis (Ignore curve)" for the tangent type. Otherwise the sweep didn't know how to orient the edges. Now with the applied twist that does not work any longer, it stretches the edges depending on their direction. Do you know the right settings for the tangent and up vector to make it either way?
EDIT: I seperated the curves now and used a pointwrangle on them. That seems to work pretty well.
However I faced a new problem now. Before I used "Z Axis (Ignore curve)" for the tangent type. Otherwise the sweep didn't know how to orient the edges. Now with the applied twist that does not work any longer, it stretches the edges depending on their direction. Do you know the right settings for the tangent and up vector to make it either way?
Edited by freewind - May 13, 2024 16:01:43
=================
Intel core i7 6700K
64 GB DDR4 RAM
Nvidia GeForce RTX 3060
Intel core i7 6700K
64 GB DDR4 RAM
Nvidia GeForce RTX 3060
-
- Quick Links