-heavy-

is there a way to change the tangent of a point ?

i have the tangent hooked up via pointAttributeToArray to a field direction
but i cant change the direction ...

 

i got it working for the normals via attribute transfer but not for the tangents..

do i miss something ?

Reply 0 0
noizfactory
For the tangents you could do the same thing that you did for normals. Pipe in the outTangentPP as inNormalPP and then use attributeTransfer.
Reply 0 0
-heavy-
thx and seeems goood . but it looks more like a random fashioned reorientation..?!

i have a cylindrical shape and the tangents go around the surface but i would like to
have it 90degree rotated so maybe the same like swaping the u and V on a nurbs surface..
Reply 0 0
noizfactory
I think there is a tornado example in the scene files that demonstrates this setup. Seems like you need the binormals? You could also use the array blend node to "comb" between the normals/binormals/tangents.
Reply 0 0
pshipkov
also you can pipe the tangent or binormal PP data into attributeTransfer and modify it using bounding objects or geometry.
Reply 0 0
-heavy-
yeah the tornado examples was my starting point and instead of having the tangents around i would like to have it going upwards with the possibility to have it around also.

so how do i mix tangents and normals and to peter how do i pipe the tangents back in the attribute transfer ?
at the moment attribute transfer and bounding object is right at the start of my chain... ?!?
Reply 0 0
noizfactory
Quote:
so how do i mix tangents and normals


Like I sai din my previous post, use the array blend node and pipe in the outNormalPP and outTangentPP to the two input arrays. Set the mode to blend. The blend value will determine the amount that is mixed in from input 1 to input 2. You can then take the outArray from this node and pipe it into whatever the next node is in your network.
Reply 0 0
-heavy-
ohh sory i overlooked that ;)
Reply 0 0
pshipkov
Noiz already gave you one of the answers - for global control or the directionality this is the cheapest for solution from computation time stand point, here is the other one that involves attributeTransfer for local control of the vectors over different areas of the mesh:

currently you have this:
mesh -> pointAttributeToArray.outTangetPP -> pointCloudField

what you need is this:
mesh -> pointAttributToArary.outPositionPP -> attribTransfer.inGeometry
             pointAttributToArary.outTangentPP -> attribTransfer.inNormalPP
             attribTransfer.outNormalPP -> pointCloudField

now add bounding objects to the attribute transfer node and tweak the "normal" settings in their AE.
Reply 0 0
-heavy-
Cool many thanx =]
Reply 0 0
Reply