thoma.v Posted January 16, 2017 Share Posted January 16, 2017 Hi folks! In VEX I can import the axis-aligned bounding box of a single polygon face with primintrinic(). Is there anything I can do to get the oriented bounding box too? The reason for this is that I'd like to project UVs onto the face according to the bounding box orientation. The long side should be U and the short V. Any ideas? ps: FOREACH does not work for me. It's simple to slow! Quote Link to comment Share on other sites More sharing options...
davpe Posted January 17, 2017 Share Posted January 17, 2017 hi, why don't you just use UV Unwrap SOP? it has two inputs, if you feed an oriented bounding box (bound SOP) in the second one it will act as an oriented box projection. Quote Link to comment Share on other sites More sharing options...
thoma.v Posted January 17, 2017 Author Share Posted January 17, 2017 Hey David, thanks but unfortunately this won't work. I need to assign the UVs to a large mesh, for every frame and hence I'd like to avoid the FOREACH SOP. Is there anything else I could try? Quote Link to comment Share on other sites More sharing options...
davpe Posted January 17, 2017 Share Posted January 17, 2017 sure there is a way in VEX but I have never explored that route. Quote Link to comment Share on other sites More sharing options...
petz Posted January 17, 2017 Share Posted January 17, 2017 take a look at the attached file. its using vex to compute the oriented bounding box around prims. hth. petz obb.hipnc 6 Quote Link to comment Share on other sites More sharing options...
thoma.v Posted January 18, 2017 Author Share Posted January 18, 2017 Fantastic file! Thanks Petz! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.