HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Transparency?

01-22-2006, 03:31 PM#1
Nasrudin
I'm trying to figure out how to get a proper transparent effect, for glass, leaves, etc. This is what I usually use:

Materials 1 {
Material {
Layer {
FilterMode Blend,
static TextureID 0,
static Alpha 0.5,
}
}
}

The problem is, the rendering priority of the faces is wrong. In other words, depending on the angle of view, the rear of the geoset is more visible than the front. Am I doing something wrong, or it is a feature not completely supported by the engine?
01-22-2006, 04:58 PM#2
Rao Dao Zao
That's blend mode's fault; only works on layered materials, and even then you've got to get it perfect to do it right. You'll be wanting Transparent, Additive or Modulate.
01-23-2006, 12:35 AM#3
Whitehorn
Try Modulate.
01-23-2006, 07:50 AM#4
Cookie
Modulate bad, use transparent and a damn good texture
01-23-2006, 11:05 AM#5
Whitehorn
Modulate is good!

01-23-2006, 03:09 PM#6
Rao Dao Zao
Nothing at all wrong with it in my experience.
01-23-2006, 04:13 PM#7
Nasrudin
How is Modulate supposed to work?
01-23-2006, 04:17 PM#8
Rao Dao Zao
Dunno. I'd have said it was Warcraft's answer to Subtractive, but I'm certain it's not. It makes stuff dark, whenever I've used it.
01-23-2006, 04:24 PM#9
Nasrudin
So you say blend only works with two layers? What if one was completely invisible then?
01-23-2006, 05:47 PM#10
Rao Dao Zao
I think it'll work. I'm sure I messed with something like this while working on my Tower; had several different heads to fade between, but had to be on Blend mode to get it working. I think an invisible layer might work.
01-23-2006, 11:59 PM#11
BlinkBoy
nah blend works with as many layers as you wish, try checking wc3 art tools, but for what u trying, i suggest using Additive/Modulate for glass effects and for semi transparent use transparent.
01-24-2006, 12:10 AM#12
Magos
Modulate multiplies the colors with each others. Modulating with a completely white texture (1,1,1) gives the exact same texture back, modulating with a completely black texture (0,0,0) gives co,mpletely black back. This mode can be used to create shadows, as is heavily used in the Undead TFT Campaign Screen.