0
$\begingroup$

I came up with a problem of flipping only one face of the texture horizontally on flags as shown below in the image. What I want to do is to make one (front) face of the flag stay as it is now, but I would like to flip the other (rear face) by 180 degrees. I tried playing with the scale factors in the mapping node, rotating that face etc. The problem is that I am aware of the potential solution to this problem by duplicating the face and flipping the normals, but it will just make my job a lot harder due to complexity of the model and a huge lag I am currently experiencing. I would have to repeat the process a lot of times too. Therefore I would like to do it via compositor. I made a composition as shown on the screenshot, but it doesn't work no matter how I make them and what factors I put in. Can anyone take a look at it please, and tell me if I am doing something wrong, or it just isn't possible to be achieved in this way.

enter image description here

Thank you very much in advance.

$\endgroup$
  • $\begingroup$ Try to change the coordinates to UV and unwrap the flag $\endgroup$ – Denis Dec 23 '16 at 20:05
  • $\begingroup$ Tried it now, the texture just rotates 90 degrees. No matter what I do next or what inputs I apply, nothing happens. But thanks alot for the tip. $\endgroup$ – Ivan Tahlin Dec 23 '16 at 20:14
  • 1
    $\begingroup$ you're using 'normal' as the vector input. you should be using 'uv' instead, otherwise what you do in the uv editor makes no difference $\endgroup$ – aliasguru Dec 23 '16 at 20:48
  • $\begingroup$ I tried, it doesn't make any difference... $\endgroup$ – Ivan Tahlin Dec 23 '16 at 21:02
2
$\begingroup$

Use UV coordinates instead of normal. Then unwrap the flag with u > unwrap. Then in the UV image editor, while still in edit mode, scale the UV map along the horizontal axis by -1: s > x > -1. Scaling by -1 should flip the image.

Update: Misunderstood the question. I modified your node setup. This should make an un-flipped image appear on the back of the face.

enter image description here

| improve this answer | |
$\endgroup$
  • $\begingroup$ Thanks for the tip, but it still doesn't give me the results I want. In this way it flips texture on both sides of the face, and I need it only in one side (so that it looks correctly from both ways you look). And even if it worked I would have had to repeat this process 24 times, and it isn't quite convenient, so I'm trying to do it just via compositor. But thanks for your help I appreciate it a lot. $\endgroup$ – Ivan Tahlin Dec 23 '16 at 21:31
  • $\begingroup$ Modified your node setup, but you beat me to it. Glad you got it figured out. $\endgroup$ – Lukas Valine Dec 23 '16 at 21:52
  • $\begingroup$ Hahaha thanks a lot for your effort and help. I honestly appreciate the time you took for it. I wish you all the best. Cheers $\endgroup$ – Ivan Tahlin Dec 23 '16 at 22:15
0
$\begingroup$

Okay, it seems like I found a solution to my problem. The issue was with the image itself because there was only one Image Texture within the object, and it couldn't be flipped just via Diffuse Node. I just had to copy the sourced Image Texture, and than put UV vectors to it and scale it via X axis to -1 as suggested, and only than put it trough Mix Shaders and Diffuse Nodes. Here is the solution in the compositor. Now the flag texture looks correct in both ways, and not flipped on only one side.

enter image description here

Thanks to everyone for the help and answers, I appreciate it.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.