Hi
I've got a 2D project where the world is rendered to a 1024x1024 RenderTarget2D texture, then that texture is drawn to the backbuffer. It works fine on my laptop. On my desktop, however, the RenderTarget2D texture is drawn with an overlay of garbage consisting partly of a frame of a DVD I was watching on the other display. I'm clearing the RenderTarget2D texture properly, and everything is drawn properly, but when this texture is drawn to the backbuffer it receives a nicely alpha blended amount of garbage that covers the entire texture. So I can see everything rendered perfectly on the RenderTarget2D texture, it's just covered with translucent garbage. Sorry, I can't get any shots now. When I get home from work I'll get right on that, assuming I haven't got a solution yet.
Is this a dual display thing or a graphics card thing or a bad programming practice thing The desktop has two displays and a GeForce 6600GT; the laptop has one display and an ATI Mobility 9600.
Thanks, I appreciate it.

RenderTarget2D rendered with garbage all over it
Keith Hill
jay1234
Also, try and find someone with dual-display that has run RenderToTexture, to see if this is not the problem.
If you find out that dual-display is the problem, and someone else can confirm it, report it as a bug
Frederik Vanderhaegen
http://skasoftware.com/pics/zbug.jpg
That's a frame of Shaun of the Dead in there (which I was watching in WinAmp)...
Timmy0614
The problem on my desktop persists, so I've been doing all my dev work on the laptop. The game runs flawlessly on X360 too, which is all that really matters for the time being.
Amadrias
flarmon
wynfred
Perhaps this will help:
http://blogs.msdn.com/shawnhar/archive/2007/02/04/xna-rendertarget-semantics.aspx
avinash kundal
http://skasoftware.com/pics/zcorrect.jpg
HuskyNET
I don't know why, but I had to do the same thing. It may be a driver issue. I had dual monitor running, but I got the same problem after I disabled the second monitor. I was clearing the device at the beginning of my draw function, and then after I had set the render target back from the RenderTarget2D, but not when setting the RenderTarget to the Target2D.
Also, the first time this happened, I wasn't resolving the render target when switching back.
Good luck.
rskorski
cdolor
kastanienreis