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"

Opacity mask problem

Help the poor fellow. How do I properly configure the material of the torn tissue, as the problem I have is the following. When you connect the alpha to opacity with blend mode Masked it cuts the edges. If you do, connecting blend mode translucent edges begin to appear correctly, but the frieze of the fabric itself. Below screenshots

alt text

Product Version: UE 4.15
Tags:
b0cqvjnvxo0.jpg (218.8 kB)
zlgyego8rjo.jpg (200.8 kB)
more ▼

asked Apr 19 '17 at 05:14 PM in Rendering

Lom1979 gravatar image

Lom1979
1 1 2

navid100 gravatar image navid100 Apr 21 '17 at 09:51 AM

Could you take a screenshot of your material graph?

Lom1979 gravatar image Lom1979 Apr 21 '17 at 11:42 AM

Yes, of course. alt text

Dear Navid100. I read in the documentation that when processing through the translucent material doesn't cast a shadow, therefore this method is applicable only for the glass, the question remains as to smooth out the opacity mask so that it correctly reproduce gray tones.

1.png (418.3 kB)
2.png (465.6 kB)
(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Dear Lom 1979

I think the problem you have, actually is because the opacity texture of your material has plenty of dark parts at the edges. All you need to do is to increase the color intensity for the edges (make them more white). Here I have reproduced a very simple material that I hope can help you.

As you can see, like you I have a torn cloth with dark colors at the edges which cause the loss of material in those areas. The first multiply node only shows the base red channel texture (which is used as opacity mask), the second multiply is set to significantly increase the color intensity to white (in order to fix the material loss at the edges), by doing so, some holes on your texture will also become more white which may cause them to lose their transparency. To fix that I have subtracted a small number which makes those areas black again (in order to keep them transparent). You can repeat the process of multiplying and subtracting for several times to get a better result. The next multiply actually is used to refine the result and reduce the transparency of the cloth itself. At the end you can use a power node (if you want), which makes dark areas darker (it actually makes tiny holes in your material to show up more clear).

Note that the numbers that I used may not exactly bring the result you want to achieve, so play with the numbers to get the best result for your specific material. One more thing to keep in mind is that Opacity, determines translucency while opacity mask determines transparency. For opacity mask, engine reads white color areas as opaque and the whole range from pure black to white as fully transparent. For opacity, engine reads all the values from 0 to 1 as translucent (0, fully transparent. 1, fully opaque and the whole range between, as translucent)

alt text alt text

But to get the best result, you need to modify your masks inside Photoshop or something.

Regards,

capture2.png (658.6 kB)
capture.png (290.3 kB)
more ▼

answered Apr 22 '17 at 10:25 AM

navid100 gravatar image

navid100
591 22 4 32

Lom1979 gravatar image Lom1979 Apr 22 '17 at 10:48 AM

Dear Navid100. Thank you so much for your help. I will achieve such a result, as you showed me. The result of his work I'm sure you will show.

Lom1979 gravatar image Lom1979 Apr 22 '17 at 01:51 PM

Thank you very much navid100 for your participation and assistance. made fabric your method. It's beautiful. that's the kind of result has been achieved. He's not perfect, but it's because of incorrect alpha I made in photoshop, but in any case, the result suits me. Most importantly, I understand the principle. Again thank you so much. With respect Alex. alt text

1.png (1.7 MB)
navid100 gravatar image navid100 Apr 22 '17 at 02:53 PM

Your welcome Alex. I would really appreciate it if you Up Vote the answer. And your material looks great. keep up good work ;D

Lom1979 gravatar image Lom1979 Apr 22 '17 at 03:25 PM

Dear navid100. I will gladly vote for your answer. But something I do not understand where to click, because the site I'm a new man. I will be very grateful if you send me a screenshot with the option for voting on the page.

navid100 gravatar image navid100 Apr 22 '17 at 03:30 PM

You just did it. Thanks.

capture3.png (12.2 kB)
Lom1979 gravatar image Lom1979 Apr 22 '17 at 03:50 PM

Very glad that something helped. Thanks again.

Arty-McLabin gravatar image Arty-McLabin Apr 22 '17 at 04:31 PM

please mark the question as solved.

Lom1979 gravatar image Lom1979 Apr 22 '17 at 05:08 PM

Dear Arty-McLabin. Tell me how can I do it. I'm not quite versed yet in the site options.

(comments are locked)
10|2000 characters needed characters left
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