Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Nothing being output to screen

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Telanor   Members   

1486
Like
0Likes
Like

Posted 18 May 2012 - 06:14 PM

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.

Blend.PNG
DepthStencil.PNG
MeshTab.PNG
RasterizerTab.PNG
General.PNG

#2 Tarika   Members   

485
Like
0Likes
Like

Posted 18 May 2012 - 06:52 PM

You mentioned render target, you are setting it as the active one before rendering stuff aren't you?

We are now on Tumblr, so please come and check out our site! 

 

http://xpod-games.com


#3 Telanor   Members   

1486
Like
0Likes
Like

Posted 18 May 2012 - 06:53 PM

Yea I am, this is part of my game loop:

Context.OutputMerger.SetTargets(BackBuffer);
Context.ClearRenderTargetView(BackBuffer, Color.BlueViolet);
			
ScreenManager.Draw(gameTime);
			
swapChain.Present(0, PresentFlags.None);

Edited by Telanor, 18 May 2012 - 07:54 PM.


#4 Telanor   Members   

1486
Like
0Likes
Like

Posted 19 May 2012 - 02:56 AM

I found the problem. My blend state didn't have a write mask set so it defaulted to 0




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.