Planetside Software Forums

General => Terragen Discussion => Topic started by: SILENCER on June 09, 2021, 10:38:33 AM

Title: Align Image With Rotated Heightfield
Post by: SILENCER on June 09, 2021, 10:38:33 AM
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.
Title: Re: Align Image With Rotated Heightfield
Post by: WAS on June 09, 2021, 11:50:27 AM
I don't actually understand the issue. Image and heightfields are aligned, then you deliberately rotate them, and it's messed up?
Title: Re: Align Image With Rotated Heightfield
Post by: SILENCER on June 09, 2021, 12:04:06 PM
Then you DO understand the issue.

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

Title: Re: Align Image With Rotated Heightfield
Post by: WAS on June 09, 2021, 04:12:12 PM
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.
Title: Re: Align Image With Rotated Heightfield
Post by: Kevin Kipper on June 11, 2021, 02:55:05 PM
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.
Title: Re: Align Image With Rotated Heightfield
Post by: SILENCER on June 20, 2021, 10:05:48 AM
I can't believe I had the rotation on the wrong axis in the TRANSFORM node.


DUH


Thanks, Kev