Graeme Posted February 28, 2017 Share Posted February 28, 2017 (edited) Hi guys, I have a little test I've been working on to learn more about matrices and rotations using vex wrangles (and avoiding the copy sop). I've attached a file that shows where I am at, I have an object being translated by an input P and it's rotation is is being controlled by a rotation matrix calculated using the dihedral function working on @N and @v. It all seems to work almost properly. What I am wondering is how I could use an up vector within the wrangle to stabilize the rotations, just like you can achieve using the copy sop, but keeping it all in vex. Also any tips on how to do this all better, optimisations, etc. would be ace! cheers G the file is H16 MatrixRotations.hipnc Edited February 28, 2017 by Graeme Quote Link to comment Share on other sites More sharing options...
moneitor Posted May 24, 2017 Share Posted May 24, 2017 If you want to specify an Up vector, I think you will have to use a looAt function instead of the dihedral, that way you can specify each axis of the rotation matrix. Quote Link to comment Share on other sites More sharing options...
shake123 Posted March 23, 2018 Share Posted March 23, 2018 Cool example file. You only had to set axis to {0,0,1} rather than reference it from opinput1. Quote Link to comment Share on other sites More sharing options...
toadstorm Posted March 23, 2018 Share Posted March 23, 2018 If you haven't already watched Entagma's video on parallel transport, it's worth watching. The technique allows you to generate a stable reference frame along a curve, without the flipping you'd often get from a static up vector. http://www.entagma.com/td-fundamentals-parallel-transport/ 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.