Sign in to follow this  

Nothing being output to screen

This topic is 2069 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've just finished porting my XNA project to SlimDX and now I'm having problems getting anything to output to the screen. I've tried disabling culling, turning blend off and having the shader output pure white. I've disabled all drawing besides the UI sprites. I still end up with a screen the same color it was originally cleared to (purple). In PIX, if I debug a pixel, I can see it starts purple, then its drawn to several times with pure white. And yet at every stage, the Render tab shows a purple screen. I can see the geometry covers the whole screen in the Mesh tab. I get the same output with Force REF as well. Also, if I look at the contents of the render target, it's also solid purple. I'm at a loss for what could possibly be wrong. I've attatched some screenshots from PIX.

[attachment=8921:Blend.PNG]
[attachment=8922:DepthStencil.PNG]
[attachment=8924:MeshTab.PNG]
[attachment=8925:RasterizerTab.PNG]
[attachment=8923:General.PNG]

Share this post


Link to post
Share on other sites
You mentioned render target, you are setting it as the active one before rendering stuff aren't you?

Share this post


Link to post
Share on other sites
Yea I am, this is part of my game loop:

[code]
Context.OutputMerger.SetTargets(BackBuffer);
Context.ClearRenderTargetView(BackBuffer, Color.BlueViolet);

ScreenManager.Draw(gameTime);

swapChain.Present(0, PresentFlags.None);
[/code] Edited by Telanor

Share this post


Link to post
Share on other sites
I found the problem. My blend state didn't have a write mask set so it defaulted to 0

Share this post


Link to post
Share on other sites
Sign in to follow this