Page 1 of 1

Rotate transform according to black and white map

Posted: Tue Dec 07, 2021 1:20 pm
by everdrone
Hi,

I'm trying to rotate a sine wave procedural texture according to a black and white map, where black = 0° and white = 360°.

Image

Is there a way of doing this in octane (blender) without resorting to OSL?
And if OSL is the only way, how can it be achieved? Is there a related script I can start from?

Thank you

Re: Rotate transform according to black and white map

Posted: Tue Dec 07, 2021 2:40 pm
by jobigoud
You can use a Distorted mesh UV projection on the image node (image or procedural texture).
Load the rotation map in the Rotation pin and set the Rotation range to 0..360.
rotationprojection.png
rotationmap.orbx
(59.19 KiB) Downloaded 114 times
Not too sure about the circle outline, I think it's coming from the color interpolation at the boundary.

I'm not getting exactly the same result as you, since I snapshotted your rotation map it already has a gamma applied to it that will give a different result than if it's passed as non color data.