Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick question about alpha (Material editor)
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#1
Quick question about alpha (Material editor)

Hey, so yeah there's this alpha checkbox on the texture units. I haven't used it before, but I though it would be self-explanatory; adding a separate alpha texture to display transparency. Is this not so?

[Image: 1WcoagM.png]

I have this texture and I want the upper right corner to be translucent. This is a texture for a model I have, and I want a certain component of that model to be see-through. Am I doing something wrong? The original texture file itself already has this alpha channel baked into it, but that nor the alpha unit seemed to work. Having the blend mode set to alpha did not either. Any ideas? Tongue

05-25-2014, 02:21 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Quick question about alpha (Material editor)

IIRC, you make the area you want to be transparent either black or white (one of the two, think it is white) and leave the other parts colored in with your image. Something along those lines.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
05-25-2014, 02:37 AM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#3
RE: Quick question about alpha (Material editor)

It doesn't look too dark to be invisible, for materials, alpha must be full black or full white. (No idea why)
But you can still change the material type to translucent and get a similar effect.

[Image: asdasdsf.jpg]

(This post was last modified: 05-25-2014, 02:54 AM by Daemian.)
05-25-2014, 02:53 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Quick question about alpha (Material editor)

(05-25-2014, 02:37 AM)Romulator Wrote: IIRC, you make the area you want to be transparent either black or white (one of the two, think it is white) and leave the other parts colored in with your image. Something along those lines.

Well, when it comes to alpha, white = opaque and black = transparent. Any greyvalue in between would be translucent at the strength of the value. Using only white/black only allows for either full texture or no texture, but I want a slightly see-through texture (because it is considered a glass lens). Putting the general type to translucent instead of soliddiffuse makes the whole object translucent, though it does make the alpha area more than the rest, but I can't have the rest use it at all.

So I guess the problem is that I want semi-transparency instead of something that cuts out a whole part of the image.

(This post was last modified: 05-25-2014, 03:02 AM by Mudbill.)
05-25-2014, 02:59 AM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#5
RE: Quick question about alpha (Material editor)

Look how dark alpha looks in this texture.

05-25-2014, 03:02 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#6
RE: Quick question about alpha (Material editor)

Yeah, I can try making it 100% black, but wouldn't that make it invisible?

05-25-2014, 03:07 AM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#7
RE: Quick question about alpha (Material editor)

Emmm yeah I think so. Black invisible, white visible.
The only way to get semi-transparency, that I know, is to set the whole material type to translucent.
Remember that Amnesia display table? I think it uses two materials, 1 for wood, 1 for glass, because of this problem.

edit: display.ent

(This post was last modified: 05-25-2014, 06:54 AM by Daemian.)
05-25-2014, 06:52 AM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#8
RE: Quick question about alpha (Material editor)

HPL does not support semi-transparency, you'll need a seperate material with the mode set to additive of multiply to get a transparent effect.
(This post was last modified: 05-25-2014, 01:45 PM by Traggey.)
05-25-2014, 01:45 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#9
RE: Quick question about alpha (Material editor)

I see. Well, that change should be simple for me to do. Thank you for letting me know.

05-25-2014, 02:46 PM
Find




Users browsing this thread: 2 Guest(s)