Download

How to rotate output of Box Mask 3D Node?

I have a material with BoxMask-3D node setup like below to create a mask
3bf053fd30f2e40db719ecdec1b54ba52270fe36.jpeg

However, I cant figure out how to rotate the mask :confused:. This is what I want to achieve
691517d7ca53bae14decfb38c11d4553437ac7f5.jpeg

How do I go about creating the above effect?

Bump, did you find anything?

The trick here is to rotate the worldposition before plugging it in.

You want to rotate worldposition using the pivot or B input on the boxmask as the pivot point for your rotateaboutaxis node. normalized axis can simply be 0,0,1 to rotate around world Z.

Also remember that when using the “rotate about axis” node that it is intended for worldposition offset, so if you use it in a non-WPO case, you need to add the result back to the original “position” which would be worldposition in your case.

also keep in mind that rotation angle is 0-1 mapped to 0-360, so 0.25 corresponds to a 90 degree rotation. No idea why we went with that normalized value, bugs me every time :wink: good luck.

1 Like

Thanks for asking this. That’s what I wanted to achieve too, without succes.
And Ryan: thanks for the trick!

I had tried the rotateaboutaxis node before but I had gotten a weird result. Didn’t know that I had to add the result back to the original position :stuck_out_tongue:

Thanks alot! :smiley:

Final Working Setup