c# - XNA Bloom Sample - Blank purple screen -


i have placed 2 bloom classes project bloom sample , followed same steps sample, although when start project, getting blank purple screen?

i'm not getting error or anything, did literally include 2 bloom classes sample, added component , placed begin draw call in main draw function in sample. have other render targets in project they're not being used right away. if take out bloom stuff normal. call begindraw() function, infamous blank purple screen...

does have idea why getting this?

  • jamie.

the best way diagnose kind of problem use pix (in directx sdk).

the purple colour indicates render target contents have been cleared framework. this blog post explains why , offers solutions.

put simply, cannot draw stuff back-buffer, switch render target, , switch back-buffer again , expect drawn still there. @ least not on xbox 360 - , pc version of xna framework emulates behaviour.

if you'd able switch back-buffer , have unscathed, can change rendertargetusage setting back-buffer (or render target, depending on how you're rendering) preservecontents, explained in blog post. aware on xbox 360 huge performance hit.

a possibly better , more compatable method adjust order of drawing never have "return" surface.

(link similar, recent question/answer.)


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -