Transparency/Translucent issues...
by Sebastian H · in Torque Game Engine Advanced · 09/16/2009 (7:07 am) · 2 replies
Hi.
I've been having a problem using glass textures on .dif's (Interiors)
Setting a material like this
will result in the desired effect, but will not render sky or other interior textures.
Any ideas? or is it simply me, and my mat def. thats totally wrong?
thx in advance
Sebastian.
I've been having a problem using glass textures on .dif's (Interiors)
Setting a material like this
new Material(glass3mat)
{
mapTo = "glass03";
baseTex[0] = "glass03";
translucent = true;
translucentBlendOp = LerpAlpha;
translucentZWrite = false;
};will result in the desired effect, but will not render sky or other interior textures.
Any ideas? or is it simply me, and my mat def. thats totally wrong?
thx in advance
Sebastian.
#2
new Material(glass)
{
mapTo = glass;
baseTex[0] = "glass";
pixelSpecular[0] = true;
specular[0] = "0.3 0.3 0.3 1.0";
specularPower[0] = 12.0;
translucent = true;
};
09/16/2009 (6:07 pm)
this is the material def i use for a glass texture on one of my models, it works great:new Material(glass)
{
mapTo = glass;
baseTex[0] = "glass";
pixelSpecular[0] = true;
specular[0] = "0.3 0.3 0.3 1.0";
specularPower[0] = 12.0;
translucent = true;
};
Torque Owner Sebastian H