Hi all,
Can we get the UV/texture distortion data that is present in Houdini?
I haven't found any way to pull this data out of Houdini and or what logic is used to get to it.
So in the visualize node, I can check texture distortion and some settings and that communicates to the visualizers, but I want to capture that data to an attribute.
Thanks for any help or pointers!
-Johan
UV/Texture Distortion
3332 4 1- Johan Boekhoven
- Member
- 73 posts
- Joined:
- Offline
- adrianl
- Member
- 9 posts
- Joined: 4月 2016
- Offline
- Aizatulin
- Member
- 495 posts
- Joined: 7月 2005
- Offline
Hi,
this is an interesting question. I've looked for some resources but haven't found clear definition. So from my personal view: The distortion should give you a measure, how much the uv differs from a square (locally). One idea can be taking the gradients of the u and v direction (Du, Dv), which should be orthogonal with the same length (in non distorted case). It should be invariant under rotation and probably invariant under uniform scale. Taking the determinant of the matrix (Du, Dv, cross(Du, Dv)) should give you a measure. The length of Du, Dv can be optionally normalized or divided by the maximum length of each. If you divide by the maximum length, the non distorted case equals to determinant=1 and in every other case the determinant is smaller 1 (>0).
This is just an idea and there might be many other approaches out there but here is an example.
this is an interesting question. I've looked for some resources but haven't found clear definition. So from my personal view: The distortion should give you a measure, how much the uv differs from a square (locally). One idea can be taking the gradients of the u and v direction (Du, Dv), which should be orthogonal with the same length (in non distorted case). It should be invariant under rotation and probably invariant under uniform scale. Taking the determinant of the matrix (Du, Dv, cross(Du, Dv)) should give you a measure. The length of Du, Dv can be optionally normalized or divided by the maximum length of each. If you divide by the maximum length, the non distorted case equals to determinant=1 and in every other case the determinant is smaller 1 (>0).
This is just an idea and there might be many other approaches out there but here is an example.
- adrianlazar
- Member
- 102 posts
- Joined: 5月 2006
- Offline
- Aizatulin
- Member
- 495 posts
- Joined: 7月 2005
- Offline
-
- Quick Links