QISHU ZHU
shajiwandtc
About Me
Connect
LOCATION
Not Specified
ウェブサイト
Houdini Skills
Availability
Not Specified
Recent Forum Posts
transform matrix VEX question 2020年3月20日23:00
Aizatulin
Yes in your second example you are accumulating over the dir.
To avoid confusion, imho it is better to use “tangent” for the tangents of the curve and N for the normals. Sometimes the polyframe gives strange results for straight lines, but you will find some examples with ptf (parallel transport frames), which gives you stable frames for curves.
According to my first file, here is another modification, where you can perform a bend just using the first ramp (or second aswell for torsion). After this you can apply the node again to use just the second ramp to rotate the normals.
That's exactly what I want to do!!!
Tanks for help!!
cheers!
transform matrix VEX question 2020年3月19日22:46
Aizatulin
Hi,
you can define rotation matrices for each point of the curve.
You can rotate the normal around the tangent and rotate the tangent around the new normal for example.
The amount of these rotation angles can be set independently for each point.
Using a ramp is an option.
Here is a modification of your example.
Thanks!
the ramp idea is brilliant!
but I don't want to get the tangent rotated, just the normals.
I mean it worked well when the input is a straight line with no tangent space.
like this:
transform matrix VEX question 2020年3月19日21:15
BabaJ
If you look at your normals that are being used for direction you can see the final result is as should be - meaning your code is good.
However, your ‘input’ information, in this case the Normals need to be changed.
In your ‘reverse_N’ wrangle if you remove what you have and put in the following you will get the desired output:@N = point(geoself(), "P", @ptnum + 1) - @P;
if(@ptnum == (npoints(geoself()) - 1)) @N = @P - point(geoself(), "P", @ptnum - 1);
@N = normalize(@N);
That works!Thank you so much!!
but I have another problem here.
The curve is just rotating which is respect to the root point rotation. It's not actually unfolding.
I did reset the pivot point at the end of the for loop, but I can not find any rotation of other points.
Did I miss something?