Archived

This topic is now archived and is closed to further replies.

lythm

Help! strange problem about D3DXEffect

Recommended Posts

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]

Share this post


Link to post
Share on other sites