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"

How do I make part of a material transparent?

Hello, I searched quite a while but didn't find anything about how to make a certain color of a material transparent, I tried to understand with th M_HUD_Health_Bar material from the HUD example content but I can't find out how to make just a color of the material transparent ; alt text

I would like to make the white color invisible but I can't figure it out. If you know how to do this please explain it or point me to useful tutorials maybe ? Thank you for your help

Product Version: Not Selected
Tags:
material.png (35.5 kB)
more ▼

asked Apr 24 '14 at 02:03 PM in Everything Else

avatar image

Eresea
49 15 21 29

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I've figured it out, I made another texture from the one I wanted to take the white away and turned the white into black, made the rest all white, imported it into the material editor and mutiplied my default mask with the Green part of the texture I just made and plugged it up to the opacity (Blend Mode : Translucent and Lighting Mode : Unlit)

more ▼

answered Apr 24 '14 at 04:06 PM

avatar image

Eresea
49 15 21 29

(comments are locked)
10|2000 characters needed characters left

White is very hard to mask, you should use some single color channel or just use texture with alpha. You could use math to detect when all channels are 1 or closer and set alpha on those points

more ▼

answered Apr 24 '14 at 02:10 PM

avatar image

Shadowriver
34.6k 917 164 1095

avatar image Eresea Apr 24 '14 at 02:46 PM

The thing is that I am a programmer so I don't understand how this works exactly, could you explain how you would do it inside the material editor please ? Sorry about my lack of knowledge and thank you for replying so quickly

(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