Skip to main content
GameDev.net gamedev.net
🔒 Locked

D3DTOP_ADD and Nvidia cards

Started by Battagline Feb 1, 2006 at 10:32 PM 3 replies 2.1k views
Original Post
Battagline
Battagline
I seem to be having some problems with additive blending and Nvidia cards. It seems like, when the additive blended values of pixels gets too high, the pixels end up rendering in black instead of white. It creates some issues with one of the pixel shaders I wrote. I may be misinterpreting this, so any help / advise is appreciated. Here's some examples of the problem I'm having with my pixel shaders: Here's an example that does not involve my pixel shader: I don't seem to be having this issue on ATI cards. Anyone have an idea as to what the problem is? Thanks, Rick
Scythen
Scythen
That last one looks more like you have Z-Write/Z-Test and a render order issue.
Although I would think you would either get green or red depending on the render order…
I've never seen a problem with the additive blend.
Battagline
Battagline
Quote:
Original post by Scythen
That last one looks more like you have Z-Write/Z-Test and a render order issue.
Although I would think you would either get green or red depending on the render order…
I've never seen a problem with the additive blend.


In this case, I don't think it is a render order issue. The Green line appears behind the red circle, and is rendered first. Also, if it were a render order issue, I think the problem would also exist on my ATI card.

Any thoughts?
jollyjeffers
jollyjeffers
A couple of things to try:

1. Run your application under the REFRAST - depending on what result you get it should indicate whether the NV or ATI hardware is correct. It's likely to just prove the NV card is wrong, but it can't hurt to be sure [wink]

2. Try some different driver combinations if possible. See if it's something that has been fixed/introduced via the software rather than the hardware.

I suppose neither of those present a solution, but it might allow you to write in an NV-specific path. You could also try bugging Nvidia developer relations.

I checked the DX caps database, and every piece of hardware seems to support the additive operation, but I'd make sure that you're not using any other blending modes that might not be supported by the NV hardware.

hth
Jack
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.