element33
element33
About Me
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Subdivide a grid into random rectangles Jan. 16, 2024, 1:57 p.m.
Thank you both!
Subdivide a grid into random rectangles Jan. 16, 2024, 1:32 p.m.
Somebody must have solved it in Houdini before. I want to subdivide a grid into random rectangles (pic 1 below). It's not really a "packing" problem as I don't need to use rectangles with specific dimensions. I generated random-sized grids and used UV Layout (pic 2 below). It works, but bigger rectangles are near each other. I'd prefer a more random look.
Euler angles from two sets of N and up Dec. 14, 2023, 1:05 a.m.
kodra
4@xform = invert(m1) * m2;
vector4 orient = quaternion(set(4@xform));
I still can't get it right. Based on my original and your first snippet, I'm trying to get
the 3 Euler angles, but they don't look right. I tried other X, Y, Z combinations, but none works.
4@xform=invert(m1)*m2; vector4 orient=quaternion(set(4@xform)); vector rad=quaterniontoeuler(orient,0); v@rot=degrees(rad);