Hello, dear community,
it’s about Unreal 5.4
I have a texture in 8K, which is drawn in the landscape material with TexCoord and CustomRotator to the size of the entire landscape. However, it is not displayed as a landscape layer. In the texture, areas are drawn in black, red, green and blue. These are fields. The colours are selected and assigned to plants (red = wheat). Red is plant 1, green is plant 2 and blue is plant 3.
This is passed to Landscape Grass Output.
Now I would like to use the whole thing in Procedural Content Generator. How do I get the texture with the desired landscape size and rotation into PCG Graph and how can I extract the colours to assign the plants to them? I have already found GetTextureData → Sample Texture. But how do I define the size / rotation and extract the RGB channels from the texture? I don’t even know what terms to search in Internet.
Thank you very much for your help.