I’m a little confused by the rotate to order instancing option and not sure if it’s working as it should.
See https://drive.google.com/file/d/1Ku4X8qbiexHa2v3y_f7RaG_xKnyBjmjz/view?usp=sharing and
It seems “Post-Rot” only affects the scaling, making it happen before “the rotate to vector”, but then the rotate itself doesn’t have any effect, and “Pre-Rot” seems to be doing the opposite of the name, the rotate happens before the “rotate to Vector”.
And default is scaling happening after rotate to (not super usable in general I think though I saw there were consistency/historic reasons)
Here’s the toe file with some custom phongs which show what I’d love to see :
Post-Rot : lookAtMat(iLookAt, uUp)*rotMat(iRot);
Pre-Rot : rotMat(iRot)*lookAtMat(iLookAt, uUp);
With the scale happening before the rotation in all case.
If everything is working as intended, would love to see a more detailed explanation on the wiki!
" Rotate to Vector Order
instancerottoorder - ⊞ - Controls where in the transform equation the Rotate To Vector operation is applied."
With equation much like @Malcolm did here : Rotation to Vector happens before scaling. (instancing)
Also found my old post, I guess I’m consistent
DEFFERED - 23400 - geo instances - transform bug
instancesRotateToPrePost.toe (7.3 KB)