Problems: ColorWriteEnable in DirectX
Posted 05 March 2006 - 08:48 AM
I have. And setting this renderstate to something different than the standard 0x0f mask doesn't seem to have any effect, i.e. all the four channels are overwritten regardless of the writemask.
To use this renderstate, one must of course check the Caps to see if the gfxcard supports masking and mine is supposed to do that.
So, I was wondering if anyone had tried this and succeeded/failed in their attempt. Is there some trick to make it work or may there be some bug in my driver?
I'm rendering with a radeon9800pro.
Posted 05 March 2006 - 11:25 AM
The documentation is quite clear on this point, so I suspect a driver bug. I encountered trouble with this renderstate a year ago. Then I did some testing and found that I could use the mask so I could write to the R, G and B respectively but the Alphaonly option failed. I have updated my drivers since then, and was suprised to find out that now I could not get any write mask to work.. sigh.
Unless nobody has the same experience! Then surely I must examine my code again ;)
Posted 05 March 2006 - 01:50 PM
Posted 05 March 2006 - 03:27 PM
I mean, surely, I can not be the only one trying to use this feature in dx with radeon?
Ok, luckily I am only trying to write the A-channel, leaving RGB as they are. Hence I can use the following config:
AlphaBlendEnable = true ;
SEPARATEALPHABLENDENABLE = true ;
SrcBlend = zero ;
DestBlend = one ;
SrcBlendAlpha = one ;
DestBlendAlpha = zero ;
Instead of my first attempt which should have the same effect:
COLORWRITEENABLE = ALPHA ;
So problem avoided for this time. But somewhat unsatisfactory, I think.
Still interested in hearing about your experiences with this renderstate, though.
Posted 05 March 2006 - 09:32 PM
Posted 06 March 2006 - 01:04 AM
Yeah we are taking extensive use of the color masking and haven't encountered any problems with the chipset you mentioned.
Posted 06 March 2006 - 10:16 AM
Posted 09 March 2006 - 08:39 PM
All: Thanks for sharing your experiences. I'll see if there is any newer driver available, but I am not optimistic. Afterwards, I'll give up. Thanks for input.
Posted 13 March 2006 - 04:25 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users