3D Graphics
This section contains an overview of the 3D Graphics classes as well as tutorials to demonstrate low-level 3D rendering.
In This Section
- 3D Graphics Overview
The Microsoft.Xna.Framework.Graphics namespace contains classes to utilize the graphics device to load and render resources and to apply effects to vertices and pixels. - How to: Check for Shader Model 2.0 Support
This example demonstrates how to determine if a graphics card supports Shader Model 2.0. - How to: Use the Reference Device
This example demonstrates how to create a custom PreparingDeviceSettings event handler to change the device creation parameters used by a GraphicsDeviceManager prior to the device being created. - How to: Draw Points, Lines, and Other 3D Primitives
In the XNA Framework, a 3D primitive is a special type of 3D shape that describes how the graphics device interprets vertices stored in a vertex array or vertex stream. This example demonstrates how to use the point, line, and triangle primitive types that are the basis for all low-level drawing calls in the XNA Framework. - How to: Create and Apply Custom Effects
This example demonstrates how to create a simple effect to set the diffuse color and world, view, and projection transformation of a 3D object. - How to: Create Custom Texture Effects
This example builds on the demonstrations How to: Draw Points, Lines, and Other 3D Primitives and How to: Create and Apply Custom Effects to demonstrate how to create an effect to apply a texture to a 3D primitive object. - How to: Draw a Textured Quad
This example demonstrates how to create and draw a simple quad using DrawUserIndexedPrimitives. - How to: Use Viewports for Split Screen Gaming
This example demonstrates how to use the Viewport property to display different scenes to different parts of the screen. - How to: Create a SkySphere
This example demonstrates how to create an effect that will apply a skybox-style TextureCube ("cube map") to a sphere. - How to: Draw a Shadow
This example demonstrates how to draw a shadow using Matrix.CreateShadow and the stencil buffer.