









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










2
4 Setup for postprocessing
Based on discussion on p. 277-281 of Chad Carter, “Microsoft XNA Unleashed,” 2008
5 Creating the rendertarget myRenderTarget = new RenderTarget2D(device, device.Viewport.Width, device.Viewport.Height, 1, // number of mipmap levels device.DisplayMode.Format // a SurfaceFormat) Vector2 offset = new Vector2(0,1 / device.Viewport.Height); Based on discussion on p. 277-281 of Chad Carter, “Microsoft XNA Unleashed,” 2008
7 SurfaceFormat enumeration Screenshot from msdn2.microsoft.com/en-us/library/microsoft.xna.framework.graphics.surfaceformat.aspx
8 Direct3D/XNA SurfaceFormat Conversions Screenshot from msdn2.microsoft.com/en-us/library/microsoft.xna.framework.graphics.surfaceformat.aspx
10 Setting up the postprocessing effect // Next sort of line only seems necessary if you have // more than one technique myEffect.CurrentTechnique = effect.Techniques[“BlurEffect”]; myEffect.Parameters[“offset”].SetValue(offset); Based on discussion on p. 277-281 of Chad Carter, “Microsoft XNA Unleashed,” 2008
11 Drawing the processed scene
Based on discussion on p. 277-281 of Chad Carter, “Microsoft XNA Unleashed,” 2008
13 Just need a pixel shader Based on discussion on p. 277-281 of Chad Carter, “Microsoft XNA Unleashed,” 2008
14 Multiple textures From msdn2.microsoft.com/en- us/library/microsoft.xna.framework.graphics.graphicsdevice.textures.aspx
16 Rendertarget semantics on Xbox 360
From Shawn Hargreaves, “XNA rendertarget semantics,” blogs.msdn.com/shawnhar/archive/2007/02/04/xna-rendertarget-semantics.aspx
17 Shawn Hargraves’ chart From Shawn Hargreaves, “XNA rendertarget semantics,” blogs.msdn.com/shawnhar/archive/2007/02/04/xna-rendertarget-semantics.aspx