Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Can't find a node for rotating world aligned texture


I am working on a material function for a tiled floor/ceiling texture, which I intend to use as a master material to create instances from. All floors and ceilings in my project are 64x64, and as such it should not be too hard.

The problem I have is that upon applying it to a floor in my project I found that rotated by 180 degrees. Theoretically this shouldn't be to hard to solve... had it not been using a WorldAlignedTexture node. If I had a TextureSample node, I should have been able to flip/rotate the UV there.

This is where it starts getting ugly. The WorldAlignedTexture node only accepts a Textured2D input, so I can't plug a TextureSample into it. The TextureObject node which I have to use only has an output, so I can't flip the UV at that point. Next, the texture output from the WorldAlignedTexture node apparently outputs a float value. I can't plug that in to the Tex input on a TextureSample node in a material function, hence I can't flip the UVs there. I've gotten the impression that the CustomRotator node would be a good choice for flipping/rotating my UV, but again, that actually requires a TextureSample node to plug in to since the inputs/output of CustomRotator are UVs only (as opposed to entire Texture objects).

Whilst I could theoretically rotate the texture in a graphics editing application (in my case, GIMP), I'm trying to avoid editing the source textures at all. How would I go about rotating the texture in my WorldAlignedMaterial?

Current Material Function



or the keen-eyed of you, I am using a very mildly modified version of the WorldAlignedMaterial (which I've placed within my project content and named MF_WorldAlignedMaterial). The only modification I've made is following RyanB's answer from this thread (https://answers.unrealengine.com/questions/214950/nearest-texture-filtering-not-compatible-with-the.html) as my texture is supposed to be pixellated like it's 1994 all over again. :p

Also, the texture I've plugged into the Preview input of the Texture2D input node is a temporary one (and not the one I intend to use it on) to make it easier to see that I have gotten it rotated correctly.

Product Version: UE 4.8
more ▼

asked Aug 13 '15 at 06:27 PM in Rendering

avatar image

20 6 4 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

If you set it up yourself it is easy to add. Because the rotator node just works for me:

alt text

materialexample.jpg (764.1 kB)
more ▼

answered Sep 03 '15 at 01:48 PM

avatar image

2.4k 69 42 141

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question