Help! strange problem about D3DXEffect
hi all:
I got a very strange problem about D3DXEffect. when I set the TEXTUREFACTOR in an effect file. some color value doesnt work. But in D3DEffectEditor(sdk example), it works fine.
for example:
0xffffff00 // worked
0xffffffff // didnt work, the factor seem to be black color, when rendered!!
what could be wrong?
my effect file:
"
texture PrimaryTex < string name = "test.jpg"; >;
texture SecondaryTex < string name = "test1.jpg"; >;
int BCLR = 0xff202080; // Background color (if no image)
DWORD Factor = 0xff0110ff;
technique tec0
{
pass p0
{
LightEnable[0] = True;
Lighting = True;
SpecularEnable = True;
TextureFactor = ;
Texture[0] = ;
ColorOp[0] = Modulate;
ColorArg1[0] = Diffuse;
ColorArg2[0] = TFactor;
AlphaOp[0] = Modulate;
AlphaArg1[0] = Texture;
AlphaArg2[0] = Diffuse;
ColorOp[1] = Disable;
AlphaOp[1] = Disable;
}
}
"
[edited by - lythm on July 27, 2003 12:10:48 AM]
[edited by - lythm on July 27, 2003 12:12:18 AM]
[edited by - lythm on July 30, 2003 8:10:31 AM]
- Use "ampersand lt semicolon"
and "ampersand rt semicolon"
- Try it with the reference rasterizer, if it doesn''t come out black, it''s a driver bug.
If it comes out black, it''s an application bug.
Peace,
Muhammad Haggag
and "ampersand rt semicolon"
- Try it with the reference rasterizer, if it doesn''t come out black, it''s a driver bug.
If it comes out black, it''s an application bug.
Peace,
Muhammad Haggag
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement