Align Image With Rotated Heightfield

Started by SILENCER, June 09, 2021, 10:38:33 AM

Previous topic - Next topic

SILENCER

Behold.

Image 01 
Gaea Import, all maps at 0 rotation



Image 02
Snow layer removed to get a better look at the SatMap, all still aligned



Image 03
Heightfield rotated -45, image rotated -45


My thought was that a simple transform node would shift the image to align with the heightfield, but that looks like a negatory.

It's most boss to be able to rotate heightfields, but is there a way, without the hassle of camera projection, to make this work?

Inquiring minds want to know.

WAS

I don't actually understand the issue. Image and heightfields are aligned, then you deliberately rotate them, and it's messed up?

SILENCER

Then you DO understand the issue.

My next test is to see if this only applies to heightfields.


WAS

You can't really rotate displacement without issues from what I remember, it needs to be converted to a scalar, and then the scalar rotated on Y.

Kevin Kipper

Here's an example of a heightfield and its texture map at the default coordinates, and then offset and rotated 45 degrees to show that they still align properly.  The displacement is controlled via the Heightfield node's position and rotation settings and the texture's position and rotation is modified via the Transform input shader.

SILENCER

I can't believe I had the rotation on the wrong axis in the TRANSFORM node.


DUH


Thanks, Kev