UV Tangent, Pos etc
UV Tangent
uv tangent can be used for some force for POP or DOP
Set uv
- the basic case of starting from primitive, add UVTexture and set Texture Type Rows & Columns(object type should be Mesh or NURBS)
convert the object to Polygon by Convert unless it is polygon.
Add PolyFrame
- set Style = Texture Coordinate
- check Bitangent Name to set tangentv also.
- This Node creates tangentu and tangentv attribute at vertex level.
Add AttribPromote to convert the uvtangent to Points
- just set tangentu and tangentv and convert them from Vertex to Point as Average as you know!
Getting Closest UV position
you need at least 3 attribute
U parameter from prim pointdist( opinputpath(".",0) , $PT , "../null1" , -1 , 1 )
V parameter from prim pointdist( opinputpath(".",0) , $PT , "../null1" , -1 , 2 )
Primitive Number pointdist( opinputpath(".",0) , $PT , "../null1" , -1 , 3 )
add Primitive Attribute inside VOP to get Position(able to get other attr) info
- And then, connect attributes you make to Prim, u, v.
- Geometry might be op:`opinputpath("..",1) as usual.
- set Attribute("P" if you want position data) you want which will be output.