Lock Material Orientation when rotating terrain?

As the topic says then i am looking for a way to lock the orientation/vector/direction of a terrain material so when i rotate the terrain it does not change.

Currently i am using the Brushify auto material (its using blends/slopes alot) but i cannot figure out a way to avoid it changing the sloping/texturing changing once i rotate the terrain.

I tried to contact the creator but he was not able to offer further support as its a rather particular use of his material.

Also tried on the forums but didnt get much traction there, only to try world aligned texturing and while it didnt work with the Brushify material it did help with the basic world building (which is now done) but now i am back at this issue.

Anyone got any suggestions on how to fix/correct this or a way to get it working?

Asking case the project i am working on is an o’neill cylinder (gravity works fine) and dont really want to use static meshes for it as it drains a lot of memory and loses the ability to easily manipulate terrain.

By auto material i mean that it automatically assigns “rock” and “grass” textures depending on sloping, removing the need to manually paint every terrain which is very time consuming.

Also, my knowledge of advanced material design is rather limited, better at modeling and such :wink:

By automaterial i mean the ability to assign it to the terrain and let it fill out how it looks based on sloping values. Using a “normal” landscape material may work but i have no idea how to do so and it would also require manual painting each terrain, removing the value of the automaterial functions.

Are you having this problem just because you are using an auto-material? I think a normal landscape mat would be ok, no?

Yes, that’s what I mean. So, it’s hardly surprising the material changes when you rotate it :slight_smile:

Blargh! Was late when i wrote that response… twice it seems… :stuck_out_tongue:

In any to your original response: Yes, i need a way to “lock” the direction so to speak but keep the auto material functions, if thats possible at all :stuck_out_tongue:

You could set it to do that, but you’d have to edit the shader from scratch! :slight_smile:

ok, unsure if moderation is still on but here goes what i tried to post a few days ago.

Could be hard to do as its a commercial product i bought so if you happen to know a tutorial on it it would be helpful :slight_smile:

Sorry, don’t think you’re EVER going to find a tuut on converting landscapes to work at 90 degress… :-/

Your best bet is to find the part of the shader that figures out what material to render based on slope, and fix it to match your requirements.

If you need a tuut on making an auto landscape ( that’s the right way up ), you could use:

BUT, I don't know if this guy is using the same method as you asset...

Cool thx for the help! i’ll give it a look once i get back from vacation :slight_smile:

Hiya! Just wanted to let you know that i found a solution to the texture issue and it is now resolved (via Ue4 forums and a ton of tut’s) Here is the result :slight_smile:

![alt+text][1]+++++[1]:+http://fableportal.net/UE4/C006.JPG

[1]:

![alt+text][1]+++++[1]:+http://fableportal.net/UE4/C006.JPG

+++++[1]:+http://fableportal.net/UE4/C006.JPG

Lets try the Img once more!

You could make a new auto material Let's make an MMO in UE4 - Part 4 (Landscape Material) - YouTube
Which basically blends two (or more textures) based on an “up” vector and the local normal
(this is done by taking the dot product of the two vectors which gives the sine of the angle between the two vectors multiplied the individual lengths)
Assuming for simplicity that the axis of your O’neil cylinder is the X axis then the up vector becomes the local landscape position with x set to 0 and then normalized (forced to length one)

286298-oniell.png