Directional painting of detailed terrain textures

I have seen various discussion related to this but none that I believe explicitly addresses the issue. I want to ‘paint’ textures on my terrain but with specific orientation and placement. For example, let’s say I want to put down a runway, or a road. If I build a runway or road texture, I have no control of how often it gets painted, or which direction it is applied, making it hard to place specific features on the terrain with detailed textures.

any suggestions on how to achieve this?

If you’re referring to the scale, you set that with the tile size x and y when adding/editing textures.

Correct, there’s no way to specify that. You would make roads by constructing them out of meshes; someone wrote a tool for automating this which you can probably find if you do a search.

–Eric

Making surface features as meshes is also problematic because there is no way to ‘lay’ them on the terrain without z-fighting. Is there a way to ensure this doesn’t happen, maybe some way to prioritize drawing order or something like that ?

Yes, using a shader with Offset -1, -1 pulls the material “forward” a bit, so z-fighting is avoided.

–Eric

Eric,

Just so I understand. You are saying to place a plane or other geometry and simply transform it by raising the ‘y’ axis, or is there a setting to offset the geometry in a shader? I quickly looked through the shaders and none of them appear to have a ‘z’ value?

Sorry for the simple question but this is a capability i am trying to get right.

Thanks.