Ok, i used UE back in the Unreal Tournament days, so yes i am old. I was thinking about starting a project. I have some open world game in mind. i made a heightmap and a rough colormap for reference. My goal was importing the heightmap (that worked) and use the colormap on the landscape just for reference and paint it over later. I imported the colormap (same aspect but different resolution) as a material but get it to fit on the landscape is a pain. i think the biggest problems are booth are not square (i wanted the island wider), so the to maps are more wide than tall. but the colormap i imported acts like a square. If someone has a quick and dirty solution that would be great. as i wrote, i want the colormap just as a reference texture, so i see where i am (in game) and plan where to put villages and stuff.
Any rough, “import it that way/ use this to 99% align the color map” would be enough.
Cheers dudes and gals, any help would be appreciated.
As a fellow old person who played Unreal Tournament on release, I welcome you back to the community. A lot has changed since then. And I think your setup can be solved by using landscape coords. It’s a node that, when added to your material, should allow it to match your heightmap’s width and height separately, so the texture covers your whole island once, regardless of the colormap’s resolution. Let’s cover it step by step:
First, add the LandscapeLayerCoords node, and leave its Mapping Scale at 1. This gives you coordinates measured in landscape quads
Next, add a Constant2Vector node, and set R to your heightmap’s width minus 1, and G to its height minus 1.
Then, add a Divide node, with the Landscape Coords in A, and the Constant2Vector in B. Plug the result into the UVs of your colormap’s Texture Sample, and connect its RGB to Base Color
Finally, open the colormap texture, and set both X and Y methods to Clamp, so the edges don’t bleed from the opposite side
Save, and apply the material to your landscape. The colormap should now line up with the terrain. If it shows up mirrored vertically, plug a OneMinus on the G channel of the divided UVs, or just flip the image in Photoshop.
For further details on landscape materials, please check the related UE doc: