x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Flipping scaled texture

Using binary release of 4.8 on Windows 7 x64

I'm having a lot of trouble flipping a scaled-down texture in a material. I've attached an example graph using two texture sample nodes referencing the same notebook paper image that should, in theory, be mirror images of each other. But, you can't see the red line in the flipped version. Perhaps I'm misunderstanding texture UVs, but -1 U generally flips a texture horizontally. However, -0.5, for example, does not correctly flip a 0.5-scaled texture. Any suggestions?

Example graph: Node graph screenshot

Product Version: UE 4.8
Tags:
flipuvs.jpg (79.3 kB)
more ▼

asked Aug 07 '15 at 04:17 AM in Using UE4

avatar image

OhiraKyou
306 21 43 54

avatar image 3ddesignbureau Feb 21 '17 at 11:26 AM

What did you type ot get those yellow boxes up? What is their name?

I have a texture but it is flipped so the text [on the texture] is mirrored - i want to flip it so it reads the correct way! Any idea?

avatar image OhiraKyou Feb 21 '17 at 03:19 PM

That's just a Constant2Vector. Read the basic material node documentation.

As for how I solved this, I just made my material two-sided in its properties. The back side is automatically reversed on a one-sided plane like the one I used for my paper.

To prevent the overlay (representing a drawing on the paper) from appearing on the back side, I used the rounded dot product of the pixel normal and object orientation as the input of an if. Based on that input, the condition either outputs the paper texture sample or the paper texture interpolated (using Lerp) with the overlay, using the overlay's alpha channel as the interpolation's alpha value.

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

0 answers: sort voted first
Be the first one to answer this question
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